Lines Matching refs:label
418 struct aa_label *label; in policy_update() local
421 label = begin_current_label_crit_section(); in policy_update()
426 error = aa_may_manage_policy(current_cred(), label, ns, mask); in policy_update()
433 error = aa_replace_profiles(ns, label, mask, data); in policy_update()
437 end_current_label_crit_section(label); in policy_update()
481 struct aa_label *label; in profile_remove() local
485 label = begin_current_label_crit_section(); in profile_remove()
489 error = aa_may_manage_policy(current_cred(), label, ns, in profile_remove()
503 error = aa_remove_profiles(ns, label, data->data, size); in profile_remove()
507 end_current_label_crit_section(label); in profile_remove()
615 struct aa_ruleset *rules = profile->label.rules[0]; in profile_query_cb()
677 struct aa_label *label, *curr; in query_data() local
696 label = aa_label_parse(curr, query, GFP_KERNEL, false, false); in query_data()
698 if (IS_ERR(label)) in query_data()
699 return PTR_ERR(label); in query_data()
713 label_for_each_confined(i, label, profile) { in query_data()
723 aa_put_label(label); in query_data()
734 aa_put_label(label); in query_data()
768 struct aa_label *label, *curr; in query_label() local
792 label = aa_label_parse(curr, label_name, GFP_KERNEL, false, false); in query_label()
794 if (IS_ERR(label)) in query_label()
795 return PTR_ERR(label); in query_label()
799 label_for_each_in_ns(i, labels_ns(label), label, profile) { in query_label()
803 label_for_each(i, label, profile) { in query_label()
807 aa_put_label(label); in query_label()
1081 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_name_show() local
1082 struct aa_profile *profile = labels_profile(label); in seq_profile_name_show()
1084 aa_put_label(label); in seq_profile_name_show()
1092 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_mode_show() local
1093 struct aa_profile *profile = labels_profile(label); in seq_profile_mode_show()
1095 aa_put_label(label); in seq_profile_mode_show()
1103 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_attach_show() local
1104 struct aa_profile *profile = labels_profile(label); in seq_profile_attach_show()
1111 aa_put_label(label); in seq_profile_attach_show()
1119 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_hash_show() local
1120 struct aa_profile *profile = labels_profile(label); in seq_profile_hash_show()
1128 aa_put_label(label); in seq_profile_hash_show()
1160 struct aa_label *label; in seq_ns_stacked_show() local
1162 label = begin_current_label_crit_section(); in seq_ns_stacked_show()
1163 seq_printf(seq, "%s\n", str_yes_no(label->size > 1)); in seq_ns_stacked_show()
1164 end_current_label_crit_section(label); in seq_ns_stacked_show()
1171 struct aa_label *label; in seq_ns_nsstacked_show() local
1176 label = begin_current_label_crit_section(); in seq_ns_nsstacked_show()
1178 if (label->size > 1) { in seq_ns_nsstacked_show()
1179 label_for_each(it, label, profile) in seq_ns_nsstacked_show()
1180 if (profile->ns != labels_ns(label)) { in seq_ns_nsstacked_show()
1187 end_current_label_crit_section(label); in seq_ns_nsstacked_show()
1194 struct aa_label *label; in seq_ns_level_show() local
1196 label = begin_current_label_crit_section(); in seq_ns_level_show()
1197 seq_printf(seq, "%d\n", labels_ns(label)->level); in seq_ns_level_show()
1198 end_current_label_crit_section(label); in seq_ns_level_show()
1205 struct aa_label *label = begin_current_label_crit_section(); in seq_ns_name_show() local
1206 seq_printf(seq, "%s\n", labels_ns(label)->base.name); in seq_ns_name_show()
1207 end_current_label_crit_section(label); in seq_ns_name_show()
1578 struct aa_proxy *proxy = aa_get_proxy(profile->label.proxy); in create_profile_file()
1632 struct aa_label *label; in rawdata_get_link_base() local
1640 label = aa_get_label_rcu(&proxy->label); in rawdata_get_link_base()
1641 profile = labels_profile(label); in rawdata_get_link_base()
1644 aa_put_label(label); in rawdata_get_link_base()
1764 profile->label.proxy, NULL, NULL, in __aafs_profile_mkdir()
1768 aa_get_proxy(profile->label.proxy); in __aafs_profile_mkdir()
1772 profile->label.proxy, NULL, NULL, in __aafs_profile_mkdir()
1776 aa_get_proxy(profile->label.proxy); in __aafs_profile_mkdir()
1780 profile->label.proxy, NULL, NULL, in __aafs_profile_mkdir()
1784 aa_get_proxy(profile->label.proxy); in __aafs_profile_mkdir()
1811 struct aa_label *label; in ns_mkdir_op() local
1814 label = begin_current_label_crit_section(); in ns_mkdir_op()
1815 error = aa_may_manage_policy(current_cred(), label, NULL, in ns_mkdir_op()
1817 end_current_label_crit_section(label); in ns_mkdir_op()
1861 struct aa_label *label; in ns_rmdir_op() local
1864 label = begin_current_label_crit_section(); in ns_rmdir_op()
1865 error = aa_may_manage_policy(current_cred(), label, NULL, in ns_rmdir_op()
1867 end_current_label_crit_section(label); in ns_rmdir_op()
2284 aa_label_seq_xprint(f, root, &profile->label, in seq_show_profile()