Searched refs:skp (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/security/smack/ |
D | smack_access.c | 406 void smk_insert_entry(struct smack_known *skp) in smk_insert_entry() argument 411 hash = full_name_hash(NULL, skp->smk_known, strlen(skp->smk_known)); in smk_insert_entry() 414 hlist_add_head_rcu(&skp->smk_hashed, head); in smk_insert_entry() 415 list_add_rcu(&skp->list, &smack_known_list); in smk_insert_entry() 429 struct smack_known *skp; in smk_find_entry() local 434 hlist_for_each_entry_rcu(skp, head, smk_hashed) in smk_find_entry() 435 if (strcmp(skp->smk_known, string) == 0) in smk_find_entry() 436 return skp; in smk_find_entry() 528 struct smack_known *skp; in smk_import_entry() local 539 skp = smk_find_entry(smack); in smk_import_entry() [all …]
|
D | smack_lsm.c | 268 struct smack_known *skp = NULL; in smk_fetch() local 279 skp = ERR_PTR(rc); in smk_fetch() 281 skp = NULL; in smk_fetch() 283 skp = smk_import_entry(buffer, rc); in smk_fetch() 287 return skp; in smk_fetch() 296 static struct inode_smack *new_inode_smack(struct smack_known *skp) in new_inode_smack() argument 304 isp->smk_inode = skp; in new_inode_smack() 479 struct smack_known *skp; in smack_ptrace_access_check() local 481 skp = smk_of_task_struct(ctp); in smack_ptrace_access_check() 483 return smk_ptrace_rule_check(current, skp, mode, __func__); in smack_ptrace_access_check() [all …]
|
D | smackfs.c | 196 struct smack_known *skp = smk_of_current(); in smk_netlabel_audit_set() local 200 nap->secid = skp->smk_secid; in smk_netlabel_audit_set() 350 struct smack_known *skp; in smk_fill_rule() local 364 skp = smk_find_entry(cp); in smk_fill_rule() 366 if (skp == NULL) in smk_fill_rule() 368 rule->smk_subject = skp; in smk_fill_rule() 373 skp = smk_find_entry(cp); in smk_fill_rule() 375 if (skp == NULL) in smk_fill_rule() 377 rule->smk_object = skp; in smk_fill_rule() 798 struct smack_known *skp = in cipso_seq_show() local [all …]
|
D | smack_netfilter.c | 32 struct smack_known *skp; in smack_ipv6_output() local 36 skp = ssp->smk_out; in smack_ipv6_output() 37 skb->secmark = skp->smk_secid; in smack_ipv6_output() 50 struct smack_known *skp; in smack_ipv4_output() local 54 skp = ssp->smk_out; in smack_ipv4_output() 55 skb->secmark = skp->smk_secid; in smack_ipv4_output()
|
D | smack.h | 321 void smk_insert_entry(struct smack_known *skp); 387 struct smack_known *skp; in smk_of_task_struct() local 390 skp = smk_of_task(__task_cred(t)->security); in smk_of_task_struct() 392 return skp; in smk_of_task_struct()
|