diff options
author | John Johansen <john.johansen@canonical.com> | 2017-01-16 00:42:29 -0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-01-16 01:18:25 -0800 |
commit | 6e474e3063eae9767f219d83cf91d8360f63be0c (patch) | |
tree | 6931a7ccb797500f60ec9a6d7935b64b71806fdb /security/apparmor/lib.c | |
parent | efeee83a7060c225fac5ac794e9c11183c267f81 (diff) | |
download | lwn-6e474e3063eae9767f219d83cf91d8360f63be0c.tar.gz lwn-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); |