Re: [PATCH] Restrict procfs permissions

From: Al Viro (viro_at_parcelfarce.linux.theplanet.co.uk)
Date: 01/29/05

  • Next message: Al Viro: "Re: Possible bug in keyboard.c (2.6.10)"
    Date:	Sat, 29 Jan 2005 04:41:09 +0000
    To: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
    
    

    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 majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Al Viro: "Re: Possible bug in keyboard.c (2.6.10)"

    Relevant Pages

    • tty beep
      ... I've heard rumors that there was once a patch that exported the ability to ... entirely disable the PC speaker via a sysctl. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH 2.6.12-rc4] (dynamic sysfs callbacks) adm1026 (2nd try)
      ... Attached is the corrected adm1026 patch (incorrect casting of void * ... Justin if you have the ability to test this ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Patch notes 2.3.0
      ... Now that you've gotten a bit of a chance to look at the live patch notes ... PTR build. ... Dirty Deeds now also increases special ability damage against ... Now works on any target ...
      (alt.games.warcraft)
    • Re: [parisc-linux] Re: [PATCH 3/9] mm: parisc pte atomicity
      ... using your own tmpalias area sounds much better than getting ... I've simply not wrapped my head around the races, ... it looks like we agree that my patch is necessary and valid as is; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: keyboard - was: Re: Linux 2.6.0-test4
      ... >> I was able to get the key unstuck by switching back and forth between ... I rebuild my kernel including your patch; ... I'll get back to you once I verify that the problem doesn't occur ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)