Przeglądaj źródła

apparmor: make internal lib fn skipn_spaces available to the rest of apparmor

Signed-off-by: John Johansen <john.johansen@canonical.com>
John Johansen 8 lat temu
rodzic
commit
b91deb9db1
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      security/apparmor/include/lib.h
  2. 1 1
      security/apparmor/lib.c

+ 1 - 0
security/apparmor/include/lib.h

@@ -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);

+ 1 - 1
security/apparmor/lib.c

@@ -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;