summaryrefslogtreecommitdiff
path: root/security/apparmor/include/domain.h
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-01-16 00:43:06 -0800
committerJohn Johansen <john.johansen@canonical.com>2017-01-16 01:18:49 -0800
commitaa9a39ad8f60cc73e1bd2f18f0693bba6be8b067 (patch)
treebc45548c142995e83d9bbe81147286e2216dac3d /security/apparmor/include/domain.h
parentc3e1e584ad3853b3f13ea4bd0aabd43e6c9b9fda (diff)
apparmor: convert change_profile to use fqname later to give better control
Moving the use of fqname to later allows learning profiles to be based on the fqname request instead of just the hname. It also allows cleaning up some of the name parsing and lookup by allowing the use of the fqlookupn_profile() lib fn. Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include/domain.h')
-rw-r--r--security/apparmor/include/domain.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/include/domain.h b/security/apparmor/include/domain.h
index de04464f0a3f..30544729878a 100644
--- a/security/apparmor/include/domain.h
+++ b/security/apparmor/include/domain.h
@@ -30,7 +30,7 @@ void apparmor_bprm_committed_creds(struct linux_binprm *bprm);
void aa_free_domain_entries(struct aa_domain *domain);
int aa_change_hat(const char *hats[], int count, u64 token, bool permtest);
-int aa_change_profile(const char *ns_name, const char *name, bool onexec,
- bool permtest);
+int aa_change_profile(const char *fqname, bool onexec, bool permtest,
+ bool stack);
#endif /* __AA_DOMAIN_H */