]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: fix normal (non-kernel) permissions checking
authorTheodore Ts'o <tytso@mit.edu>
Wed, 2 Jul 2025 02:58:39 +0000 (22:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 2 Jul 2025 03:07:15 +0000 (23:07 -0400)
commitde86c43faae725799d143cf763eb03500cdbf46c
tree62e54242988f9c1987dce27071c950c8f5bf1683
parent8723d412906db78db30afcf142c1ea4c932de781
fuse2fs: fix normal (non-kernel) permissions checking

Commit 9f69dfc4e275 ("fuse2fs: implement O_APPEND correctly") defined
a new flag, A_OK, to add support for testing whether the file is valid
for append operations.  This is relevant for the check_iflags_access()
function, but when are later testing operations mask against the inode
permissions, this new flag gets in the way and causes non-root users
attempting to create new inodes in a directory to fail.  Fix this by
masking off A_OK before doing these tests.

Fixes: 9f69dfc4e275 ("fuse2fs: implement O_APPEND correctly")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c