• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_LINUX_LSM_H
8 #define _UAPI_LINUX_LSM_H
9 #include <linux/stddef.h>
10 #include <linux/types.h>
11 #include <linux/unistd.h>
12 struct lsm_ctx {
13   __u64 id;
14   __u64 flags;
15   __u64 len;
16   __u64 ctx_len;
17   __u8 ctx[] __counted_by(ctx_len);
18 };
19 #define LSM_ID_UNDEF 0
20 #define LSM_ID_CAPABILITY 100
21 #define LSM_ID_SELINUX 101
22 #define LSM_ID_SMACK 102
23 #define LSM_ID_TOMOYO 103
24 #define LSM_ID_APPARMOR 104
25 #define LSM_ID_YAMA 105
26 #define LSM_ID_LOADPIN 106
27 #define LSM_ID_SAFESETID 107
28 #define LSM_ID_LOCKDOWN 108
29 #define LSM_ID_BPF 109
30 #define LSM_ID_LANDLOCK 110
31 #define LSM_ID_IMA 111
32 #define LSM_ID_EVM 112
33 #define LSM_ID_IPE 113
34 #define LSM_ATTR_UNDEF 0
35 #define LSM_ATTR_CURRENT 100
36 #define LSM_ATTR_EXEC 101
37 #define LSM_ATTR_FSCREATE 102
38 #define LSM_ATTR_KEYCREATE 103
39 #define LSM_ATTR_PREV 104
40 #define LSM_ATTR_SOCKCREATE 105
41 #define LSM_FLAG_SINGLE 0x0001
42 #endif
43