mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
userns: Fix posix_acl_file_xattr_userns gid conversion
The code needs to be from_kgid(make_kgid(...)...) not from_kuid(make_kgid(...)...). Doh! Change-Id: Ib3e4a257e76ba85e92bb4fe272c6af7c4dc60b5b Reported-by: Jan Kara <jack@suse.cz> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
bbd891e70c
commit
dbb94d545d
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ static void posix_acl_fix_xattr_userns(
|
||||||
break;
|
break;
|
||||||
case ACL_GROUP:
|
case ACL_GROUP:
|
||||||
gid = make_kgid(from, le32_to_cpu(entry->e_id));
|
gid = make_kgid(from, le32_to_cpu(entry->e_id));
|
||||||
entry->e_id = cpu_to_le32(from_kuid(to, uid));
|
entry->e_id = cpu_to_le32(from_kgid(to, gid));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue