★ wanayoo — archive 1999 http://kernelnotes.org/patch/20-p0216.htmlNouvelle recherche | Portail wanayoo

/proc/<pid> permission patch

Chris Evans (chris@ferret.lmh.ox.ac.uk)
Mon Jan 27 22:06:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links]

20-proc-pid-perm.patch
The following patch probably has a few mistakes as I don't entirely know what I'm doing, but the thing is a pretty idea..

It allows the system to respond and store attempted changes to file permissions on /proc/<pid>. This means that users can 'magically' hide processes from programs such as top, ps etc., when suitable permissions are set using chmod.

The ability of people to snoop processes of others has annoyed me a while. Of course root still sees everything. The default is 'normal' behaviour, as if the patch was not present. Note that a command such as 'chmod og-rwx /proc/$$' (where $$ expands to shell process ID) is sufficient to hide all processes spawned by the shell as the 'process permission' is inherited from the parent. Similarly, system-wide defaults may be set by messing with the permissions on /proc/1 (init).

Comments etc.?




[Home] [Up] [Search] [FeedBack]

Copyleft © The LinuxHQ Project. Licensed under the GNU Public License.