The patch titled bsdacct: fix uid/gid misreporting has been added to the -mm tree. Its filename is bsdacct-fix-uid-gid-misreporting.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: bsdacct: fix uid/gid misreporting From: Alexey Dobriyan <adobriyan@xxxxxxxxx> commit d8e180dcd5bbbab9cd3ff2e779efcf70692ef541 "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@xxxxxxxxx> Reported-by: Juho K. Juopperi <jkj@xxxxxxxx> Acked-by: Serge Hallyn <serue@xxxxxxxxxx> Acked-by: David Howells <dhowells@xxxxxxxxxx> Reviewed-by: Michal Schmidt <mschmidt@xxxxxxxxxx> Cc: James Morris <jmorris@xxxxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/acct.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/acct.c~bsdacct-fix-uid-gid-misreporting kernel/acct.c --- a/kernel/acct.c~bsdacct-fix-uid-gid-misreporting +++ a/kernel/acct.c @@ -536,7 +536,8 @@ static void do_acct_process(struct bsd_a do_div(elapsed, AHZ); ac.ac_btime = get_seconds() - elapsed; /* we really need to bite the bullet and change layout */ - current_uid_gid(&ac.ac_uid, &ac.ac_gid); + ac.ac_uid = orig_cred->uid; + ac.ac_gid = orig_cred->gid; #if ACCT_VERSION==2 ac.ac_ahz = AHZ; #endif _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are bsdacct-fix-uid-gid-misreporting.patch linux-next.patch thinkpad_acpi-convert-to-seq_file.patch asus_acpi-convert-to-seq_file.patch toshiba_acpi-convert-to-seq_file.patch arm-convert-proc-cpu-aligment-to-seq_file.patch arm-convert-proc-cpu-aligment-to-seq_file-fix.patch iseries-convert-to-proc_fops.patch via-pmu-convert-to-proc_fops-seq_file.patch proc_fops-convert-av7110.patch proc_fops-convert-cpia.patch proc_fops-convert-drivers-isdn-to-seq_file.patch proc_fops-convert-drivers-isdn-to-seq_file-fix.patch parisc-convert-proc-pdc-lcdled-to-seq_file.patch mpt-fusion-convert-to-seq_file.patch sysctl_max_map_count-should-be-non-negative.patch alpha-convert-srm-code-to-seq_file.patch const-constify-remaining-dev_pm_ops.patch uml-convert-to-seq_file-proc_fops.patch uml-irq-register-race-condition.patch make-debug_bugverbose-default-to-y.patch proc-rename-de_get-to-pde_get-and-inline-it.patch clps711xfb-convert-to-proc_fops.patch pnpbios-convert-to-seq_file.patch const-constify-remaining-pipe_buf_operations.patch ufs-pass-qstr-instead-of-dentry-where-necessary-for-nfs.patch ufs-nfs-support.patch reiserfs-remove-proc-fs-reiserfs-version.patch reiserfs-dont-compile-procfso-at-all-if-no-support.patch proc-remove-docbook-and-example.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html