aboutsummaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorPaul Moore <[email protected]>2019-12-09 20:39:46 -0500
committerPaul Moore <[email protected]>2019-12-10 14:16:53 -0500
commitd8db60cb23e49a92cf8cada3297395c7fa50fdf8 (patch)
treec35db44612802989e1e84f6ff69c414d6bc858e1 /security/selinux/hooks.c
parentb2104ac0bd951a2887a03b09e2106fcff5fad94e (diff)
selinux: ensure we cleanup the internal AVC counters on error in avc_insert()
Fix avc_insert() to call avc_node_kill() if we've already allocated an AVC node and the code fails to insert the node in the cache. Fixes: fa1aa143ac4a ("selinux: extended permissions for ioctls") Reported-by: [email protected] Suggested-by: Stephen Smalley <[email protected]> Acked-by: Stephen Smalley <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions