summaryrefslogtreecommitdiffstats
path: root/security/apparmor/include
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-01-16 00:42:29 -0800
committerJohn Johansen <john.johansen@canonical.com>2017-01-16 01:18:25 -0800
commit6e474e3063eae9767f219d83cf91d8360f63be0c (patch)
tree6931a7ccb797500f60ec9a6d7935b64b71806fdb /security/apparmor/include
parentefeee83a7060c225fac5ac794e9c11183c267f81 (diff)
downloadlinux-stable-6e474e3063eae9767f219d83cf91d8360f63be0c.tar.gz
linux-stable-6e474e3063eae9767f219d83cf91d8360f63be0c.tar.bz2
linux-stable-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/include')
-rw-r--r--security/apparmor/include/lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/include/lib.h b/security/apparmor/include/lib.h
index 4ff09ed813b5..b5c16d3a7a18 100644
--- a/security/apparmor/include/lib.h
+++ b/security/apparmor/include/lib.h
@@ -130,12 +130,12 @@ struct aa_policy {
};
/**
- * hname_tail - find the last component of an hname
+ * basename - find the last component of an hname
* @name: hname to find the base profile name component of (NOT NULL)
*
* Returns: the tail (base profile name) name component of an hname
*/
-static inline const char *hname_tail(const char *hname)
+static inline const char *basename(const char *hname)
{
char *split;