mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 12:50:02 +02:00
Tests SCM_RIGHTS fd passing on a socket with the new socket option SO_RIGHTS_NOTRUNC turned on. To hook into the security_file_receive() call, BPF is used. The BPF program shares a hashmap with userspace that lists the inos to be blocked (of the receiver tgid). Signed-off-by: Jori Koolstra <jkoolstra@xs4all.nl> Link: https://patch.msgid.link/20260814172806.158954-1-jkoolstra@xs4all.nl Signed-off-by: Jakub Kicinski <kuba@kernel.org>
12 lines
201 B
Plaintext
12 lines
201 B
Plaintext
CONFIG_AF_UNIX_OOB=y
|
|
CONFIG_BPF=y
|
|
CONFIG_BPF_EVENTS=y
|
|
CONFIG_BPF_JIT=y
|
|
CONFIG_BPF_LSM=y
|
|
CONFIG_BPF_SYSCALL=y
|
|
CONFIG_DEBUG_INFO_BTF=y
|
|
CONFIG_SECURITY=y
|
|
CONFIG_UNIX=y
|
|
CONFIG_UNIX_DIAG=m
|
|
CONFIG_USER_NS=y
|