lkml.org 
[lkml]   [2009]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subjectsymlinks with permissions

    ...yes, they do exist, in /proc/self/fd/* . Unfortunately, their
    permissions are not actually checked during open, resulting in
    (obscure) security hole: if you have fd open for reading, you can
    reopen it for write, even through unix permissions would not allow
    that.

    Now... I'd like to close the hole. One way would be to actually check
    symlink permissions on open -- because those symlinks already have
    correct permissions.

    But ... then I got lost in vfs. Can someone help? Is there better way?

    Pavel
    --
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


    \
     
     \ /
      Last update: 2009-10-25 20:15    [W:0.020 / U:0.940 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site