android_kernel_samsung_univ.../net
Paul Moore 23bcdc1ade SELinux: enable dynamic activation/deactivation of NetLabel/SELinux enforcement
Create a new NetLabel KAPI interface, netlbl_enabled(), which reports on the
current runtime status of NetLabel based on the existing configuration.  LSMs
that make use of NetLabel, i.e. SELinux, can use this new function to determine
if they should perform NetLabel access checks.  This patch changes the
NetLabel/SELinux glue code such that SELinux only enforces NetLabel related
access checks when netlbl_enabled() returns true.

At present NetLabel is considered to be enabled when there is at least one
labeled protocol configuration present.  The result is that by default NetLabel
is considered to be disabled, however, as soon as an administrator configured
a CIPSO DOI definition NetLabel is enabled and SELinux starts enforcing
NetLabel related access controls - including unlabeled packet controls.

This patch also tries to consolidate the multiple "#ifdef CONFIG_NETLABEL"
blocks into a single block to ease future review as recommended by Linus.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
2007-07-19 10:21:11 -04:00
..
9p
802
8021q
appletalk
atm [ATM]: Eliminate dead config variable CONFIG_BR2684_FAST_TRANS. 2007-07-18 01:46:52 -07:00
ax25
bluetooth
bridge usermodehelper: Tidy up waiting 2007-07-18 08:47:40 -07:00
core [NET]: move __dev_addr_discard adjacent to dev_addr_discard for readability 2007-07-18 02:12:56 -07:00
dccp
decnet
econet
ethernet
ieee80211 [PATCH] softmac: Channel is listed twice in scan output 2007-07-17 21:56:17 -04:00
ipv4 [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
ipv6
ipx
irda Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2007-07-18 10:24:36 -07:00
iucv
key
lapb
llc
mac80211
netfilter [NETFILTER]: xt_connlimit needs to depend on nf_conntrack 2007-07-18 02:38:32 -07:00
netlabel SELinux: enable dynamic activation/deactivation of NetLabel/SELinux enforcement 2007-07-19 10:21:11 -04:00
netlink [NETLINK]: negative groups in netlink_setsockopt 2007-07-18 02:07:51 -07:00
netrom
packet
rfkill
rose
rxrpc
sched [PKT_SCHED]: Some typo fixes in net/sched/Kconfig 2007-07-18 02:00:04 -07:00
sctp
sunrpc knfsd: nfsd4: secinfo handling without secinfo= option 2007-07-17 10:23:08 -07:00
tipc
unix
wanrouter
wireless
x25
xfrm [XFRM]: Fix crash introduced by struct dst_entry reordering 2007-07-18 01:55:52 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE