diff options
author | John Johansen <john.johansen@canonical.com> | 2017-01-16 09:43:06 +0100 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-01-16 10:18:49 +0100 |
commit | aa9a39ad8f60cc73e1bd2f18f0693bba6be8b067 (patch) | |
tree | bc45548c142995e83d9bbe81147286e2216dac3d /security/apparmor/include | |
parent | apparmor: fix change_hat debug output (diff) | |
download | linux-aa9a39ad8f60cc73e1bd2f18f0693bba6be8b067.tar.xz linux-aa9a39ad8f60cc73e1bd2f18f0693bba6be8b067.zip |
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')
-rw-r--r-- | security/apparmor/include/domain.h | 4 |
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 */ |