Lines Matching full:label
24 * aa_get_task_label - Get another task's label
27 * Returns: counted reference to @task's label
41 * aa_replace_current_label - replace the current tasks label
42 * @label: new label (NOT NULL)
46 int aa_replace_current_label(struct aa_label *label) in aa_replace_current_label() argument
52 AA_BUG(!label); in aa_replace_current_label()
54 if (old == label) in aa_replace_current_label()
70 if (unconfined(label) || (labels_ns(old) != labels_ns(label))) in aa_replace_current_label()
72 * if switching to unconfined or a different label namespace in aa_replace_current_label()
78 * be careful switching cred label, when racing replacement it in aa_replace_current_label()
79 * is possible that the cred labels's->proxy->label is the reference in aa_replace_current_label()
80 * keeping @label valid, so make sure to get its reference before in aa_replace_current_label()
81 * dropping the reference on the cred's label in aa_replace_current_label()
83 aa_get_label(label); in aa_replace_current_label()
85 set_cred_label(new, label); in aa_replace_current_label()
94 * @label: system label to set at exec (MAYBE NULL to clear value)
98 int aa_set_current_onexec(struct aa_label *label, bool stack) in aa_set_current_onexec() argument
102 aa_get_label(label); in aa_set_current_onexec()
104 ctx->onexec = label; in aa_set_current_onexec()
112 * @label: label to set as the current hat (NOT NULL)
120 int aa_set_current_hat(struct aa_label *label, u64 token) in aa_set_current_hat() argument
128 AA_BUG(!label); in aa_set_current_hat()
142 set_cred_label(new, aa_get_newest_label(label)); in aa_set_current_hat()
152 * aa_restore_previous_label - exit from hat context restoring previous label
155 * Attempt to return out of a hat to the previous label. The token
167 /* ignore restores when there is no saved label */ in aa_restore_previous_label()
222 aa_label_xaudit(ab, labels_ns(aad(sa)->label), aad(sa)->peer, in audit_ptrace_cb()
263 if (&tracer->label == tracee) in profile_tracer_perm()
266 aad(sa)->label = &tracer->label; in profile_tracer_perm()
269 aad(sa)->error = aa_capable(&tracer->label, CAP_SYS_PTRACE, in profile_tracer_perm()
277 * @tracer: label of the task doing the tracing (NOT NULL)
278 * @tracee: task label to be traced