mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +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! Reported-by: Jan Kara <jack@suse.cz> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
1bbb3095a5
commit
ea1fd7776e
|
@ -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