Package: attr
Version: 1:2.5.1-4
Severity: normal

Dear Maintainer,

I would like to inspect the value of the system.posix_acl_access xattr.
However, no matter which parameter I pass, I always get a forced prefix:
-- >8 --
# strace attr -g system.posix_acl_access install 2>&1 | grep xattr
lgetxattr("install", "user.system.posix_acl_access", 0x56c02c00, 65536) = -1 
EOPNOTSUPP (Operation not supported)
lgetxattr("install", "user.system.posix_acl_access", 0x56c02c00, 65536) = -1 
EOPNOTSUPP (Operation not supported)
# strace attr -Sg system.posix_acl_access install 2>&1 | grep xattr
lgetxattr("install", "security.system.posix_acl_access", 0x574f8c00, 65536) = 
-1 ENODATA (No data available)
lgetxattr("install", "security.system.posix_acl_access", 0x574f8c00, 65536) = 
-1 ENODATA (No data available)
# strace attr -Rg system.posix_acl_access install 2>&1 | grep xattr
lgetxattr("install", "trusted.system.posix_acl_access", 0x5832ac00, 65536) = -1 
ENODATA (No data available)
lgetxattr("install", "xfsroot.system.posix_acl_access", 0x5832ac00, 65536) = -1 
EOPNOTSUPP (Operation not supported)
-- >8 --

Whereas attr(1) says:
-- >8 --
       When the -R option is given and the process has appropriate privileges, 
operate in the root attribute namespace rather that the USER attribute 
namespace.

       The -S option is similar, except it specifies use of the security 
attribute namespace.
-- >8 --

Which appears to be wrong, since -R makes attr
"operate in the 'trusted' and 'xfsroot'" namespaces,
not the root one.

Best,
наб

-- System Information:
Debian Release: 12.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: amd64, i386

Kernel: Linux 6.1.0-2-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages attr depends on:
ii  libattr1  1:2.5.1-4
ii  libc6     2.36-9

attr recommends no packages.

attr suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to