]> git.ipfire.org Git - thirdparty/kernel/linux.git/blob - include/linux/personality.h
Merge tag 'mm-stable-2024-05-17-19-19' of git://git.kernel.org/pub/scm/linux/kernel...
[thirdparty/kernel/linux.git] / include / linux / personality.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_PERSONALITY_H
3 #define _LINUX_PERSONALITY_H
4
5 #include <uapi/linux/personality.h>
6
7 /*
8 * Return the base personality without flags.
9 */
10 #define personality(pers) (pers & PER_MASK)
11
12 /*
13 * Change personality of the currently running process.
14 */
15 #define set_personality(pers) (current->personality = (pers))
16
17 #endif /* _LINUX_PERSONALITY_H */