[lkml]   [2005]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Restrict procfs permissions
    On Sat, Jan 29, 2005 at 03:45:42AM +0100, Rene Scharfe wrote:
    > The patch is inspired by the /proc restriction parts of the GrSecurity
    > patch. The main difference is the ability to configure the restrictions
    > dynamically. You can change the umask setting by running
    > # mount -o remount,umask=007 /proc
    > Testing has been *very* light so far -- it compiles and boots. Patch is
    > against 2.6.11-rc2-bk6.
    > Comments are very welcome.

    It leaves already existing inodes with whatever mode they used to have.
    _IF_ you want to do that sort of things, do it right - add ->permission()
    that would apply that umask before checks and if you want it to be seen
    in results of stat(2) - add ->gettattr() and do the same there.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:09    [W:0.019 / U:6.080 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site