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_PERSONALITY_H
8 #define _UAPI_LINUX_PERSONALITY_H
9 enum {
10   UNAME26 = 0x0020000,
11   ADDR_NO_RANDOMIZE = 0x0040000,
12   FDPIC_FUNCPTRS = 0x0080000,
13   MMAP_PAGE_ZERO = 0x0100000,
14   ADDR_COMPAT_LAYOUT = 0x0200000,
15   READ_IMPLIES_EXEC = 0x0400000,
16   ADDR_LIMIT_32BIT = 0x0800000,
17   SHORT_INODE = 0x1000000,
18   WHOLE_SECONDS = 0x2000000,
19   STICKY_TIMEOUTS = 0x4000000,
20   ADDR_LIMIT_3GB = 0x8000000,
21 };
22 #define PER_CLEAR_ON_SETID (READ_IMPLIES_EXEC | ADDR_NO_RANDOMIZE | ADDR_COMPAT_LAYOUT | MMAP_PAGE_ZERO)
23 enum {
24   PER_LINUX = 0x0000,
25   PER_LINUX_32BIT = 0x0000 | ADDR_LIMIT_32BIT,
26   PER_LINUX_FDPIC = 0x0000 | FDPIC_FUNCPTRS,
27   PER_SVR4 = 0x0001 | STICKY_TIMEOUTS | MMAP_PAGE_ZERO,
28   PER_SVR3 = 0x0002 | STICKY_TIMEOUTS | SHORT_INODE,
29   PER_SCOSVR3 = 0x0003 | STICKY_TIMEOUTS | WHOLE_SECONDS | SHORT_INODE,
30   PER_OSR5 = 0x0003 | STICKY_TIMEOUTS | WHOLE_SECONDS,
31   PER_WYSEV386 = 0x0004 | STICKY_TIMEOUTS | SHORT_INODE,
32   PER_ISCR4 = 0x0005 | STICKY_TIMEOUTS,
33   PER_BSD = 0x0006,
34   PER_SUNOS = 0x0006 | STICKY_TIMEOUTS,
35   PER_XENIX = 0x0007 | STICKY_TIMEOUTS | SHORT_INODE,
36   PER_LINUX32 = 0x0008,
37   PER_LINUX32_3GB = 0x0008 | ADDR_LIMIT_3GB,
38   PER_IRIX32 = 0x0009 | STICKY_TIMEOUTS,
39   PER_IRIXN32 = 0x000a | STICKY_TIMEOUTS,
40   PER_IRIX64 = 0x000b | STICKY_TIMEOUTS,
41   PER_RISCOS = 0x000c,
42   PER_SOLARIS = 0x000d | STICKY_TIMEOUTS,
43   PER_UW7 = 0x000e | STICKY_TIMEOUTS | MMAP_PAGE_ZERO,
44   PER_OSF4 = 0x000f,
45   PER_HPUX = 0x0010,
46   PER_MASK = 0x00ff,
47 };
48 #endif
49