]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
fuse2fs: delegate access control decisions to the kernel
authorDarrick J. Wong <djwong@kernel.org>
Thu, 24 Apr 2025 21:45:28 +0000 (14:45 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 May 2025 14:26:54 +0000 (10:26 -0400)
commitbc76e0f7fe1e919492c035c918cbc9182b776049
treedae049f642f3f36d61d04eb653155b7f0f67aa79
parent36f691d3cea9a8941f84a8065ba7b2e02380a14f
fuse2fs: delegate access control decisions to the kernel

In "kernel" mode (aka allow_others + default_permissions), the kernel
enforces all the access control for us.  Therefore, we don't need to do
any checking of our own.  Create a purpose-built helper to detect this
situation and turn off all the access controlling.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553065373.1161102.14873909355987419902.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c