[PATCH][Xenial SRU] UBUNTU: SAUCE: (namespace) userns: Export current_in_userns to modules

Seth Forshee seth.forshee at canonical.com
Wed Aug 31 17:07:00 UTC 2016


BugLink: http://bugs.launchpad.net/bugs/1617550

Building fuse as a module fails because this symbol is not
exported.

Signed-off-by: Seth Forshee <seth.forshee at canonical.com>
---
 kernel/user_namespace.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index 0628de2..23b4d6e 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -964,6 +964,7 @@ bool current_in_userns(const struct user_namespace *target_ns)
 	}
 	return false;
 }
+EXPORT_SYMBOL(current_in_userns);
 
 static inline struct user_namespace *to_user_ns(struct ns_common *ns)
 {
-- 
2.7.4





More information about the kernel-team mailing list