Home
last modified time | relevance | path

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

/Linux-v5.4/security/selinux/
Dibpkey.c71 static struct sel_ib_pkey *sel_ib_pkey_find(u64 subnet_prefix, u16 pkey_num) in sel_ib_pkey_find() argument
76 idx = sel_ib_pkey_hashfn(pkey_num); in sel_ib_pkey_find()
78 if (pkey->psec.pkey == pkey_num && in sel_ib_pkey_find()
130 static int sel_ib_pkey_sid_slow(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid_slow() argument
138 pkey = sel_ib_pkey_find(subnet_prefix, pkey_num); in sel_ib_pkey_sid_slow()
145 ret = security_ib_pkey_sid(&selinux_state, subnet_prefix, pkey_num, in sel_ib_pkey_sid_slow()
158 new->psec.pkey = pkey_num; in sel_ib_pkey_sid_slow()
180 int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey_num, u32 *sid) in sel_ib_pkey_sid() argument
185 pkey = sel_ib_pkey_find(subnet_prefix, pkey_num); in sel_ib_pkey_sid()
193 return sel_ib_pkey_sid_slow(subnet_prefix, pkey_num, sid); in sel_ib_pkey_sid()
/Linux-v5.4/security/selinux/include/
Dsecurity.h285 u64 subnet_prefix, u16 pkey_num, u32 *out_sid);
/Linux-v5.4/security/selinux/ss/
Dservices.c2306 u64 subnet_prefix, u16 pkey_num, u32 *out_sid) in security_ib_pkey_sid() argument
2320 if (c->u.ibpkey.low_pkey <= pkey_num && in security_ib_pkey_sid()
2321 c->u.ibpkey.high_pkey >= pkey_num && in security_ib_pkey_sid()