linux/security/selinux
Christian Göttsche 37801a36b4 selinux: avoid dereference of garbage after mount failure
In case kern_mount() fails and returns an error pointer return in the
error branch instead of continuing and dereferencing the error pointer.

While on it drop the never read static variable selinuxfs_mount.

Cc: stable@vger.kernel.org
Fixes: 0619f0f5e3 ("selinux: wrap selinuxfs state")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
2024-04-01 23:32:35 -04:00
..
include
ss
.gitignore
avc.c
hooks.c lsm: use 32-bit compatible data types in LSM syscalls 2024-03-14 11:31:26 -04:00
ibpkey.c
ima.c
Kconfig
Makefile
netif.c
netlabel.c
netlink.c
netnode.c
netport.c
nlmsgtab.c
selinuxfs.c selinux: avoid dereference of garbage after mount failure 2024-04-01 23:32:35 -04:00
status.c
xfrm.c