Lines Matching refs:uid
35 * bit is left on either to change the uid (plausible) or
426 /* If the root kuid maps to a valid uid in current ns, then return
488 * rootid_from_xattr - translate root uid of vfs caps
694 * or the more limited uid specified in the xattr.
768 static inline bool __is_real(kuid_t uid, struct cred *cred)
769 { return uid_eq(cred->uid, uid); }
771 static inline bool __is_eff(kuid_t uid, struct cred *cred)
772 { return uid_eq(cred->euid, uid); }
774 static inline bool __is_suid(kuid_t uid, struct cred *cred)
775 { return !__is_real(uid, cred) && __is_eff(uid, cred); }
817 * If only the real uid is 0, we do not set the effective bit.
831 { return !uid_eq(new->euid, old->uid); }
888 /* Process setpcap binaries and capabilities for uid 0 */
923 new->euid = new->uid;
1060 * 1) When set*uiding _from_ one of {r,e,s}uid == 0 _to_ all of
1061 * {r,e,s}uid != 0, the permitted and effective capabilities are
1070 * fsuid is handled elsewhere. fsuid == 0 and {r,e,s}uid!= 0 should
1077 * calls setuid() and switches away from uid==0. Both permitted and
1081 * Keeping uid 0 is not an option because uid 0 owns too many vital
1089 if ((uid_eq(old->uid, root_uid) ||
1092 (!uid_eq(new->uid, root_uid) &&