]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selinux: remove the BUG_ON() from selinux_skb_xfrm_sid()
authorPaul Moore <pmoore@redhat.com>
Fri, 14 Jun 2013 16:14:16 +0000 (12:14 -0400)
committerPaul Moore <pmoore@redhat.com>
Tue, 25 Jun 2013 19:23:28 +0000 (15:23 -0400)
commit5bfd3795a3744cd8b5f8cf7cbc8aaa0da3f56588
tree175b952500dd86b29b80daf8264a7bd744756a56
parentaa45233e40b23ebdc77df90ff71c4ed94b90ea7f
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>
security/selinux/hooks.c
security/selinux/include/xfrm.h