diff options
author | Paul Moore <paul@paul-moore.com> | 2019-12-09 20:39:46 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-24 08:36:34 +0100 |
commit | 0e44cd879ba1da559f0175f2f5a3670c58f10ff5 (patch) | |
tree | 2d79d01d9afffc989983665a66d2b0629c1b7b41 /arch/arm64/boot/dts/qcom | |
parent | 5fed8c513adb7820ffa0f3a16b5539a161767948 (diff) |
selinux: ensure we cleanup the internal AVC counters on error in avc_insert()
[ Upstream commit d8db60cb23e49a92cf8cada3297395c7fa50fdf8 ]
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: rsiddoji@codeaurora.org
Suggested-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom')
0 files changed, 0 insertions, 0 deletions