Lines Matching refs:skp
184 struct smack_known *skp = smk_of_current();
188 nap->secid = skp->smk_secid;
320 struct smack_known *skp;
334 skp = smk_find_entry(cp);
336 if (skp == NULL)
338 rule->smk_subject = skp;
343 skp = smk_find_entry(cp);
345 if (skp == NULL)
347 rule->smk_object = skp;
621 struct smack_known *skp =
624 list_for_each_entry_rcu(srp, &skp->smk_rules, list)
768 struct smack_known *skp =
770 struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat;
782 if (strlen(skp->smk_known) >= SMK_LABELLEN)
785 seq_printf(s, "%s %3d", skp->smk_known, skp->smk_netlabel.attr.mls.lvl);
833 struct smack_known *skp;
871 skp = smk_import_entry(rule, 0);
872 if (IS_ERR(skp)) {
873 rc = PTR_ERR(skp);
880 rule += strlen(skp->smk_known) + 1;
922 old_cat = skp->smk_netlabel.attr.mls.cat;
923 skp->smk_netlabel.attr.mls.cat = ncats.attr.mls.cat;
924 skp->smk_netlabel.attr.mls.lvl = ncats.attr.mls.lvl;
975 struct smack_known *skp =
977 struct netlbl_lsm_catmap *cmp = skp->smk_netlabel.attr.mls.cat;
981 seq_printf(s, "%s %3d", skp->smk_known, skp->smk_netlabel.attr.mls.lvl);
1058 struct smk_net4addr *skp =
1062 if (skp->smk_label != NULL)
1063 kp = skp->smk_label->smk_known;
1064 seq_printf(s, "%pI4/%d %s\n", &skp->smk_host.s_addr,
1065 skp->smk_masks, kp);
1149 struct smack_known *skp = NULL;
1207 skp = smk_import_entry(smack, 0);
1208 if (IS_ERR(skp)) {
1209 rc = PTR_ERR(skp);
1254 snp->smk_label = skp;
1269 snp->smk_label = skp;
1277 if (rc == 0 && skp != NULL)
1324 struct smk_net6addr *skp =
1327 if (skp->smk_label != NULL)
1328 seq_printf(s, "%pI6/%d %s\n", &skp->smk_host, skp->smk_masks,
1329 skp->smk_label->smk_known);
1412 struct smack_known *skp = NULL;
1476 skp = smk_import_entry(smack, 0);
1477 if (IS_ERR(skp)) {
1478 rc = PTR_ERR(skp);
1532 snp->smk_label = skp;
1536 snp->smk_label = skp;
1663 struct smack_known *skp;
1688 list_for_each_entry_rcu(skp, &smack_known_list, list)
1689 if (skp->smk_netlabel.attr.mls.lvl ==
1691 skp->smk_netlabel.attr.mls.lvl = i;
1741 struct smack_known *skp;
1766 list_for_each_entry_rcu(skp, &smack_known_list, list)
1767 if (skp->smk_netlabel.attr.mls.lvl ==
1769 skp->smk_netlabel.attr.mls.lvl = i;
1832 struct smack_known *skp;
1848 skp = smk_import_entry(data, count);
1849 if (IS_ERR(skp)) {
1850 rc = PTR_ERR(skp);
1857 smack_net_ambient = skp;
1959 struct smack_known *skp;
1966 skp = smk_import_entry(tok, 0);
1967 if (IS_ERR(skp))
1968 return PTR_ERR(skp);
1974 sklep->smk_label = skp;
2099 struct smack_known *skp;
2121 skp = smk_import_entry(data, count);
2122 if (PTR_ERR(skp) == -EINVAL)
2123 skp = NULL;
2124 else if (IS_ERR(skp)) {
2125 rc = PTR_ERR(skp);
2129 smack_unconfined = skp;
2359 struct smack_known *skp =
2362 list_for_each_entry_rcu(srp, &skp->smk_rules, list)
2521 struct smack_known *skp;
2546 skp = smk_find_entry(cp);
2547 if (skp == NULL)
2550 rule_list = &skp->smk_rules;
2551 rule_lock = &skp->smk_rules_lock;
2623 struct smack_known *skp;
2631 skp = &smack_known_star;
2633 skp = smack_syslog_label;
2635 asize = strlen(skp->smk_known) + 1;
2638 rc = simple_read_from_buffer(buf, cn, ppos, skp->smk_known,
2657 struct smack_known *skp;
2671 skp = smk_import_entry(data, count);
2672 if (IS_ERR(skp))
2673 rc = PTR_ERR(skp);
2675 smack_syslog_label = skp;