WSL2-Linux-Kernel/security/selinux
Zhen Lei 3337cb6327 selinux: fix potential counting error in avc_add_xperms_decision()
commit 379d9af3f3da2da1bbfa67baf1820c72a080d1f1 upstream.

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

Cc: stable@vger.kernel.org
Fixes: fa1aa143ac ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-04 13:23:17 +02:00
..
include ima: Avoid blocking in RCU read-side critical section 2024-07-18 13:07:34 +02:00
ss ima: Avoid blocking in RCU read-side critical section 2024-07-18 13:07:34 +02:00
.gitignore
Kconfig
Makefile selinux: don't use make's grouped targets feature yet 2023-06-09 10:32:32 +02:00
avc.c selinux: fix potential counting error in avc_add_xperms_decision() 2024-09-04 13:23:17 +02:00
hooks.c lsm: new security_file_ioctl_compat() hook 2024-02-23 08:54:25 +01:00
ibpkey.c
ima.c selinux: fix misuse of mutex_is_locked() 2022-03-02 11:47:48 +01:00
netif.c
netlabel.c
netlink.c
netnode.c
netport.c
nlmsgtab.c include/uapi/linux/xfrm.h: Fix XFRM_MSG_MAPPING ABI breakage 2021-09-14 10:31:35 +02:00
selinuxfs.c selinux: check return value of sel_make_avc_files 2022-04-08 14:23:04 +02:00
status.c
xfrm.c selinux: use correct type for context length 2022-04-08 14:23:55 +02:00