Lines Matching defs:label
34 #include "include/label.h"
418 struct aa_label *label;
421 label = begin_current_label_crit_section();
426 error = aa_may_manage_policy(current_cred(), label, ns, mask);
433 error = aa_replace_profiles(ns, label, mask, data);
437 end_current_label_crit_section(label);
481 struct aa_label *label;
485 label = begin_current_label_crit_section();
489 error = aa_may_manage_policy(current_cred(), label, ns,
503 error = aa_remove_profiles(ns, label, data->data, size);
507 end_current_label_crit_section(label);
669 struct aa_label *label, *curr;
688 label = aa_label_parse(curr, query, GFP_KERNEL, false, false);
690 if (IS_ERR(label))
691 return PTR_ERR(label);
705 label_for_each_confined(i, label, profile) {
715 aa_put_label(label);
726 aa_put_label(label);
737 * query_label - queries a label and writes permissions to buf
748 * the name of the label, in the current namespace, that is to be queried and
749 * DFA_STRING is a binary string to match against the label(s)'s DFA.
760 struct aa_label *label, *curr;
784 label = aa_label_parse(curr, label_name, GFP_KERNEL, false, false);
786 if (IS_ERR(label))
787 return PTR_ERR(label);
791 label_for_each_in_ns(i, labels_ns(label), label, profile) {
795 label_for_each(i, label, profile) {
799 aa_put_label(label);
907 #define QUERY_CMD_LABEL "label\0"
924 * sequence. The only queries currently supported are label-based queries for
927 * For permissions queries, ubuf must begin with "label\0", followed by the
1073 struct aa_label *label = aa_get_label_rcu(&proxy->label);
1074 struct aa_profile *profile = labels_profile(label);
1076 aa_put_label(label);
1084 struct aa_label *label = aa_get_label_rcu(&proxy->label);
1085 struct aa_profile *profile = labels_profile(label);
1087 aa_put_label(label);
1095 struct aa_label *label = aa_get_label_rcu(&proxy->label);
1096 struct aa_profile *profile = labels_profile(label);
1103 aa_put_label(label);
1111 struct aa_label *label = aa_get_label_rcu(&proxy->label);
1112 struct aa_profile *profile = labels_profile(label);
1120 aa_put_label(label);
1152 struct aa_label *label;
1154 label = begin_current_label_crit_section();
1155 seq_printf(seq, "%s\n", label->size > 1 ? "yes" : "no");
1156 end_current_label_crit_section(label);
1163 struct aa_label *label;
1168 label = begin_current_label_crit_section();
1170 if (label->size > 1) {
1171 label_for_each(it, label, profile)
1172 if (profile->ns != labels_ns(label)) {
1179 end_current_label_crit_section(label);
1186 struct aa_label *label;
1188 label = begin_current_label_crit_section();
1189 seq_printf(seq, "%d\n", labels_ns(label)->level);
1190 end_current_label_crit_section(label);
1197 struct aa_label *label = begin_current_label_crit_section();
1198 seq_printf(seq, "%s\n", labels_ns(label)->base.name);
1199 end_current_label_crit_section(label);
1571 struct aa_proxy *proxy = aa_get_proxy(profile->label.proxy);
1630 struct aa_label *label;
1638 label = aa_get_label_rcu(&proxy->label);
1639 profile = labels_profile(label);
1642 aa_put_label(label);
1758 profile->label.proxy, NULL, NULL,
1762 aa_get_proxy(profile->label.proxy);
1766 profile->label.proxy, NULL, NULL,
1770 aa_get_proxy(profile->label.proxy);
1774 profile->label.proxy, NULL, NULL,
1778 aa_get_proxy(profile->label.proxy);
1805 struct aa_label *label;
1808 label = begin_current_label_crit_section();
1809 error = aa_may_manage_policy(current_cred(), label, NULL,
1811 end_current_label_crit_section(label);
1855 struct aa_label *label;
1858 label = begin_current_label_crit_section();
1859 error = aa_may_manage_policy(current_cred(), label, NULL,
1861 end_current_label_crit_section(label);
2278 aa_label_seq_xprint(f, root, &profile->label,
2385 AA_SFS_DIR("label", aa_sfs_entry_query_label),