Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 6 of 6) sorted by relevance

/security/selinux/
Dibpkey.c55 static unsigned int sel_ib_pkey_hashfn(u16 pkey) in sel_ib_pkey_hashfn() argument
57 return (pkey & (SEL_PKEY_HASH_SIZE - 1)); in sel_ib_pkey_hashfn()
73 struct sel_ib_pkey *pkey; in sel_ib_pkey_find() local
76 list_for_each_entry_rcu(pkey, &sel_ib_pkey_hash[idx].list, list) { in sel_ib_pkey_find()
77 if (pkey->psec.pkey == pkey_num && in sel_ib_pkey_find()
78 pkey->psec.subnet_prefix == subnet_prefix) in sel_ib_pkey_find()
79 return pkey; in sel_ib_pkey_find()
93 static void sel_ib_pkey_insert(struct sel_ib_pkey *pkey) in sel_ib_pkey_insert() argument
100 idx = sel_ib_pkey_hashfn(pkey->psec.pkey); in sel_ib_pkey_insert()
101 list_add_rcu(&pkey->list, &sel_ib_pkey_hash[idx].list); in sel_ib_pkey_insert()
[all …]
Dhooks.c6862 ibpkey.pkey = pkey_val; in selinux_ib_pkey_access()
/security/selinux/include/
Dibpkey.h19 int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey, u32 *sid);
25 static inline int sel_ib_pkey_sid(u64 subnet_prefix, u16 pkey, u32 *sid) in sel_ib_pkey_sid() argument
Dobjsec.h138 u16 pkey; /* PKey number */ member
/security/
Dlsm_audit.c424 a->u.ibpkey->pkey, &sbn_pfx); in dump_common_audit_data()
Dsecurity.c2440 int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey) in security_ib_pkey_access() argument
2442 return call_int_hook(ib_pkey_access, 0, sec, subnet_prefix, pkey); in security_ib_pkey_access()