]> Pileus Git - ~andy/linux/commit
selinux: remove the BUG_ON() from selinux_skb_xfrm_sid()
authorPaul Moore <pmoore@redhat.com>
Tue, 23 Jul 2013 21:38:40 +0000 (17:38 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 25 Jul 2013 17:02:13 +0000 (13:02 -0400)
commitbed4d7efb31fd81b3a3c83dc8540197cd0fe81c0
tree186fe2daebcea0115afe0b45f540a346c2c700a8
parentd1b17b09f390369271ecfbc7e4a4d0d0dcff1b1b
selinux: remove the BUG_ON() from selinux_skb_xfrm_sid()

Remove the BUG_ON() from selinux_skb_xfrm_sid() and propogate the
error code up to the caller.  Also check the return values in the
only caller function, selinux_skb_peerlbl_sid().

Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/hooks.c
security/selinux/include/xfrm.h