X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Facct.c;h=6cd7529c9e6a31a7702c77f38c45289f72d907b8;hb=c477ebd89db4f53b380b6ba70d25e055e0aa2739;hp=02e6167a53b0af6bcbc166cc810cae9ab04e54f7;hpb=cdbe8b5426e71d09882212073c27c9dcf25a71b6;p=karo-tx-linux.git diff --git a/kernel/acct.c b/kernel/acct.c index 02e6167a53b0..6cd7529c9e6a 100644 --- a/kernel/acct.c +++ b/kernel/acct.c @@ -507,8 +507,8 @@ static void do_acct_process(struct bsd_acct_struct *acct, do_div(elapsed, AHZ); ac.ac_btime = get_seconds() - elapsed; /* we really need to bite the bullet and change layout */ - ac.ac_uid = orig_cred->uid; - ac.ac_gid = orig_cred->gid; + ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid); + ac.ac_gid = from_kgid_munged(file->f_cred->user_ns, orig_cred->gid); #if ACCT_VERSION==2 ac.ac_ahz = AHZ; #endif