41 const char *ns_name =
NULL;
43 struct aa_namespace *current_ns = __aa_current_profile()->ns;
58 mode_len =
strlen(mode_str) + 3;
61 len = mode_len + ns_len +
name_len + 1;
75 sprintf(s,
"%s (%s)\n", profile->
base.hname, mode_str);
90 static char *split_token_from_name(
int op,
char *args,
u64 *
token)
95 if ((name == args) || *name !=
'^') {
118 const char *hats[16];
125 if (!hat && !token) {
126 AA_ERROR(
"change_hat: Invalid input, NULL hat and NULL magic");
138 for (count = 0; (hat <
end) && count < 16; ++
count) {
145 AA_DEBUG(
"%s: Magic 0x%llx Hat '%s'\n",
146 __func__, token, hat ? hat :
NULL);
161 char *
name, *ns_name;