From: Pavel Emelyanov Date: Mon, 24 Mar 2008 19:29:53 +0000 (-0700) Subject: bsd_acct: using task_struct->tgid is not right in pid-namespaces X-Git-Tag: v2.6.25-rc7~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f7b703fe2be40db5a2bf136ac9e44cf5db267cc;p=pandora-kernel.git bsd_acct: using task_struct->tgid is not right in pid-namespaces In case we're accounting from a sub-namespace, the tgids reported will not refer to the right namespace. Save the pid_namespace we're accounting in on the acct_glbs and use it in do_acct_process. Two less :) places using the task_struct.tgid member. Signed-off-by: Pavel Emelyanov Cc: Oleg Nesterov Cc: "Paul E. McKenney" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed