OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/3] uidns: various patches
Re: [PATCH 2/3] user_ns: bugfix and cleanup [message #16955 is a reply to message #16827] Mon, 11 December 2006 21:40 Go to previous messageGo to previous message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
This patch needs the following fixup:

From: Serge E. Hallyn <serue@us.ibm.com>
Subject: [PATCH 1/1] userns: fix compile warning if !CONFIG_USER_NS

previous patch updated get_user_ns() to return a struct
user_namespace, but the empty default for !CONFIG_USER_NS
did not return anything.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
---
 include/linux/user_namespace.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h
index f9d76de..53ad920 100644
--- a/include/linux/user_namespace.h
+++ b/include/linux/user_namespace.h
@@ -39,6 +39,7 @@ #else
 
 static inline struct user_namespace *get_user_ns(struct user_namespace *ns)
 {
+	return NULL;
 }
 
 static inline int unshare_user_ns(unsigned long unshare_flags,
-- 
1.4.1

_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: + revert-identifier-to-nsproxy.patch added to -mm tree
Next Topic: Re: + revert-identifier-to-nsproxy.patch added to -mm tree
Goto Forum:
  


Current Time: Wed Sep 10 19:34:59 GMT 2025

Total time taken to generate the page: 0.07872 seconds