linux-stable-rt/security/selinux
Eric Paris 12b3052c3e capabilities/syslog: open code cap_syslog logic to fix build failure
The addition of CONFIG_SECURITY_DMESG_RESTRICT resulted in a build
failure when CONFIG_PRINTK=n.  This is because the capabilities code
which used the new option was built even though the variable in question
didn't exist.

The patch here fixes this by moving the capabilities checks out of the
LSM and into the caller.  All (known) LSMs should have been calling the
capabilities hook already so it actually makes the code organization
better to eliminate the hook altogether.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-15 15:40:01 -08:00
..
include SELinux: allow userspace to read policy back out of the kernel 2010-10-21 10:12:58 +11:00
ss selinux: include vmalloc.h for vmalloc_user 2010-10-21 10:13:01 +11:00
.gitignore
Kconfig
Makefile selinux: change to new flag variable 2010-10-21 10:12:40 +11:00
avc.c
exports.c secmark: make secmark object handling generic 2010-10-21 10:12:48 +11:00
hooks.c capabilities/syslog: open code cap_syslog logic to fix build failure 2010-11-15 15:40:01 -08:00
netif.c
netlabel.c
netlink.c
netnode.c
netport.c
nlmsgtab.c
selinuxfs.c convert get_sb_single() users 2010-10-29 04:16:28 -04:00
xfrm.c