The patch titled utsns: fix !CONFIG_UTS_NS behavior has been added to the -mm tree. Its filename is merge-sys_clone-sys_unshare-nsproxy-and-namespace-fix-2.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: utsns: fix !CONFIG_UTS_NS behavior From: "Serge E. Hallyn" <serge@xxxxxxxxxx> When CONFIG_UTS_NS=n, clone(CLONE_NEWUTS) quietly refuses. So correctly does not unshare a new uts namespace, but also does not return -EINVAL. Fix this to return -EINVAL so the caller knows his request was denied. Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx> Cc: Badari Pulavarty <pbadari@xxxxxxxxxx> Cc: Cedric Le Goater <clg@xxxxxxxxxx> Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/utsname.h | 3 +++ 1 file changed, 3 insertions(+) diff -puN include/linux/utsname.h~merge-sys_clone-sys_unshare-nsproxy-and-namespace-fix-2 include/linux/utsname.h --- a/include/linux/utsname.h~merge-sys_clone-sys_unshare-nsproxy-and-namespace-fix-2 +++ a/include/linux/utsname.h @@ -35,6 +35,7 @@ struct new_utsname { #include <linux/sched.h> #include <linux/kref.h> #include <linux/nsproxy.h> +#include <linux/err.h> #include <asm/atomic.h> struct uts_namespace { @@ -60,6 +61,8 @@ static inline void put_uts_ns(struct uts static inline struct uts_namespace *copy_utsname(int flags, struct uts_namespace *ns) { + if (flags & CLONE_NEWUTS) + return ERR_PTR(-EINVAL); return ns; } _ Patches currently in -mm which might be from serge@xxxxxxxxxx are merge-sys_clone-sys_unshare-nsproxy-and-namespace-fix-2.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html