The patch titled utsns: fix !CONFIG_UTS_NS behavior has been added to the -mm tree. Its filename is utsns-fix-config_uts_ns-behavior.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" <serue@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: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/utsname.h | 2 ++ 1 file changed, 2 insertions(+) diff -puN include/linux/utsname.h~utsns-fix-config_uts_ns-behavior include/linux/utsname.h --- a/include/linux/utsname.h~utsns-fix-config_uts_ns-behavior +++ a/include/linux/utsname.h @@ -70,6 +70,8 @@ static inline int unshare_utsname(unsign static inline int copy_utsname(int flags, struct task_struct *tsk) { + if (flags & CLONE_NEWUTS) + return -EINVAL; return 0; } static inline void put_uts_ns(struct uts_namespace *ns) _ Patches currently in -mm which might be from serue@xxxxxxxxxx are utsns-fix-config_uts_ns-behavior.patch implement-file-posix-capabilities.patch file-capabilities-accomodate-future-64-bit-caps.patch merge-sys_clone-sys_unshare-nsproxy-and-namespace.patch attach_pid-with-struct-pid-parameter.patch statically-initialize-struct-pid-for-swapper.patch explicitly-set-pgid-and-sid-of-init-process.patch use-struct-pid-parameter-in-copy_process.patch use-task_pgrp-task_session-in-copy_process.patch kill-unused-sesssion-and-group-values-in-rocket-driver.patch fix-some-coding-style-errors-in-autofs.patch replace-pid_t-in-autofs-with-struct-pid-reference.patch dont-init-pgrp-and-__session-in-init_signals.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