Skip to contentSkip to conversation

fuse: port to vfs{g,u}id_t and associated helpers

PATCH Applied Christian Brauner 2 participants 2 messages Sep 9, 2022 – Oct 12, 2022

Subsystems (2)
lore
Share & tools
lore

Christian Brauner

author maintainer
#0 lore raw

PATCH 1/1 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 1e5267cd0895 ("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]>
Cc Miklos Szeredi <[email protected]>
---
 fs/fuse/acl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/acl.c +1 -1
index 337cb29a8dd5..84c1ca4bc1dc 100644
@@ -98,7 +98,7 @@ int fuse_set_acl(struct user_namespace *mnt_userns, struct inode *inode,
 			return ret;
 		}
 
-		if (!in_group_p(i_gid_into_mnt(&init_user_ns, inode)) &&
+		if (!vfsgid_in_group_p(i_gid_into_vfsgid(&init_user_ns, inode)) &&
 		    !capable_wrt_inode_uidgid(&init_user_ns, inode, CAP_FSETID))
 			extra_flags |= FUSE_SETXATTR_ACL_KILL_SGID;
 

base-commit: 7e18e42e4b280c85b76967a9106a13ca61c16179

Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 7 lines · Christian Brauner

A while ago we introduced a dedicated vfs{g,u}id_t type in commit 1e5267cd0895 ("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.

Quoted 5 lines
Cc Seth Forshee (Digital Ocean) <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Miklos Szeredi <[email protected]>

Applied, thanks.

Miklos