Don't allow chmod() on the /proc/<pid>/ files
commit5db60db61aaa613f8c6dffa4213797c0dd83a8fd
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 8 Nov 2006 07:10:30 +0000 (8 08:10 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 8 Nov 2006 07:10:30 +0000 (8 08:10 +0100)
tree414ed9d3e118beff48f193da72c2b30adbc11145
parent5f4b6b038a617c333fd4c3b6d66ca31c51dddd5f
Don't allow chmod() on the /proc/<pid>/ files

This just turns off chmod() on the /proc/<pid>/ files, since there is no
good reason to allow it, and had we disallowed it originally, the nasty
/proc race exploit wouldn't have been possible.

The other patches already fixed the problem chmod() could cause, so this
is really just some final mop-up..

This particular version is based off a patch by Eugene and Marcel which
had much better naming than my original equivalent one.

Signed-off-by: Eugene Teo <eteo@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
fs/proc/base.c