android_kernel_motorola_sm6375/security/selinux
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mickaël Salaün 86a7c9ba83 selinux: Fix error priority for bind with AF_UNSPEC on PF_INET6 socket
[ Upstream commit bbf5a1d0e5d0fb3bdf90205aa872636122692a50 ]

The IPv6 network stack first checks the sockaddr length (-EINVAL error)
before checking the family (-EAFNOSUPPORT error).

This was discovered thanks to commit a549d055a22e ("selftests/landlock:
Add network tests").

Cc: Eric Paris <[email protected]>
Cc: Konstantin Meskhidze <[email protected]>
Cc: Paul Moore <[email protected]>
Cc: Stephen Smalley <[email protected]>
Reported-by: Muhammad Usama Anjum <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Fixes: 0f8db8cc73 ("selinux: add AF_UNSPEC and INADDR_ANY checks to selinux_socket_bind()")
Signed-off-by: Mickaël Salaün <[email protected]>
Tested-by: Muhammad Usama Anjum <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-01-25 14:34:23 -08:00
..
include
ss selinux: Add boundary check in put_entry() 2022-08-25 11:17:32 +02:00
.gitignore
avc.c selinux: use __GFP_NOWARN with GFP_NOWAIT in the AVC 2021-07-19 08:53:10 +02:00
hooks.c selinux: Fix error priority for bind with AF_UNSPEC on PF_INET6 socket 2024-01-25 14:34:23 -08:00
ibpkey.c selinux: Fix error return code in sel_ib_pkey_sid_slow() 2020-11-18 19:20:30 +01:00
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: sel_avc_get_stat_idx should increase position index 2020-10-01 13:17:32 +02:00
xfrm.c selinux: use correct type for context length 2022-04-15 14:18:22 +02:00