original_kernel/net
Joy Latten 4aa2e62c45 xfrm: Add security check before flushing SAD/SPD
Currently we check for permission before deleting entries from SAD and
SPD, (see security_xfrm_policy_delete() security_xfrm_state_delete())
However we are not checking for authorization when flushing the SPD and
the SAD completely. It was perhaps missed in the original security hooks
patch.

This patch adds a security check when flushing entries from the SAD and
SPD.  It runs the entire database and checks each entry for a denial.
If the process attempting the flush is unable to remove all of the
entries a denial is logged the the flush function returns an error
without removing anything.

This is particularly useful when a process may need to create or delete
its own xfrm entries used for things like labeled networking but that
same process should not be able to delete other entries or flush the
entire database.

Signed-off-by: Joy Latten<latten@austin.ibm.com>
Signed-off-by: Eric Paris <eparis@parisplace.org>
Signed-off-by: James Morris <jmorris@namei.org>
2007-06-07 13:42:46 -07:00
..
802
8021q
appletalk
atm
ax25
bluetooth
bridge
core [NET]: Avoid duplicate netlink notification when changing link state 2007-06-07 13:40:56 -07:00
dccp
decnet [NETLINK]: Mark netlink policies const 2007-06-07 13:40:10 -07:00
econet
ethernet
ieee80211
ipv4 [UDP]: Revert 2-pass hashing changes. 2007-06-07 13:40:50 -07:00
ipv6 [UDP]: Revert 2-pass hashing changes. 2007-06-07 13:40:50 -07:00
ipx
irda
iucv
key xfrm: Add security check before flushing SAD/SPD 2007-06-07 13:42:46 -07:00
lapb
llc
mac80211
netfilter [NETFILTER]: nf_conntrack_amanda: fix textsearch_prepare() error check 2007-06-07 13:40:38 -07:00
netlabel [NETLINK]: Mark netlink policies const 2007-06-07 13:40:10 -07:00
netlink [NETLINK]: Mark netlink policies const 2007-06-07 13:40:10 -07:00
netrom
packet
rfkill
rose
rxrpc
sched [NET_SCHED]: Fix filter double free 2007-06-07 13:41:05 -07:00
sctp
sunrpc
tipc
unix [AF_UNIX]: Fix stream recvmsg() race. 2007-06-07 13:40:44 -07:00
wanrouter
wireless
x25
xfrm xfrm: Add security check before flushing SAD/SPD 2007-06-07 13:42:46 -07:00
Kconfig
Makefile
TUNABLE
compat.c
nonet.c
socket.c
sysctl_net.c