Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
personality.h
Go to the documentation of this file.
1 #ifndef _UAPI_LINUX_PERSONALITY_H
2 #define _UAPI_LINUX_PERSONALITY_H
3 
4 
5 /*
6  * Flags for bug emulation.
7  *
8  * These occupy the top three bytes.
9  */
10 enum {
11  UNAME26 = 0x0020000,
12  ADDR_NO_RANDOMIZE = 0x0040000, /* disable randomization of VA space */
13  FDPIC_FUNCPTRS = 0x0080000, /* userspace function ptrs point to descriptors
14  * (signal handling)
15  */
16  MMAP_PAGE_ZERO = 0x0100000,
17  ADDR_COMPAT_LAYOUT = 0x0200000,
18  READ_IMPLIES_EXEC = 0x0400000,
19  ADDR_LIMIT_32BIT = 0x0800000,
20  SHORT_INODE = 0x1000000,
21  WHOLE_SECONDS = 0x2000000,
22  STICKY_TIMEOUTS = 0x4000000,
23  ADDR_LIMIT_3GB = 0x8000000,
24 };
25 
26 /*
27  * Security-relevant compatibility flags that must be
28  * cleared upon setuid or setgid exec:
29  */
30 #define PER_CLEAR_ON_SETID (READ_IMPLIES_EXEC | \
31  ADDR_NO_RANDOMIZE | \
32  ADDR_COMPAT_LAYOUT | \
33  MMAP_PAGE_ZERO)
34 
35 /*
36  * Personality types.
37  *
38  * These go in the low byte. Avoid using the top bit, it will
39  * conflict with error returns.
40  */
41 enum {
42  PER_LINUX = 0x0000,
52  PER_BSD = 0x0006,
55  PER_LINUX32 = 0x0008,
57  PER_IRIX32 = 0x0009 | STICKY_TIMEOUTS,/* IRIX5 32-bit */
58  PER_IRIXN32 = 0x000a | STICKY_TIMEOUTS,/* IRIX6 new 32-bit */
59  PER_IRIX64 = 0x000b | STICKY_TIMEOUTS,/* IRIX6 64-bit */
60  PER_RISCOS = 0x000c,
63  PER_OSF4 = 0x000f, /* OSF/1 v4 */
64  PER_HPUX = 0x0010,
65  PER_MASK = 0x00ff,
66 };
67 
68 
69 #endif /* _UAPI_LINUX_PERSONALITY_H */