Home
last modified time | relevance | path

Searched refs:hat (Results 1 – 4 of 4) sorted by relevance

/security/apparmor/
Dprocattr.c104 char *hat; in aa_setprocattr_changehat() local
109 hat = split_token_from_name(OP_CHANGE_HAT, args, &token); in aa_setprocattr_changehat()
110 if (IS_ERR(hat)) in aa_setprocattr_changehat()
111 return PTR_ERR(hat); in aa_setprocattr_changehat()
113 if (!hat && !token) { in aa_setprocattr_changehat()
118 if (hat) { in aa_setprocattr_changehat()
126 for (count = 0; (hat < end) && count < 16; ++count) { in aa_setprocattr_changehat()
127 char *next = hat + strlen(hat) + 1; in aa_setprocattr_changehat()
128 hats[count] = hat; in aa_setprocattr_changehat()
130 , __func__, current->pid, token, count, hat); in aa_setprocattr_changehat()
[all …]
Ddomain.c1009 struct aa_profile *root, *hat = NULL; in build_change_hat() local
1023 hat = aa_find_child(root, name); in build_change_hat()
1024 if (!hat) { in build_change_hat()
1027 hat = aa_new_null_profile(profile, true, name, in build_change_hat()
1029 if (!hat) { in build_change_hat()
1039 name, hat ? hat->base.hname : NULL, in build_change_hat()
1040 hat ? &hat->label : NULL, GLOBAL_ROOT_UID, info, in build_change_hat()
1042 if (!hat || (error && error != -ENOENT)) in build_change_hat()
1047 return &hat->label; in build_change_hat()
1057 struct aa_profile *profile, *root, *hat = NULL; in change_hat() local
[all …]
Dpolicy.c502 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat, in aa_new_null_profile() argument
540 if (hat) in aa_new_null_profile()
/security/apparmor/include/
Dpolicy.h180 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat,