summaryrefslogtreecommitdiffstats
path: root/security/apparmor/lib.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-01-16 09:42:29 +0100
committerJohn Johansen <john.johansen@canonical.com>2017-01-16 10:18:25 +0100
commit6e474e3063eae9767f219d83cf91d8360f63be0c (patch)
tree6931a7ccb797500f60ec9a6d7935b64b71806fdb /security/apparmor/lib.c
parentapparmor: rename mediated_filesystem() to path_mediated_fs() (diff)
downloadlinux-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.c2
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);