This is a note to let you know that I've just added the patch titled
make sure that /linuxrc has std{in,out,err}
to the 3.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
make-sure-that-linuxrc-has-std-in-out-err.patch
and it can be found in the queue-3.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 43b16820249396aea7eb57c747106e211e54bed5 Mon Sep 17 00:00:00 2001
From: Al Viro <[email protected]>
Date: Sat, 19 Jan 2013 13:29:54 -0500
Subject: make sure that /linuxrc has std{in,out,err}
From: Al Viro <[email protected]>
commit 43b16820249396aea7eb57c747106e211e54bed5 upstream.
Signed-off-by: Al Viro <[email protected]>
Cc: Barry Davis <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
init/do_mounts_initrd.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
@@ -36,6 +36,10 @@ __setup("noinitrd", no_initrd);
static int init_linuxrc(struct subprocess_info *info, struct cred *new)
{
sys_unshare(CLONE_FS | CLONE_FILES);
+ /* stdin/stdout/stderr for /linuxrc */
+ sys_open("/dev/console", O_RDWR, 0);
+ sys_dup(0);
+ sys_dup(0);
/* move initrd over / and chdir/chroot in initrd root */
sys_chdir("/root");
sys_mount(".", "/", NULL, MS_MOVE, NULL);
Patches currently in stable-queue which might be from [email protected]
are
queue-3.7/make-sure-that-linuxrc-has-std-in-out-err.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html