diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-03-24 20:29:53 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-25 03:22:20 +0100 |
commit | 5f7b703fe2be40db5a2bf136ac9e44cf5db267cc (patch) | |
tree | aa7da3bcd7a1e50cf2be75f633ce19ae3bf0ae9c /kernel/printk.c | |
parent | bsd_acct: plain current->real_parent access is not always safe (diff) | |
download | linux-5f7b703fe2be40db5a2bf136ac9e44cf5db267cc.tar.xz linux-5f7b703fe2be40db5a2bf136ac9e44cf5db267cc.zip |
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>
Diffstat (limited to 'kernel/printk.c')
0 files changed, 0 insertions, 0 deletions