You are not logged in.

#1 2024-07-14 18:37:48

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Confusion about ACL support in ext4 in an Arch container

I have an Arch Linux lxc running on an OpenWrt host.  I noticed some warnings when pacman extracted some files that expect ACL support:

# pacman -S shadow
warning: shadow-4.16.0-1 is up to date -- reinstalling
...
:: Processing package changes...
(1/1) reinstalling shadow                                                    [############################################] 100%
warning: warning given when extracting /usr/bin/newgidmap (Cannot restore extended attributes on this file system.)
warning: warning given when extracting /usr/bin/newuidmap (Cannot restore extended attributes on this file system.)
...

When I compiled OpenWrt, I have ACLs for ext4 partitions compiled in.  This the the partition on which the Arch lxc sits:

# grep acl /proc/fs/ext4/nvme0n1p4/options
acl

The OpenWrt kernel also has ACL support compiled in:

# zgrep -i acl /proc/config.gz
# CONFIG_XILINX_EMACLITE is not set
CONFIG_EXT4_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_POSIX_ACL is not set
# CONFIG_F2FS_FS_POSIX_ACL is not set
CONFIG_FS_POSIX_ACL=y
# CONFIG_TMPFS_POSIX_ACL is not set

I did create the ext4 filesystem before I realized that I needed to implicitly build ext4 support with ACL.  Could that be why I am seeing the warnings?  In other words, when I formatted the ext4 partition in question, I did not have ACL support at that time.

Last edited by graysky (2024-07-14 18:41:11)

Offline

Board footer

Powered by FluxBB