Searched refs:skp (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/security/smack/ |
D | smack_access.c | 356 struct smack_known *skp; in smk_import_entry() local 382 list_for_each_entry_rcu(skp, &smack_known_list, list) { in smk_import_entry() 383 if (strncmp(skp->smk_known, smack, SMK_MAXLEN) == 0) { in smk_import_entry() 390 skp = kzalloc(sizeof(struct smack_known), GFP_KERNEL); in smk_import_entry() 391 if (skp != NULL) { in smk_import_entry() 392 strncpy(skp->smk_known, smack, SMK_MAXLEN); in smk_import_entry() 393 skp->smk_secid = smack_next_secid++; in smk_import_entry() 394 skp->smk_cipso = NULL; in smk_import_entry() 395 spin_lock_init(&skp->smk_cipsolock); in smk_import_entry() 400 list_add_rcu(&skp->list, &smack_known_list); in smk_import_entry() [all …]
|
D | smackfs.c | 531 struct smack_known *skp = in cipso_seq_show() local 533 struct smack_cipso *scp = skp->smk_cipso; in cipso_seq_show() 543 seq_printf(s, "%s %3d", (char *)&skp->smk_known, scp->smk_level); in cipso_seq_show() 598 struct smack_known *skp; in smk_write_cipso() local 644 skp = smk_import_entry(rule, 0); in smk_write_cipso() 645 if (skp == NULL) in smk_write_cipso() 672 if (skp->smk_cipso == NULL) { in smk_write_cipso() 680 spin_lock_bh(&skp->smk_cipsolock); in smk_write_cipso() 683 scp = skp->smk_cipso; in smk_write_cipso() 685 skp->smk_cipso = scp; in smk_write_cipso() [all …]
|