summaryrefslogtreecommitdiffstats
path: root/security/apparmor/policy.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/policy.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/policy.c')
-rw-r--r--security/apparmor/policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c
index 7fde5785005d..3b23960b8a5d 100644
--- a/security/apparmor/policy.c
+++ b/security/apparmor/policy.c
@@ -617,7 +617,7 @@ bool aa_may_manage_policy(int op)
static struct aa_profile *__list_lookup_parent(struct list_head *lh,
struct aa_profile *profile)
{
- const char *base = hname_tail(profile->base.hname);
+ const char *base = basename(profile->base.hname);
long len = base - profile->base.hname;
struct aa_load_ent *ent;