Searched refs:skp (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/security/smack/ |
D | smack_access.c | 402 void smk_insert_entry(struct smack_known *skp) in smk_insert_entry() argument 407 hash = full_name_hash(NULL, skp->smk_known, strlen(skp->smk_known)); in smk_insert_entry() 410 hlist_add_head_rcu(&skp->smk_hashed, head); in smk_insert_entry() 411 list_add_rcu(&skp->list, &smack_known_list); in smk_insert_entry() 425 struct smack_known *skp; in smk_find_entry() local 430 hlist_for_each_entry_rcu(skp, head, smk_hashed) in smk_find_entry() 431 if (strcmp(skp->smk_known, string) == 0) in smk_find_entry() 432 return skp; in smk_find_entry() 520 int smack_populate_secattr(struct smack_known *skp) in smack_populate_secattr() argument 524 skp->smk_netlabel.attr.secid = skp->smk_secid; in smack_populate_secattr() [all …]
|
D | smack_lsm.c | 286 struct smack_known *skp = NULL; in smk_fetch() local 297 skp = ERR_PTR(rc); in smk_fetch() 299 skp = NULL; in smk_fetch() 301 skp = smk_import_entry(buffer, rc); in smk_fetch() 305 return skp; in smk_fetch() 314 static void init_inode_smack(struct inode *inode, struct smack_known *skp) in init_inode_smack() argument 318 isp->smk_inode = skp; in init_inode_smack() 483 struct smack_known *skp; in smack_ptrace_access_check() local 485 skp = smk_of_task_struct_obj(ctp); in smack_ptrace_access_check() 487 return smk_ptrace_rule_check(current, skp, mode, __func__); in smack_ptrace_access_check() [all …]
|
D | smackfs.c | 185 struct smack_known *skp = smk_of_current(); in smk_netlabel_audit_set() local 189 nap->secid = skp->smk_secid; in smk_netlabel_audit_set() 321 struct smack_known *skp; in smk_fill_rule() local 335 skp = smk_find_entry(cp); in smk_fill_rule() 337 if (skp == NULL) in smk_fill_rule() 339 rule->smk_subject = skp; in smk_fill_rule() 344 skp = smk_find_entry(cp); in smk_fill_rule() 346 if (skp == NULL) in smk_fill_rule() 348 rule->smk_object = skp; in smk_fill_rule() 622 struct smack_known *skp = in load_seq_show() local [all …]
|
D | smack_netfilter.c | 27 struct smack_known *skp; in smack_ip_output() local 31 skp = ssp->smk_out; in smack_ip_output() 32 skb->secmark = skp->smk_secid; in smack_ip_output()
|
D | smack.h | 286 void smk_insert_entry(struct smack_known *skp); 291 int smack_populate_secattr(struct smack_known *skp); 386 struct smack_known *skp; in smk_of_task_struct_obj() local 392 skp = smk_of_task(smack_cred(cred)); in smk_of_task_struct_obj() 396 return skp; in smk_of_task_struct_obj()
|