personality.h 393 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_PERSONALITY_H
  3. #define _LINUX_PERSONALITY_H
  4. #include <uapi/linux/personality.h>
  5. /*
  6. * Return the base personality without flags.
  7. */
  8. #define personality(pers) (pers & PER_MASK)
  9. /*
  10. * Change personality of the currently running process.
  11. */
  12. #define set_personality(pers) (current->personality = (pers))
  13. #endif /* _LINUX_PERSONALITY_H */