Lines Matching +full:left +full:- +full:right

1 /* SPDX-License-Identifier: GPL-2.0 */
58 #define INVALID_UID KUIDT_INIT(-1)
59 #define INVALID_GID KGIDT_INIT(-1)
61 static inline bool uid_eq(kuid_t left, kuid_t right) in uid_eq() argument
63 return __kuid_val(left) == __kuid_val(right); in uid_eq()
66 static inline bool gid_eq(kgid_t left, kgid_t right) in gid_eq() argument
68 return __kgid_val(left) == __kgid_val(right); in gid_eq()
71 static inline bool uid_gt(kuid_t left, kuid_t right) in uid_gt() argument
73 return __kuid_val(left) > __kuid_val(right); in uid_gt()
76 static inline bool gid_gt(kgid_t left, kgid_t right) in gid_gt() argument
78 return __kgid_val(left) > __kgid_val(right); in gid_gt()
81 static inline bool uid_gte(kuid_t left, kuid_t right) in uid_gte() argument
83 return __kuid_val(left) >= __kuid_val(right); in uid_gte()
86 static inline bool gid_gte(kgid_t left, kgid_t right) in gid_gte() argument
88 return __kgid_val(left) >= __kgid_val(right); in gid_gte()
91 static inline bool uid_lt(kuid_t left, kuid_t right) in uid_lt() argument
93 return __kuid_val(left) < __kuid_val(right); in uid_lt()
96 static inline bool gid_lt(kgid_t left, kgid_t right) in gid_lt() argument
98 return __kgid_val(left) < __kgid_val(right); in gid_lt()
101 static inline bool uid_lte(kuid_t left, kuid_t right) in uid_lte() argument
103 return __kuid_val(left) <= __kuid_val(right); in uid_lte()
106 static inline bool gid_lte(kgid_t left, kgid_t right) in gid_lte() argument
108 return __kgid_val(left) <= __kgid_val(right); in gid_lte()
113 return __kuid_val(uid) != (uid_t) -1; in uid_valid()
118 return __kgid_val(gid) != (gid_t) -1; in gid_valid()
133 return from_kuid(ns, uid) != (uid_t) -1; in kuid_has_mapping()
138 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping()
166 if (uid == (uid_t)-1) in from_kuid_munged()
174 if (gid == (gid_t)-1) in from_kgid_munged()