lkml.org 
[lkml]   [2008]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] cgroup_clone: use pid of newly created task for new cgroup
Quoting Serge E. Hallyn (serue@us.ibm.com):
> cgroup_clone creates a new cgroup with the pid of the task. This works
> correctly for unshare, but for clone cgroup_clone is called from
> copy_namespaces inside copy_process, which happens before the new pid
> is created. As a result, the new cgroup was created with current's pid.
> This patch:

"I swear it worked yesterday..." but in any case this fix is needed on
top of the cgroup_clone patch

-serge

From 8819a1f0e4e5ae9950b8310144b3fda2c30cab08 Mon Sep 17 00:00:00 2001
From: Serge Hallyn <serge@us.ibm.com>
Date: Thu, 12 Jun 2008 15:33:38 -0500
Subject: [PATCH] ns_cgroup: include proc_fs.h

Need proc_fs.h included to slurp the PROC_NUMBUF #define.

Signed-off-by: Serge Hallyn <serge@us.ibm.com>
---
kernel/ns_cgroup.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/ns_cgroup.c b/kernel/ns_cgroup.c
index 6431fb7..d6895d0 100644
--- a/kernel/ns_cgroup.c
+++ b/kernel/ns_cgroup.c
@@ -9,6 +9,7 @@
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/nsproxy.h>
+#include <linux/proc_fs.h>

struct ns_cgroup {
struct cgroup_subsys_state css;
--
1.5.4.3


\
 
 \ /
  Last update: 2008-06-12 22:39    [from the cache]
©2003-2011 Jasper Spaans