Lines Matching defs:label
19 * aa_get_task_label - Get another task's label
22 * Returns: counted reference to @task's label
36 * aa_replace_current_label - replace the current tasks label
37 * @label: new label (NOT NULL)
41 int aa_replace_current_label(struct aa_label *label)
47 AA_BUG(!label);
49 if (old == label)
65 if (unconfined(label) || (labels_ns(old) != labels_ns(label)))
67 * if switching to unconfined or a different label namespace
73 * be careful switching cred label, when racing replacement it
74 * is possible that the cred labels's->proxy->label is the reference
75 * keeping @label valid, so make sure to get its reference before
76 * dropping the reference on the cred's label
78 aa_get_label(label);
80 set_cred_label(new, label);
89 * @label: system label to set at exec (MAYBE NULL to clear value)
93 int aa_set_current_onexec(struct aa_label *label, bool stack)
97 aa_get_label(label);
99 ctx->onexec = label;
107 * @label: label to set as the current hat (NOT NULL)
115 int aa_set_current_hat(struct aa_label *label, u64 token)
123 AA_BUG(!label);
137 set_cred_label(new, aa_get_newest_label(label));
147 * aa_restore_previous_label - exit from hat context restoring previous label
150 * Attempt to return out of a hat to the previous label. The token
162 /* ignore restores when there is no saved label */