diff options
author | John Johansen <john.johansen@canonical.com> | 2017-01-16 09:42:29 +0100 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-01-16 10:18:25 +0100 |
commit | 6e474e3063eae9767f219d83cf91d8360f63be0c (patch) | |
tree | 6931a7ccb797500f60ec9a6d7935b64b71806fdb /security/apparmor/lib.c | |
parent | apparmor: rename mediated_filesystem() to path_mediated_fs() (diff) | |
download | linux-6e474e3063eae9767f219d83cf91d8360f63be0c.tar.xz linux-6e474e3063eae9767f219d83cf91d8360f63be0c.zip |
apparmor: rename hname_tail to basename
Rename to the shorter and more familiar shell cmd name
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/lib.c')
-rw-r--r-- | security/apparmor/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/lib.c b/security/apparmor/lib.c index fec78eecce0d..02203889c3c8 100644 --- a/security/apparmor/lib.c +++ b/security/apparmor/lib.c @@ -184,7 +184,7 @@ bool aa_policy_init(struct aa_policy *policy, const char *prefix, if (!policy->hname) return 0; /* base.name is a substring of fqname */ - policy->name = (char *)hname_tail(policy->hname); + policy->name = (char *)basename(policy->hname); INIT_LIST_HEAD(&policy->list); INIT_LIST_HEAD(&policy->profiles); |