1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_PERSONALITY_H 2 #ifndef _LINUX_PERSONALITY_H 3 #define _LINUX_PERSONALITY_H 3 #define _LINUX_PERSONALITY_H 4 4 5 #include <uapi/linux/personality.h> 5 #include <uapi/linux/personality.h> 6 6 7 /* 7 /* 8 * Return the base personality without flags. 8 * Return the base personality without flags. 9 */ 9 */ 10 #define personality(pers) (pers & PER_MA 10 #define personality(pers) (pers & PER_MASK) 11 11 12 /* 12 /* 13 * Change personality of the currently running 13 * Change personality of the currently running process. 14 */ 14 */ 15 #define set_personality(pers) (current->pers 15 #define set_personality(pers) (current->personality = (pers)) 16 16 17 #endif /* _LINUX_PERSONALITY_H */ 17 #endif /* _LINUX_PERSONALITY_H */ 18 18
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.