Searched refs:kid_t (Results 1 - 2 of 2) sorted by relevance
/linux-master/security/safesetid/ |
H A D | lsm.h | 33 } kid_t; typedef in typeref:union:__anon2729 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);
|
H A D | lsm.c | 34 kid_t src, kid_t dst) 67 static enum sid_policy_type setid_policy_lookup(kid_t src, kid_t dst, enum setid_type new_type) 114 if (setid_policy_lookup((kid_t){.uid = cred->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) 128 if (setid_policy_lookup((kid_t){.gid = cred->gid}, INVALID_ID, GID) == SIDPOL_DEFAULT) 148 static bool id_permitted_for_cred(const struct cred *old, kid_t new_id, enum setid_type new_type) 169 setid_policy_lookup((kid_t){.uid = old->uid}, new_id, new_type) != SIDPOL_CONSTRAINED; 197 if (setid_policy_lookup((kid_t){.uid = old->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) 200 if (id_permitted_for_cred(old, (kid_t){ [all...] |
Completed in 139 milliseconds