[LSM-IPSec]: Corrections to LSM-IPSec Nethooks
authorTrent Jaeger <tjaeger@cse.psu.edu>
Fri, 6 Jan 2006 21:22:39 +0000 (13:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Jan 2006 21:22:39 +0000 (13:22 -0800)
commit5f8ac64b15172c7ced7d7990eb28342092bc751b
tree63046817c9a6e8db513379337f01289c045a5d63
parent69549ddd2f894c4cead50ee2b60cc02990c389ad
[LSM-IPSec]: Corrections to LSM-IPSec Nethooks

This patch contains two corrections to the LSM-IPsec Nethooks patches
previously applied.

(1) free a security context on a failed insert via xfrm_user
interface in xfrm_add_policy.  Memory leak.

(2) change the authorization of the allocation of a security context
in a xfrm_policy or xfrm_state from both relabelfrom and relabelto
to setcontext.

Signed-off-by: Trent Jaeger <tjaeger@cse.psu.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c
security/selinux/include/av_perm_to_string.h
security/selinux/include/av_permissions.h
security/selinux/xfrm.c