diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-03-24 12:29:53 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-24 19:22:20 -0700 |
commit | 5f7b703fe2be40db5a2bf136ac9e44cf5db267cc (patch) | |
tree | aa7da3bcd7a1e50cf2be75f633ce19ae3bf0ae9c /security/security.c | |
parent | a846a1954b6397e844fe1e258af7598897ec6159 (diff) |
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 'security/security.c')
0 files changed, 0 insertions, 0 deletions