kernel_samsung_a53x/security
Konstantin Andreev dc059c8bc2 smack: unix sockets: fix accept()ed socket label
[ Upstream commit e86cac0acdb1a74f608bacefe702f2034133a047 ]

When a process accept()s connection from a unix socket
(either stream or seqpacket)
it gets the socket with the label of the connecting process.

For example, if a connecting process has a label 'foo',
the accept()ed socket will also have 'in' and 'out' labels 'foo',
regardless of the label of the listener process.

This is because kernel creates unix child sockets
in the context of the connecting process.

I do not see any obvious way for the listener to abuse
alien labels coming with the new socket, but,
to be on the safe side, it's better fix new socket labels.

Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:03 +01:00
..
apparmor apparmor: fix possible NULL pointer dereference 2024-11-23 23:20:57 +01:00
bpf
integrity ima: Avoid blocking in RCU read-side critical section 2024-11-19 14:19:42 +01:00
keys task_work: s/task_work_cancel()/task_work_cancel_func()/ 2024-11-23 23:20:13 +01:00
loadpin
lockdown
safesetid
samsung
sdp
selinux selinux: fix potential counting error in avc_add_xperms_decision() 2024-11-23 23:20:42 +01:00
smack smack: unix sockets: fix accept()ed socket label 2024-11-23 23:21:03 +01:00
tomoyo tomoyo: fix UAF write bug in tomoyo_write_control() 2024-11-18 23:18:29 +01:00
yama
commoncap.c
device_cgroup.c
inode.c
Kconfig
Kconfig.hardening
lsm_audit.c
Makefile selinux: Remove audit dependency 2024-11-19 17:53:57 +01:00
min_addr.c
security.c ima: Avoid blocking in RCU read-side critical section 2024-11-19 14:19:42 +01:00