Skip to content

Commit 00d369b

Browse files
braunerMiklos Szeredi
authored andcommitted
fuse: port to vfs{g,u}id_t and associated helpers
A while ago we introduced a dedicated vfs{g,u}id_t type in commit 1e5267c ("mnt_idmapping: add vfs{g,u}id_t"). We already switched over a good part of the VFS. Ultimately we will remove all legacy idmapped mount helpers that operate only on k{g,u}id_t in favor of the new type safe helpers that operate on vfs{g,u}id_t. Cc: Seth Forshee (Digital Ocean) <[email protected]> Cc: Christoph Hellwig <[email protected]> Signed-off-by: Christian Brauner (Microsoft) <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 0618021 commit 00d369b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fuse/acl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ int fuse_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
9898
return ret;
9999
}
100100

101-
if (!in_group_p(i_gid_into_mnt(&init_user_ns, inode)) &&
101+
if (!vfsgid_in_group_p(i_gid_into_vfsgid(&init_user_ns, inode)) &&
102102
!capable_wrt_inode_uidgid(&init_user_ns, inode, CAP_FSETID))
103103
extra_flags |= FUSE_SETXATTR_ACL_KILL_SGID;
104104

0 commit comments

Comments
 (0)