2014-12-27 16:42:08 +01:00
|
|
|
#ifndef _LINUX_PERSONALITY_H
|
|
|
|
#define _LINUX_PERSONALITY_H
|
|
|
|
|
|
|
|
#include <uapi/linux/personality.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Return the base personality without flags.
|
|
|
|
*/
|
|
|
|
#define personality(pers) (pers & PER_MASK)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Change personality of the currently running process.
|
|
|
|
*/
|
2016-01-20 05:19:53 +01:00
|
|
|
#define set_personality(pers) (current->personality = (pers))
|
2014-12-27 16:42:08 +01:00
|
|
|
|
|
|
|
#endif /* _LINUX_PERSONALITY_H */
|