linux/security/selinux
Stephen Smalley 868f31e406 selinux: shrink critical section in sel_write_load()
Currently sel_write_load() takes the policy mutex earlier than
necessary. Move the taking of the mutex later. This avoids
holding it unnecessarily across the vmalloc() and copy_from_user()
of the policy data.

Cc: stable@vger.kernel.org
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
2026-05-05 16:02:28 -04:00
..
include selinux: prune /sys/fs/selinux/user 2026-05-05 15:27:44 -04:00
ss selinux: prune /sys/fs/selinux/user 2026-05-05 15:27:44 -04:00
.gitignore
avc.c
genheaders.c
hooks.c selinux: fix avdcache auditing 2026-04-28 18:13:58 -04:00
ibpkey.c
ima.c
initcalls.c
Kconfig
Makefile
netif.c
netlabel.c
netlink.c
netnode.c
netport.c
nlmsgtab.c
selinuxfs.c selinux: shrink critical section in sel_write_load() 2026-05-05 16:02:28 -04:00
status.c
xfrm.c