[Devel] [PATCH RH7 10/32] userns: move EXPORT_SYMBOL closer to current_in_userns

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Mon Jun 8 20:05:40 MSK 2020


Looks like it was accidentally moved far away from where it has to be.
Moving it back helps to apply next patches cleaner.

https://jira.sw.ru/browse/PSBM-102357

Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 kernel/user_namespace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index 7445f1ead437..824e0cd0b7dd 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -1024,6 +1024,7 @@ bool current_in_userns(const struct user_namespace *target_ns)
 	}
 	return false;
 }
+EXPORT_SYMBOL(current_in_userns);
 
 static void *userns_get(struct task_struct *task)
 {
@@ -1077,7 +1078,6 @@ static unsigned int userns_inum(void *ns)
 	struct user_namespace *user_ns = ns;
 	return user_ns->proc_inum;
 }
-EXPORT_SYMBOL(current_in_userns);
 
 const struct proc_ns_operations userns_operations = {
 	.name		= "user",
-- 
2.24.1



More information about the Devel mailing list