Home
last modified time | relevance | path

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

/linux-6.6.21/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(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-6.6.21/security/selinux/include/
Dsecurity.h285 int security_ib_pkey_sid(u64 subnet_prefix, u16 pkey_num, u32 *out_sid);
/linux-6.6.21/security/selinux/ss/
Dservices.c2431 int security_ib_pkey_sid(u64 subnet_prefix, u16 pkey_num, u32 *out_sid) in security_ib_pkey_sid() argument
2453 if (c->u.ibpkey.low_pkey <= pkey_num && in security_ib_pkey_sid()
2454 c->u.ibpkey.high_pkey >= pkey_num && in security_ib_pkey_sid()