Home
last modified time | relevance | path

Searched refs:kid_t (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/security/safesetid/
H A Dlsm.c33 kid_t src, kid_t dst) in _setid_policy_lookup()
66 static enum sid_policy_type setid_policy_lookup(kid_t src, kid_t dst, enum setid_type new_type) in setid_policy_lookup()
113 if (setid_policy_lookup((kid_t){.uid = cred->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) in safesetid_security_capable()
127 if (setid_policy_lookup((kid_t){.gid = cred->gid}, INVALID_ID, GID) == SIDPOL_DEFAULT) in safesetid_security_capable()
147 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type) in id_permitted_for_cred()
168 setid_policy_lookup((kid_t){.uid = old->uid}, new_id, new_type) != SIDPOL_CONSTRAINED; in id_permitted_for_cred()
196 if (setid_policy_lookup((kid_t){.uid = old->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) in safesetid_task_fix_setuid()
199 if (id_permitted_for_cred(old, (kid_t){ in safesetid_task_fix_setuid()
[all...]
H A Dlsm.h33 } kid_t; typedef
46 kid_t src_id;
47 kid_t dst_id;
55 /* Extension of INVALID_UID/INVALID_GID for kid_t type */
56 #define INVALID_ID (kid_t){.uid = INVALID_UID}
68 kid_t src, kid_t dst);
/kernel/linux/linux-5.10/security/safesetid/
H A Dlsm.c33 kid_t src, kid_t dst) in _setid_policy_lookup()
66 static enum sid_policy_type setid_policy_lookup(kid_t src, kid_t dst, enum setid_type new_type) in setid_policy_lookup()
119 if (setid_policy_lookup((kid_t){.uid = cred->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) in safesetid_security_capable()
134 if (setid_policy_lookup((kid_t){.gid = cred->gid}, INVALID_ID, GID) == SIDPOL_DEFAULT) in safesetid_security_capable()
156 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type) in id_permitted_for_cred()
177 setid_policy_lookup((kid_t){.uid = old->uid}, new_id, new_type) != SIDPOL_CONSTRAINED; in id_permitted_for_cred()
205 if (setid_policy_lookup((kid_t){.uid = old->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) in safesetid_task_fix_setuid()
208 if (id_permitted_for_cred(old, (kid_t){ in safesetid_task_fix_setuid()
[all...]
H A Dlsm.h33 } kid_t; typedef
46 kid_t src_id;
47 kid_t dst_id;
55 /* Extension of INVALID_UID/INVALID_GID for kid_t type */
56 #define INVALID_ID (kid_t){.uid = INVALID_UID}
68 kid_t src, kid_t dst);

Completed in 2 milliseconds