Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea1fd777 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

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: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 1bbb3095
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ static void posix_acl_fix_xattr_userns(
			break;
		case ACL_GROUP:
			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;
		default:
			break;