1 #ifndef _LINUX_UIDGID_H
2 #define _LINUX_UIDGID_H
14 #include <linux/types.h>
20 #ifdef CONFIG_UIDGID_STRICT_TYPE_CHECKS
31 #define KUIDT_INIT(value) (kuid_t){ value }
32 #define KGIDT_INIT(value) (kgid_t){ value }
59 #define KUIDT_INIT(value) ((kuid_t) value )
60 #define KGIDT_INIT(value) ((kgid_t) value )
64 #define GLOBAL_ROOT_UID KUIDT_INIT(0)
65 #define GLOBAL_ROOT_GID KGIDT_INIT(0)
67 #define INVALID_UID KUIDT_INIT(-1)
68 #define INVALID_GID KGIDT_INIT(-1)
72 return __kuid_val(left) == __kuid_val(right);
77 return __kgid_val(left) == __kgid_val(right);
82 return __kuid_val(left) > __kuid_val(right);
87 return __kgid_val(left) > __kgid_val(right);
92 return __kuid_val(left) >= __kuid_val(right);
97 return __kgid_val(left) >= __kgid_val(right);
102 return __kuid_val(left) < __kuid_val(right);
107 return __kgid_val(left) < __kgid_val(right);
112 return __kuid_val(left) <= __kuid_val(right);
117 return __kgid_val(left) <= __kgid_val(right);
130 #ifdef CONFIG_USER_NS
164 return __kuid_val(kuid);
169 return __kgid_val(kgid);
175 if (uid == (
uid_t)-1)
183 if (gid == (
gid_t)-1)