diff mbox

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

Message ID 1472663220-117532-1-git-send-email-seth.forshee@canonical.com
State New
Headers show

Commit Message

Seth Forshee Aug. 31, 2016, 5:07 p.m. UTC
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@canonical.com>
---
 kernel/user_namespace.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tim Gardner Aug. 31, 2016, 5:14 p.m. UTC | #1
Is this needed for the Yakkety 4.8 kernel ?
Seth Forshee Aug. 31, 2016, 6:01 p.m. UTC | #2
On Wed, Aug 31, 2016 at 11:14:36AM -0600, Tim Gardner wrote:
> Is this needed for the Yakkety 4.8 kernel ?

No, yakkety has the upstream patches which already include it.
Brad Figg Sept. 1, 2016, 1:33 a.m. UTC | #3

Tim Gardner Sept. 1, 2016, 12:50 p.m. UTC | #4

diff mbox

Patch

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)
 {