提交 827b3f6a 编写于 作者: J Jeff Dike 提交者: Linus Torvalds

uml: make mconsole_stack namespace-aware

Also fixed the include syntax while I was there.
Signed-off-by: NJeff Dike <jdike@linux.intel.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f87ea91d
/* /*
* Copyright (C) 2001 Lennert Buytenhek (buytenh@gnu.org) * Copyright (C) 2001 Lennert Buytenhek (buytenh@gnu.org)
* Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Copyright (C) 2001 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Licensed under the GPL * Licensed under the GPL
*/ */
#include "linux/console.h" #include <linux/console.h>
#include "linux/ctype.h" #include <linux/ctype.h>
#include "linux/interrupt.h" #include <linux/interrupt.h>
#include "linux/list.h" #include <linux/list.h>
#include "linux/mm.h" #include <linux/mm.h>
#include "linux/module.h" #include <linux/module.h>
#include "linux/notifier.h" #include <linux/notifier.h>
#include "linux/reboot.h" #include <linux/reboot.h>
#include "linux/proc_fs.h" #include <linux/proc_fs.h>
#include "linux/slab.h" #include <linux/slab.h>
#include "linux/syscalls.h" #include <linux/syscalls.h>
#include "linux/utsname.h" #include <linux/utsname.h>
#include "linux/workqueue.h" #include <linux/workqueue.h>
#include "linux/mutex.h" #include <linux/mutex.h>
#include "asm/uaccess.h" #include <asm/uaccess.h>
#include "init.h" #include "init.h"
#include "irq_kern.h" #include "irq_kern.h"
#include "irq_user.h" #include "irq_user.h"
...@@ -765,7 +766,7 @@ void mconsole_stack(struct mc_request *req) ...@@ -765,7 +766,7 @@ void mconsole_stack(struct mc_request *req)
return; return;
} }
to = find_task_by_pid(pid_requested); to = find_task_by_pid_ns(pid_requested, &init_pid_ns);
if ((to == NULL) || (pid_requested == 0)) { if ((to == NULL) || (pid_requested == 0)) {
mconsole_reply(req, "Couldn't find that pid", 1, 0); mconsole_reply(req, "Couldn't find that pid", 1, 0);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册