]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sysctl: hide the sysctl proc inodes from selinux
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 14 Feb 2007 08:34:16 +0000 (00:34 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 14 Feb 2007 16:10:00 +0000 (08:10 -0800)
commitdb80891df15ae9159232bf990bccc7e5919919b2
tree71f5d47c38d0674b5037c435fb00adcb889ccad2
parent34f5daa0160da8ce71d214bd0a671f9af1364325
[PATCH] sysctl: hide the sysctl proc inodes from selinux

Since the security checks are applied on each read and write of a sysctl file,
just like they are applied when calling sys_sysctl, they are redundant on the
standard VFS constructs.  Since it is difficult to compute the security labels
on the standard VFS constructs we just mark the sysctl inodes in proc private
so selinux won't even bother with them.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_sysctl.c