Lines Matching defs:cred
90 static int safesetid_security_capable(const struct cred *cred,
119 if (setid_policy_lookup((kid_t){.uid = cred->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT)
126 __kuid_val(cred->uid));
134 if (setid_policy_lookup((kid_t){.gid = cred->gid}, INVALID_ID, GID) == SIDPOL_DEFAULT)
141 __kuid_val(cred->uid));
156 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type)
195 * Check whether there is either an exception for user under old cred struct to
196 * set*uid to user under new cred struct, or the UID transition is allowed (by
199 static int safesetid_task_fix_setuid(struct cred *new,
200 const struct cred *old,
223 static int safesetid_task_fix_setgid(struct cred *new,
224 const struct cred *old,