Home
last modified time | relevance | path

Searched refs:pkey_num (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.15/security/selinux/
Dibpkey.c70 static struct sel_ib_pkey *sel_ib_pkey_find(u64 subnet_prefix, u16 pkey_num) in sel_ib_pkey_find() argument
75 idx = sel_ib_pkey_hashfn(pkey_num); in sel_ib_pkey_find()
77 if (pkey->psec.pkey == pkey_num && in sel_ib_pkey_find()
129 static int sel_ib_pkey_sid_slow(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid_slow() argument
137 pkey = sel_ib_pkey_find(subnet_prefix, pkey_num); in sel_ib_pkey_sid_slow()
144 ret = security_ib_pkey_sid(&selinux_state, subnet_prefix, pkey_num, in sel_ib_pkey_sid_slow()
159 new->psec.pkey = pkey_num; in sel_ib_pkey_sid_slow()
181 int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid() argument
186 pkey = sel_ib_pkey_find(subnet_prefix, pkey_num); in sel_ib_pkey_sid()
194 return sel_ib_pkey_sid_slow(subnet_prefix, pkey_num, sid); in sel_ib_pkey_sid()
/Linux-v5.15/security/selinux/include/
Dsecurity.h339 u64 subnet_prefix, u16 pkey_num, u32 *out_sid);
/Linux-v5.15/security/selinux/ss/
Dservices.c2445 u64 subnet_prefix, u16 pkey_num, u32 *out_sid) in security_ib_pkey_sid() argument
2467 if (c->u.ibpkey.low_pkey <= pkey_num && in security_ib_pkey_sid()
2468 c->u.ibpkey.high_pkey >= pkey_num && in security_ib_pkey_sid()