Lines Matching refs:skp

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()
690 spin_unlock_bh(&skp->smk_cipsolock); in smk_write_cipso()
740 struct smk_netlbladdr *skp = in netlbladdr_seq_show() local
742 unsigned char *hp = (char *) &skp->smk_host.sin_addr.s_addr; in netlbladdr_seq_show()
744 u32 temp_mask = be32_to_cpu(skp->smk_mask.s_addr); in netlbladdr_seq_show()
749 hp[0], hp[1], hp[2], hp[3], maskn, skp->smk_label); in netlbladdr_seq_show()
834 struct smk_netlbladdr *skp; in smk_write_netlbladdr() local
908 list_for_each_entry_rcu(skp, &smk_netlbladdr_list, list) { in smk_write_netlbladdr()
909 if (skp->smk_host.sin_addr.s_addr == nsa && in smk_write_netlbladdr()
910 skp->smk_mask.s_addr == mask.s_addr) { in smk_write_netlbladdr()
918 skp = kzalloc(sizeof(*skp), GFP_KERNEL); in smk_write_netlbladdr()
919 if (skp == NULL) in smk_write_netlbladdr()
923 skp->smk_host.sin_addr.s_addr = newname.sin_addr.s_addr; in smk_write_netlbladdr()
924 skp->smk_mask.s_addr = mask.s_addr; in smk_write_netlbladdr()
925 skp->smk_label = sp; in smk_write_netlbladdr()
926 smk_netlbladdr_insert(skp); in smk_write_netlbladdr()
931 if (skp->smk_label != smack_cipso_option) in smk_write_netlbladdr()
933 &skp->smk_host.sin_addr, &skp->smk_mask, in smk_write_netlbladdr()
937 skp->smk_label = sp; in smk_write_netlbladdr()
947 &skp->smk_host.sin_addr, &skp->smk_mask, PF_INET, in smk_write_netlbladdr()
948 smack_to_secid(skp->smk_label), &audit_info); in smk_write_netlbladdr()