android_kernel_motorola_sm6375/security/selinux
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul Moore 5121ac6723 selinux: improve error checking in sel_write_load()
[ Upstream commit 42c773238037c90b3302bf37a57ae3b5c3f6004a ]

Move our existing input sanity checking to the top of sel_write_load()
and add a check to ensure the buffer size is non-zero.

Move a local variable initialization from the declaration to before it
is used.

Minor style adjustments.

Reported-by: Sam Sun <samsun1006219@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
[cascardo: keep fsi initialization at its declaration point as it is used earlier]
[cascardo: keep check for 64MiB size limit]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-08 16:20:52 +01:00
..
include
ss
.gitignore
avc.c selinux: fix potential counting error in avc_add_xperms_decision() 2024-09-04 13:14:50 +02:00
hooks.c lsm: new security_file_ioctl_compat() hook 2024-02-23 08:25:15 +01:00
ibpkey.c
Kconfig
Makefile selinux: don't use make's grouped targets feature yet 2023-06-09 10:29:02 +02:00
netif.c
netlabel.c
netlink.c
netnode.c
netport.c
nlmsgtab.c
selinuxfs.c selinux: improve error checking in sel_write_load() 2024-11-08 16:20:52 +01:00
xfrm.c