]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selinux: fix potential counting error in avc_add_xperms_decision()
authorZhen Lei <thunder.leizhen@huawei.com>
Tue, 6 Aug 2024 06:51:13 +0000 (14:51 +0800)
committerPaul Moore <paul@paul-moore.com>
Tue, 6 Aug 2024 21:52:27 +0000 (17:52 -0400)
commit379d9af3f3da2da1bbfa67baf1820c72a080d1f1
tree82bf6a3939395672440a30bd4a33dbcacb4186c6
parent8400291e289ee6b2bf9779ff1c83a291501f017b
selinux: fix potential counting error in avc_add_xperms_decision()

The count increases only when a node is successfully added to
the linked list.

Cc: stable@vger.kernel.org
Fixes: fa1aa143ac4a ("selinux: extended permissions for ioctls")
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/avc.c