]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
bsd_acct: using task_struct->tgid is not right in pid-namespaces
authorPavel Emelyanov <xemul@openvz.org>
Mon, 24 Mar 2008 19:29:53 +0000 (12:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 Mar 2008 02:22:20 +0000 (19:22 -0700)
commit5f7b703fe2be40db5a2bf136ac9e44cf5db267cc
treeaa7da3bcd7a1e50cf2be75f633ce19ae3bf0ae9c
parenta846a1954b6397e844fe1e258af7598897ec6159
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 <xemul@openvz.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/acct.c