Searched defs:hat (Results 1 - 3 of 3) sorted by relevance

/security/apparmor/
H A Dprocattr.c116 char *hat; local
121 hat = split_token_from_name(OP_CHANGE_HAT, args, &token);
122 if (IS_ERR(hat))
123 return PTR_ERR(hat);
125 if (!hat && !token) {
126 AA_ERROR("change_hat: Invalid input, NULL hat and NULL magic");
130 if (hat) {
131 /* set up hat name vector, args guaranteed null terminated
134 * If there are multiple hat names in the buffer each is
138 for (count = 0; (hat < en
[all...]
H A Ddomain.c595 * aa_change_hat - change hat to/from subprofile
596 * @hats: vector of hat names to try changing into (MAYBE NULL if @count == 0)
597 * @count: number of hat names in @hats
598 * @token: magic value to validate the hat change
612 struct aa_profile *profile, *previous_profile, *hat = NULL; local
640 /* attempting to change into a new hat or switch to a sibling */
647 /* find first matching hat */
648 for (i = 0; i < count && !hat; i++)
650 hat = aa_find_child(root, hats[i]);
651 if (!hat) {
[all...]
H A Dpolicy.c677 * @hat: true if the null- learning profile is a hat
688 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, int hat) argument
707 if (hat)

Completed in 69 milliseconds