From: John Johansen Date: Mon, 22 May 2017 09:47:22 +0000 (-0700) Subject: apparmor: make internal lib fn skipn_spaces available to the rest of apparmor X-Git-Tag: v4.14-rc2~6^2~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b91deb9db12851c18ccb55719f1cd55c2400aca1;p=platform%2Fkernel%2Flinux-rpi.git apparmor: make internal lib fn skipn_spaces available to the rest of apparmor Signed-off-by: John Johansen --- diff --git a/security/apparmor/include/lib.h b/security/apparmor/include/lib.h index 550a700..89524aa 100644 --- a/security/apparmor/include/lib.h +++ b/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); diff --git a/security/apparmor/lib.c b/security/apparmor/lib.c index 7cd788a..864b2fa 100644 --- a/security/apparmor/lib.c +++ b/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;