Lines Matching refs:skp
185 struct smack_known *skp = smk_of_current();
189 nap->secid = skp->smk_secid;
321 struct smack_known *skp;
335 skp = smk_find_entry(cp);
337 if (skp == NULL)
339 rule->smk_subject = skp;
344 skp = smk_find_entry(cp);
346 if (skp == NULL)
348 rule->smk_object = skp;
622 struct smack_known *skp =
625 list_for_each_entry_rcu(srp, &skp->smk_rules, list)
769 struct smack_known *skp =
771 struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat;
783 if (strlen(skp->smk_known) >= SMK_LABELLEN)
786 seq_printf(s, "%s %3d", skp->smk_known, skp->smk_netlabel.attr.mls.lvl);
834 struct smack_known *skp;
872 skp = smk_import_entry(rule, 0);
873 if (IS_ERR(skp)) {
874 rc = PTR_ERR(skp);
881 rule += strlen(skp->smk_known) + 1;
928 skp->smk_netlabel.flags &= ~(1U << 3);
934 old_cat = skp->smk_netlabel.attr.mls.cat;
935 skp->smk_netlabel.attr.mls.cat = ncats.attr.mls.cat;
936 skp->smk_netlabel.attr.mls.lvl = ncats.attr.mls.lvl;
987 struct smack_known *skp =
989 struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat;
993 seq_printf(s, "%s %3d", skp->smk_known, skp->smk_netlabel.attr.mls.lvl);
1070 struct smk_net4addr *skp =
1074 if (skp->smk_label != NULL)
1075 kp = skp->smk_label->smk_known;
1076 seq_printf(s, "%pI4/%d %s\n", &skp->smk_host.s_addr,
1077 skp->smk_masks, kp);
1161 struct smack_known *skp = NULL;
1218 skp = smk_import_entry(smack, 0);
1219 if (IS_ERR(skp)) {
1220 rc = PTR_ERR(skp);
1265 snp->smk_label = skp;
1280 snp->smk_label = skp;
1288 if (rc == 0 && skp != NULL)
1335 struct smk_net6addr *skp =
1338 if (skp->smk_label != NULL)
1339 seq_printf(s, "%pI6/%d %s\n", &skp->smk_host, skp->smk_masks,
1340 skp->smk_label->smk_known);
1423 struct smack_known *skp = NULL;
1487 skp = smk_import_entry(smack, 0);
1488 if (IS_ERR(skp)) {
1489 rc = PTR_ERR(skp);
1543 snp->smk_label = skp;
1547 snp->smk_label = skp;
1674 struct smack_known *skp;
1699 list_for_each_entry_rcu(skp, &smack_known_list, list)
1700 if (skp->smk_netlabel.attr.mls.lvl ==
1702 skp->smk_netlabel.attr.mls.lvl = i;
1752 struct smack_known *skp;
1777 list_for_each_entry_rcu(skp, &smack_known_list, list)
1778 if (skp->smk_netlabel.attr.mls.lvl ==
1780 skp->smk_netlabel.attr.mls.lvl = i;
1843 struct smack_known *skp;
1859 skp = smk_import_entry(data, count);
1860 if (IS_ERR(skp)) {
1861 rc = PTR_ERR(skp);
1868 smack_net_ambient = skp;
1970 struct smack_known *skp;
1977 skp = smk_import_entry(tok, 0);
1978 if (IS_ERR(skp))
1979 return PTR_ERR(skp);
1985 sklep->smk_label = skp;
2110 struct smack_known *skp;
2132 skp = smk_import_entry(data, count);
2133 if (PTR_ERR(skp) == -EINVAL)
2134 skp = NULL;
2135 else if (IS_ERR(skp)) {
2136 rc = PTR_ERR(skp);
2140 smack_unconfined = skp;
2371 struct smack_known *skp =
2374 list_for_each_entry_rcu(srp, &skp->smk_rules, list)
2533 struct smack_known *skp;
2558 skp = smk_find_entry(cp);
2559 if (skp == NULL)
2562 rule_list = &skp->smk_rules;
2563 rule_lock = &skp->smk_rules_lock;
2635 struct smack_known *skp;
2643 skp = &smack_known_star;
2645 skp = smack_syslog_label;
2647 asize = strlen(skp->smk_known) + 1;
2650 rc = simple_read_from_buffer(buf, cn, ppos, skp->smk_known,
2669 struct smack_known *skp;
2683 skp = smk_import_entry(data, count);
2684 if (IS_ERR(skp))
2685 rc = PTR_ERR(skp);
2687 smack_syslog_label = skp;