Don't allow chmod() on the /proc/<pid>/ files
commit7e92c4788d4bbc03d00553dda3c3572b33ae0d2b
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 16 Jul 2006 00:20:53 +0000 (16 02:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Aug 2006 03:52:13 +0000 (6 20:52 -0700)
tree50f3aadc9b1bd470e8e768f610cd03e12b2d8321
parentef2a8a41fdd6f0c8079e6fd4cad1eebdce99aa9a
Don't allow chmod() on the /proc/<pid>/ files

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: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/proc/base.c