On Tue, 1 Jul 2025, Theodore Ts'o wrote:

On Mon, Jun 30, 2025 at 07:08:58PM +0100, Tim Woodall wrote:
Package: e2fsprogs
Version: 1.47.0-2
Severity: minor

Dear Maintainer,

Without using fuse at all:
# touch x
# setfacl -m u:root:rw x
# getfattr -m - -d x
# file: x
system.posix_acl_access=0sAgAAAAEABgD/////AgAGAAAAAAAEAAQA/////xAABgD/////IAAEAP////8=


When done via fuse2fs:
# which fuse2fs
/usr/bin/fuse2fs
# mkdir mnt
# fuse2fs img mnt
# touch mnt/x
# setfacl -m u:root:rw mnt/x
# getfattr -m - -d mnt/x
# file: mnt/x
system.posix_acl_access=0sAgAAAAEABgAAAAAAAgAGAAAAAAAEAAQAAAAAABAABgAAAAAAIAAEAAAAAAA=


Hmm, I can't replicate this on e2fsprogs 1.47.3~rc2-1.  I believe this
was fixed by this commit:

commit 0111bdb70a9c460052387111414a2e2dc8c06822
Author: Darrick J. Wong <djw...@kernel.org>
Date:   Thu Apr 24 14:41:49 2025 -0700

   fuse2fs: remove posix acl translation

   Remove the POSIX ACL format translation since libext2fs takes care of
   that now.


This is very strange.

I cannot reproduce it on a trixie machine
root@trixie17-build:/build# fuse2fs -V
fuse2fs 1.47.2 (1-Jan-2025)
FUSE library version 3.17.2
using FUSE kernel interface version 7.40
fusermount3 version: 3.17.2
root@trixie17-build:/build# apt-cache policy fuse2fs
fuse2fs:
  Installed: 1.47.2-3+b1

root@trixie17-build:~# uname -a
Linux trixie17-build.home.woodall.me.uk 6.12.27-amd64 #1 SMP PREEMPT_DYNAMIC 
Debian 6.12.27-1 (2025-05-06) x86_64 GNU/Linux

root@trixie17-build:~# setfacl -m u:root:rw mnt/x
root@trixie17-build:~# getfattr -m - -d mnt/x
# file: mnt/x
system.posix_acl_access=0sAgAAAAEABgD/////AgAGAAAAAAAEAAQA/////xAABgD/////IAAEAP////8=

But when I build the latest code from master on a bookworm machine I can:
root@dirac:/build/dump-sf/testing/scripts# /tmp/fuse2fs -V
fuse2fs 1.47.3-rc2 (12-Jun-2025)
FUSE library version 3.14.0
using FUSE kernel interface version 7.31
fusermount3 version: 3.14.0

root@dirac:/build/dump-sf/testing/scripts# uname -a
Linux dirac.home.woodall.me.uk 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 
6.1.140-1 (2025-05-22) x86_64 GNU/Linux

root@dirac:/build/dump-sf/testing/scripts# getfattr -m - -d mnt/x
# file: mnt/x
system.posix_acl_access=0sAgAAAAEABgAAAAAAAgAGAAAAAAAEAAQAAAAAABAABgAAAAAAIAAEAAAAAAA=


And I've just realized that the trixie version is in bookworm-backports. Installing that and I get the same:

root@dirac:/build/dump-sf/testing/scripts# apt-cache policy fuse2fs
fuse2fs:
  Installed: 1.47.2-3~bpo12+1

root@dirac:/build/dump-sf/testing/scripts# fuse2fs -V
fuse2fs 1.47.2 (1-Jan-2025)
FUSE library version 3.14.0
using FUSE kernel interface version 7.31
fusermount3 version: 3.14.0

root@dirac:/build/dump-sf/testing/scripts# getfattr -m - -d mnt/x
# file: mnt/x
system.posix_acl_access=0sAgAAAAEABgAAAAAAAgAGAAAAAAAEAAQAAAAAABAABgAAAAAAIAAEAAAAAAA=


So it seems that my change is only needed on older kernels.

Tim.

Reply via email to