Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _LINUX_PERSONALITY_H |
| 2 | #define _LINUX_PERSONALITY_H |
| 3 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 4 | #include <uapi/linux/personality.h> |
| 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | /* |
| 7 | * Return the base personality without flags. |
| 8 | */ |
| 9 | #define personality(pers) (pers & PER_MASK) |
| 10 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | /* |
| 12 | * Change personality of the currently running process. |
| 13 | */ |
Richard Weinberger | 9058f3b | 2015-04-11 21:45:22 +0200 | [diff] [blame] | 14 | #define set_personality(pers) (current->personality = (pers)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #endif /* _LINUX_PERSONALITY_H */ |