]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: fix gid inheritance on sgid parent directories
authorDarrick J. Wong <djwong@kernel.org>
Sun, 6 Jul 2025 18:31:47 +0000 (11:31 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 31 Jul 2025 14:36:15 +0000 (10:36 -0400)
commit33880eea11b71ec6f7ef80c5f4911464d5de2edb
treeac7a06d870ca382b7c8f40f21d17e4b4db66c855
parente1d3faea4ed9875a438a54a6b89c1089d81098c2
fuse2fs: fix gid inheritance on sgid parent directories

When a child file is created inside a setgid parent directory, the child
is supposed to inherit the gid of the parent, not the fsgid of the
creating process.  Fix this error, which was discovered by generic/633,
generic/696, and generic/697.

Cc: linux-ext4@vger.kernel.org # v1.43
Fixes: 81cbf1ef4f5dab ("misc: add fuse2fs, a FUSE server for e2fsprogs")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/175182663041.1984706.582232688757289460.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c