apparmor: make internal lib fn skipn_spaces available to the rest of apparmor
authorJohn Johansen <john.johansen@canonical.com>
Mon, 22 May 2017 09:47:22 +0000 (02:47 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 8 Jun 2017 18:29:33 +0000 (11:29 -0700)
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/include/lib.h
security/apparmor/lib.c

index 550a700563b43ecb6546509bd976998e3e2ac578..89524aade6575e1405090148772b6c80ccb0e13c 100644 (file)
@@ -60,6 +60,7 @@
 extern int apparmor_initialized;
 
 /* fn's in lib */
+const char *skipn_spaces(const char *str, size_t n);
 char *aa_split_fqname(char *args, char **ns_name);
 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name,
                             size_t *ns_len);
index 7cd788a9445be4c033e5e7f099ca26de5c678858..864b2fa45852af596e8f73899283a1b2da8ccaf0 100644 (file)
@@ -69,7 +69,7 @@ char *aa_split_fqname(char *fqname, char **ns_name)
  * if all whitespace will return NULL
  */
 
-static const char *skipn_spaces(const char *str, size_t n)
+const char *skipn_spaces(const char *str, size_t n)
 {
        for (; n && isspace(*str); --n)
                ++str;