]> git.baikalelectronics.ru Git - kernel.git/commit
bsdacct: fix uid/gid misreporting
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 15 Dec 2009 01:57:34 +0000 (17:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:10 +0000 (08:53 -0800)
commit48455dffe7bd9db3b8434cfe1934f0b706cab063
tree4c0c5c744383a4f426be6b9a8fb73528379eabdd
parent641d0c0e2c1e5593db82c08a9c7607a13b71f2e9
bsdacct: fix uid/gid misreporting

commit ed8c8209f8c80c7bd27a96f3395f23398534866f "bsdacct: switch
credentials for writing to the accounting file" introduced credential
switching during final acct data collecting.  However, uid/gid pair
continued to be collected from current which became credentials of who
created acct file, not who exits.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=14676

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reported-by: Juho K. Juopperi <jkj@kapsi.fi>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
Reviewed-by: Michal Schmidt <mschmidt@redhat.com>
Cc: James Morris <jmorris@namei.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/acct.c