Linux 4.19-rc7
[linux-2.6/btrfs-unstable.git] / include / linux / personality.h
blobfc16fbc659c7a47aeb0192afd647e7f3d3fe8140
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_PERSONALITY_H
3 #define _LINUX_PERSONALITY_H
5 #include <uapi/linux/personality.h>
7 /*
8 * Return the base personality without flags.
9 */
10 #define personality(pers) (pers & PER_MASK)
13 * Change personality of the currently running process.
15 #define set_personality(pers) (current->personality = (pers))
17 #endif /* _LINUX_PERSONALITY_H */