Lines Matching defs:cred
90 static int safesetid_security_capable(const struct cred *cred,
113 if (setid_policy_lookup((kid_t){.uid = cred->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT)
120 __kuid_val(cred->uid));
127 if (setid_policy_lookup((kid_t){.gid = cred->gid}, INVALID_ID, GID) == SIDPOL_DEFAULT)
134 __kgid_val(cred->gid));
147 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type)
186 * Check whether there is either an exception for user under old cred struct to
187 * set*uid to user under new cred struct, or the UID transition is allowed (by
190 static int safesetid_task_fix_setuid(struct cred *new,
191 const struct cred *old,
214 static int safesetid_task_fix_setgid(struct cred *new,
215 const struct cred *old,
238 static int safesetid_task_fix_setgroups(struct cred *new, const struct cred *old)