Searched refs:skp (Results 1 – 5 of 5) sorted by relevance
| /linux/security/smack/ |
| H A D | smack_access.c | 410 void smk_insert_entry(struct smack_known *skp) in smk_insert_entry() argument 415 hash = full_name_hash(NULL, skp->smk_known, strlen(skp->smk_known)); in smk_insert_entry() 418 hlist_add_head_rcu(&skp->smk_hashed, head); in smk_insert_entry() 419 list_add_rcu(&skp->list, &smack_known_list); in smk_insert_entry() 433 struct smack_known *skp; in smk_find_entry() local 438 hlist_for_each_entry_rcu(skp, head, smk_hashed) in smk_find_entry() 439 if (strcmp(skp->smk_known, string) == 0) in smk_find_entry() 440 return skp; in smk_find_entry() 547 int smack_populate_secattr(struct smack_known *skp) in smack_populate_secattr() argument 551 skp->smk_netlabel.attr.secid = skp->smk_secid; in smack_populate_secattr() [all …]
|
| H A D | smack_lsm.c | 280 struct smack_known *skp = NULL; in smk_fetch() local 291 skp = ERR_PTR(rc); in smk_fetch() 293 skp = NULL; in smk_fetch() 295 skp = smk_import_entry(buffer, rc); in smk_fetch() 299 return skp; in smk_fetch() 308 static void init_inode_smack(struct inode *inode, struct smack_known *skp) in init_inode_smack() argument 312 isp->smk_inode = skp; in init_inode_smack() 477 struct smack_known *skp; in smack_ptrace_access_check() local 479 skp = smk_of_task_struct_obj(ctp); in smack_ptrace_access_check() 481 return smk_ptrace_rule_check(current, skp, mode, __func__); in smack_ptrace_access_check() [all …]
|
| H A D | smackfs.c | 190 nap->prop.smack.skp = smk_of_current(); in smk_netlabel_audit_set() 322 struct smack_known *skp; in smk_fill_rule() local 336 skp = smk_find_entry(cp); in smk_fill_rule() 338 if (skp == NULL) in smk_fill_rule() 340 rule->smk_subject = skp; in smk_fill_rule() 345 skp = smk_find_entry(cp); in smk_fill_rule() 347 if (skp == NULL) in smk_fill_rule() 349 rule->smk_object = skp; in smk_fill_rule() 607 struct smack_known *skp = in load_seq_show() local 610 list_for_each_entry_rcu(srp, &skp->smk_rules, list) in load_seq_show() [all …]
|
| H A 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()
|
| H A D | smack.h | 309 void smk_insert_entry(struct smack_known *skp); 314 int smack_populate_secattr(struct smack_known *skp); 423 struct smack_known *skp; in smk_of_task_struct_obj() local 429 skp = smk_of_task(smack_cred(cred)); in smk_of_task_struct_obj() 433 return skp; in smk_of_task_struct_obj()
|