]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
apparmor: add __aa_find_ns fn
authorJohn Johansen <john.johansen@canonical.com>
Thu, 22 Sep 2016 21:53:40 +0000 (14:53 -0700)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Feb 2017 03:57:58 +0000 (20:57 -0700)
BugLink: http://bugs.launchpad.net/bugs/1611078
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
security/apparmor/policy_ns.c

index cbef81674012eaa05710912a174dd3ad5cbe7058..88092b42543ba03ffd4a218eae0d955d8ccf9cc8 100644 (file)
@@ -162,6 +162,11 @@ static struct aa_ns *__aa_findn_ns(struct list_head *head, const char *name,
        return (struct aa_ns *)__policy_strn_find(head, name, n);
 }
 
+static struct aa_ns *__aa_find_ns(struct list_head *head, const char *name)
+{
+       return __aa_findn_ns(head, name, strlen(name));
+}
+
 /**
  * aa_find_ns  -  look up a profile namespace on the namespace list
  * @root: namespace to search in  (NOT NULL)