kernel-ark/net
Paul Moore 701a90bad9 NetLabel: make netlbl_lsm_secattr struct easier/quicker to understand
The existing netlbl_lsm_secattr struct required the LSM to check all of the
fields to determine if any security attributes were present resulting in a lot
of work in the common case of no attributes.  This patch adds a 'flags' field
which is used to indicate which attributes are present in the structure; this
should allow the LSM to do a quick comparison to determine if the structure
holds any security attributes.

Example:

 if (netlbl_lsm_secattr->flags)
	/* security attributes present */
 else
	/* NO security attributes present */

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
2006-12-02 21:24:07 -08:00
..
802
8021q
appletalk
atm
ax25 [AX25]: Use kmemdup 2006-12-02 21:24:01 -08:00
bluetooth
bridge
core [NET]: Conditionally use bh_lock_sock_nested in sk_receive_skb 2006-12-02 21:23:51 -08:00
dccp [DCCP]: Use kmemdup 2006-12-02 21:23:59 -08:00
decnet [DECNET]: Use kmemdup 2006-12-02 21:24:00 -08:00
econet
ethernet
ieee80211
ipv4 NetLabel: make netlbl_lsm_secattr struct easier/quicker to understand 2006-12-02 21:24:07 -08:00
ipv6 [IPV6]: Use kmemdup 2006-12-02 21:23:58 -08:00
ipx
irda
key
lapb
llc
netfilter [NET]: netfilter checksum annotations 2006-12-02 21:23:42 -08:00
netlabel NetLabel: make netlbl_lsm_secattr struct easier/quicker to understand 2006-12-02 21:24:07 -08:00
netlink
netrom [NETROM]: Use kmemdup 2006-12-02 21:24:02 -08:00
packet
rose
rxrpc
sched
sctp
sunrpc [NET]: Annotate callers of the reset of checksum.h stuff. 2006-12-02 21:23:34 -08:00
tipc
unix [NET]: Annotate csum_partial() callers in net/* 2006-12-02 21:23:32 -08:00
wanrouter
x25
xfrm
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE