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

1 /* SPDX-License-Identifier: GPL-2.0 */
50 #define INVALID_UID KUIDT_INIT(-1)
51 #define INVALID_GID KGIDT_INIT(-1)
53 static inline bool uid_eq(kuid_t left, kuid_t right) in uid_eq() argument
55 return __kuid_val(left) == __kuid_val(right); in uid_eq()
58 static inline bool gid_eq(kgid_t left, kgid_t right) in gid_eq() argument
60 return __kgid_val(left) == __kgid_val(right); in gid_eq()
63 static inline bool uid_gt(kuid_t left, kuid_t right) in uid_gt() argument
65 return __kuid_val(left) > __kuid_val(right); in uid_gt()
68 static inline bool gid_gt(kgid_t left, kgid_t right) in gid_gt() argument
70 return __kgid_val(left) > __kgid_val(right); in gid_gt()
73 static inline bool uid_gte(kuid_t left, kuid_t right) in uid_gte() argument
75 return __kuid_val(left) >= __kuid_val(right); in uid_gte()
78 static inline bool gid_gte(kgid_t left, kgid_t right) in gid_gte() argument
80 return __kgid_val(left) >= __kgid_val(right); in gid_gte()
83 static inline bool uid_lt(kuid_t left, kuid_t right) in uid_lt() argument
85 return __kuid_val(left) < __kuid_val(right); in uid_lt()
88 static inline bool gid_lt(kgid_t left, kgid_t right) in gid_lt() argument
90 return __kgid_val(left) < __kgid_val(right); in gid_lt()
93 static inline bool uid_lte(kuid_t left, kuid_t right) in uid_lte() argument
95 return __kuid_val(left) <= __kuid_val(right); in uid_lte()
98 static inline bool gid_lte(kgid_t left, kgid_t right) in gid_lte() argument
100 return __kgid_val(left) <= __kgid_val(right); in gid_lte()
105 return __kuid_val(uid) != (uid_t) -1; in uid_valid()
110 return __kgid_val(gid) != (gid_t) -1; in gid_valid()
125 return from_kuid(ns, uid) != (uid_t) -1; in kuid_has_mapping()
130 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping()
161 if (uid == (uid_t)-1) in from_kuid_munged()
169 if (gid == (gid_t)-1) in from_kgid_munged()