All of lore.kernel.org
 help / color / mirror / Atom feed
* + utsns-fix-config_uts_ns-behavior.patch added to -mm tree
@ 2007-03-25  8:54 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-03-25  8:54 UTC (permalink / raw)
  To: mm-commits; +Cc: serue, ebiederm


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@us.ibm.com>

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@us.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 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@us.ibm.com 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-25  8:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-25  8:54 + utsns-fix-config_uts_ns-behavior.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.