Home
last modified time | relevance | path

Searched refs:labels_ns (Results 1 – 15 of 15) sorted by relevance

/Linux-v4.19/security/apparmor/
Dlabel.c86 &labels_ns(orig)->lock); in __aa_proxy_redirect()
360 aa_free_ns(labels_ns(label)); in label_free_switch()
379 struct aa_ns *ns = labels_ns(label); in aa_label_kref()
755 res = __label_remove(label, ns_unconfined(labels_ns(label))); in aa_label_remove()
774 if (name_is_shared(old, new) && labels_ns(old) == labels_ns(new)) { in aa_label_replace()
788 if (labels_ns(old) != labels_ns(new)) { in aa_label_replace()
1097 struct aa_ns *nsa = labels_ns(a); in labelset_of_merge()
1098 struct aa_ns *nsb = labels_ns(b); in labelset_of_merge()
1237 return aa_ns_visible(profile->ns, labels_ns(label), true); in label_is_visible()
1430 if (label->hname || labels_ns(label) != ns) in aa_update_label_name()
[all …]
Dtask.c69 if (unconfined(label) || (labels_ns(old) != labels_ns(label))) in aa_replace_current_label()
Dpolicy.c468 ns = aa_lookupn_ns(labels_ns(base), ns_name, ns_len); in aa_fqlookupn_profile()
472 ns = aa_get_ns(labels_ns(base)); in aa_fqlookupn_profile()
901 ns = aa_prepare_ns(policy_ns ? policy_ns : labels_ns(label), in aa_replace_profiles()
912 ns = aa_get_ns(policy_ns ? policy_ns : labels_ns(label)); in aa_replace_profiles()
1115 ns = aa_lookupn_ns(policy_ns ? policy_ns : labels_ns(subj), in aa_remove_profiles()
1124 ns = aa_get_ns(policy_ns ? policy_ns : labels_ns(subj)); in aa_remove_profiles()
Dipc.c63 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_ptrace_cb()
186 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_signal_cb()
Dprocattr.c39 struct aa_ns *ns = labels_ns(label); in aa_getprocattr()
Dnet.c103 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_net_cb()
Dresource.c42 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_cb()
Ddomain.c1073 label_for_each_in_ns(it, labels_ns(label), label, profile) { in change_hat()
1109 label_for_each_in_ns(it, labels_ns(label), label, profile) { in change_hat()
1120 label_for_each_in_ns(it, labels_ns(label), label, profile) { in change_hat()
Dlib.c281 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in aa_audit_perms_cb()
Dapparmorfs.c781 label_for_each_in_ns(i, labels_ns(label), label, profile) { in query_label()
1161 if (profile->ns != labels_ns(label)) { in seq_ns_nsstacked_show()
1178 seq_printf(seq, "%d\n", labels_ns(label)->level); in seq_ns_level_show()
1187 seq_printf(seq, "%s\n", labels_ns(label)->base.name); in seq_ns_name_show()
Dfile.c82 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in file_audit_cb()
Dlsm.c1068 slen = aa_label_asxprint(&name, labels_ns(label), peer, in apparmor_socket_getpeersec_stream()
/Linux-v4.19/security/apparmor/include/
Dcred.h170 ns = aa_get_ns(labels_ns(label)); in aa_get_current_ns()
Dlabel.h153 #define labels_ns(X) (vec_ns(&((X)->vec[0]), (X)->size)) macro
154 #define labels_set(X) (&labels_ns(X)->labels)
226 struct aa_ns *__ns = labels_ns(L); \
Dlib.h285 __fn_build_in_ns(labels_ns(L), (P), (NS_FN), (OTHER_FN))); \