android_kernel_motorola_sm6375/security
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
..
apparmor apparmor: fix possible NULL pointer dereference 2024-09-12 11:03:49 +02:00
integrity ima: detect changes to the backing overlay file 2023-12-08 08:44:27 +01:00
keys
loadpin
lockdown
safesetid
selinux selinux: improve error checking in sel_write_load() 2024-11-08 16:20:52 +01:00
smack smackfs: Use rcu_assign_pointer() to ensure safe assignment in smk_set_cipso 2024-11-08 16:20:30 +01:00
tomoyo tomoyo: fallback to realpath if symlink's pathname does not exist 2024-11-08 16:20:41 +01:00
yama
commoncap.c
device_cgroup.c
inode.c
Kconfig proc: add config & param to block forcing mem writes 2024-11-08 16:20:38 +01:00
Kconfig.hardening
lsm_audit.c
Makefile
min_addr.c
security.c lsm: new security_file_ioctl_compat() hook 2024-02-23 08:25:15 +01:00