From 23536c231026652872d17e3b6cdcbf64a07eecc7 Mon Sep 17 00:00:00 2001 From: Mickaël Salaün Date: Tue, 13 Feb 2024 13:57:41 +0100 Subject: sys/linux: add LSM syscalls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 3 new system calls available with Linux 6.8: * lsm_set_self_attr() * lsm_get_self_attr() * lsm_list_modules() This helped find these bugs: https://lore.kernel.org/all/20240223190546.3329966-1-mic@digikod.net/ Signed-off-by: Mickaël Salaün --- sys/linux/lsm.txt.const | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sys/linux/lsm.txt.const (limited to 'sys/linux/lsm.txt.const') diff --git a/sys/linux/lsm.txt.const b/sys/linux/lsm.txt.const new file mode 100644 index 000000000..aecf31e90 --- /dev/null +++ b/sys/linux/lsm.txt.const @@ -0,0 +1,25 @@ +# Code generated by syz-sysgen. DO NOT EDIT. +arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x +LSM_ATTR_CURRENT = 100 +LSM_ATTR_EXEC = 101 +LSM_ATTR_FSCREATE = 102 +LSM_ATTR_KEYCREATE = 103 +LSM_ATTR_PREV = 104 +LSM_ATTR_SOCKCREATE = 105 +LSM_ATTR_UNDEF = 0 +LSM_FLAG_SINGLE = 1 +LSM_ID_APPARMOR = 104 +LSM_ID_BPF = 109 +LSM_ID_CAPABILITY = 100 +LSM_ID_LANDLOCK = 110 +LSM_ID_LOADPIN = 106 +LSM_ID_LOCKDOWN = 108 +LSM_ID_SAFESETID = 107 +LSM_ID_SELINUX = 101 +LSM_ID_SMACK = 102 +LSM_ID_TOMOYO = 103 +LSM_ID_UNDEF = 0 +LSM_ID_YAMA = 105 +__NR_lsm_get_self_attr = 459, mips64le:5459 +__NR_lsm_list_modules = 461, mips64le:5461 +__NR_lsm_set_self_attr = 460, mips64le:5460 -- cgit mrf-deployment