blob: aeb7892b2468f8e1eefead4b1a723d5fed466bdd [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _LINUX_PERSONALITY_H
2#define _LINUX_PERSONALITY_H
3
David Howells607ca462012-10-13 10:46:48 +01004#include <uapi/linux/personality.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006/*
7 * Return the base personality without flags.
8 */
9#define personality(pers) (pers & PER_MASK)
10
Linus Torvalds1da177e2005-04-16 15:20:36 -070011/*
12 * Change personality of the currently running process.
13 */
Richard Weinberger9058f3b2015-04-11 21:45:22 +020014#define set_personality(pers) (current->personality = (pers))
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#endif /* _LINUX_PERSONALITY_H */