1
0
Files
linux/kernel
Eric Paris 6ff1b4426e [PATCH] make reading /proc/sys/kernel/cap-bould not require CAP_SYS_MODULE
Reading /proc/sys/kernel/cap-bound requires CAP_SYS_MODULE.  (see
proc_dointvec_bset in kernel/sysctl.c)

sysctl appears to drive all over proc reading everything it can get it's
hands on and is complaining when it is being denied access to read
cap-bound.  Clearly writing to cap-bound should be a sensitive operation
but requiring CAP_SYS_MODULE to read cap-bound seems a bit to strong.  I
believe the information could with reasonable certainty be obtained by
looking at a bunch of the output of /proc/pid/status which has very low
security protection, so at best we are just getting a little obfuscation of
information.

Currently SELinux policy has to 'dontaudit' capability checks for
CAP_SYS_MODULE for things like sysctl which just want to read cap-bound.
In doing so we also as a byproduct have to hide warnings of potential
exploits such as if at some time that sysctl actually tried to load a
module.  I wondered if anyone would have a problem opening cap-bound up to
read from anyone?

Acked-by: Chris Wright <chrisw@sous-sol.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-11 10:51:19 -08:00
..
2007-02-09 17:39:36 -05:00
2007-02-11 10:51:18 -08:00
2006-12-10 09:57:22 -08:00
2006-09-11 13:32:30 -04:00
2006-12-08 08:28:46 -08:00
2006-09-29 09:18:12 -07:00
2006-12-30 10:56:43 -08:00
2006-12-07 08:39:25 -08:00
2006-12-07 08:39:36 -08:00
2006-12-04 02:00:22 -05:00
2006-12-30 10:56:43 -08:00
2006-12-15 08:47:51 -08:00
2007-02-07 10:37:12 -08:00
2006-09-30 01:47:55 +02:00
2007-02-07 10:37:12 -08:00
2006-09-29 09:18:12 -07:00
2006-12-22 08:55:51 -08:00
2007-02-09 17:39:36 -05:00
2006-12-10 09:55:41 -08:00
2006-12-07 08:39:25 -08:00
2006-07-10 13:24:25 -07:00