Go to the documentation of this file. 1 #ifndef _UAPI_LINUX_SECUREBITS_H
2 #define _UAPI_LINUX_SECUREBITS_H
8 #define issecure_mask(X) (1 << (X))
10 #define SECUREBITS_DEFAULT 0x00000000
18 #define SECURE_NOROOT 0
19 #define SECURE_NOROOT_LOCKED 1
21 #define SECBIT_NOROOT (issecure_mask(SECURE_NOROOT))
22 #define SECBIT_NOROOT_LOCKED (issecure_mask(SECURE_NOROOT_LOCKED))
28 #define SECURE_NO_SETUID_FIXUP 2
29 #define SECURE_NO_SETUID_FIXUP_LOCKED 3
31 #define SECBIT_NO_SETUID_FIXUP (issecure_mask(SECURE_NO_SETUID_FIXUP))
32 #define SECBIT_NO_SETUID_FIXUP_LOCKED \
33 (issecure_mask(SECURE_NO_SETUID_FIXUP_LOCKED))
40 #define SECURE_KEEP_CAPS 4
41 #define SECURE_KEEP_CAPS_LOCKED 5
43 #define SECBIT_KEEP_CAPS (issecure_mask(SECURE_KEEP_CAPS))
44 #define SECBIT_KEEP_CAPS_LOCKED (issecure_mask(SECURE_KEEP_CAPS_LOCKED))
46 #define SECURE_ALL_BITS (issecure_mask(SECURE_NOROOT) | \
47 issecure_mask(SECURE_NO_SETUID_FIXUP) | \
48 issecure_mask(SECURE_KEEP_CAPS))
49 #define SECURE_ALL_LOCKS (SECURE_ALL_BITS << 1)