lkml.org 
[lkml]   [2016]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] userns: Allow init_user_ns to be used from non-gpl modules
Date
This patch changes the export attributes of the init_user_ns from
GPL-only to any modules. This needed so that non-gpl modules, such as
ZFS, utilize functions like i_(uid|gid)_(read|write).

Signed-off-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
---
kernel/user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/user.c b/kernel/user.c
index b069ccbfb0b0..8bbd4e628b6e 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -60,7 +60,7 @@ struct user_namespace init_user_ns = {
__RWSEM_INITIALIZER(init_user_ns.persistent_keyring_register_sem),
#endif
};
-EXPORT_SYMBOL_GPL(init_user_ns);
+EXPORT_SYMBOL(init_user_ns);

/*
* UID task count cache, to get fast user lookup in "alloc_uid"
--
2.7.4
\
 
 \ /
  Last update: 2016-05-23 14:21    [W:0.041 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site