mss Posted May 21, 2016 Posted May 21, 2016 I try to use acl but I failed to remount file system with acl if seams kernel compiled with disabled acl for ext filesystem. my fstab config: # UNCONFIGURED FSTAB FOR BASE SYSTEM tmpfs /tmp tmpfs nodev,nosuid,size=256M 0 0 /dev/mmcblk0p1 / ext4 acl,defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro 0 0 /var/swap none swap sw 0 0 and my check for acl in kernel config: root@orangepipc:~# cat /boot/config-3.4.112-sun8i | grep _ACL # CONFIG_EXT4_FS_POSIX_ACL is not set CONFIG_BTRFS_FS_POSIX_ACL=y CONFIG_FS_POSIX_ACL=y CONFIG_GENERIC_ACL=y CONFIG_TMPFS_POSIX_ACL=y CONFIG_NFS_V3_ACL=y CONFIG_NFSD_V2_ACL=y CONFIG_NFSD_V3_ACL=y CONFIG_NFS_ACL_SUPPORT=y It seams the analog audio out put dos't work too, I can't test it with speaker-test. It would be a great favor to recompile kernel with acl for ext4 and guide me about audio out put.
Igor Posted May 21, 2016 Posted May 21, 2016 Done. https://github.com/igorpecovnik/lib/commit/8311544bbd047443589ea0d923c5100d3b2ffea1 If you need anything else, kernel configurations are stored here and there is an edit button + push back.
mss Posted May 21, 2016 Author Posted May 21, 2016 you are blazing fast thanks but I don't really how compile and replace the kernel and I afraid of boot fail.I'm running `ARMBIAN Debian GNU/Linux 8 (jessie) 3.4.112-sun8i` on orange pi pc.
Igor Posted May 21, 2016 Posted May 21, 2016 There are two options: 1. You compile yourself: If you don't know how ... start to read and learn. 2. Wait for kernel update. We are preparing a bugfix update within few days Update is done on a standard Debian way.
mss Posted May 21, 2016 Author Posted May 21, 2016 It seams you write a great and simple instruction to compile kernel but if you guide me about how specify my board and how to replace kernel I love to do it myself
mss Posted May 22, 2016 Author Posted May 22, 2016 Ok Install ubuntu 16.04 follow instruction you make and yes it compiled and it was simple thanks to igore script (there was problem with dialog I suggest to add apt update to start of script ) . During the compile process it ask about device type and kernel version and I choose orange pi pc and default kernel. finally it makes some .deb file in output directory i copy all of them to orange pi pc /root and install on armbian . The acl flag kernel config is now enabled : root@orangepipc:~# cat /boot/config-3.4.112-sun8i | grep _ACL CONFIG_EXT4_FS_POSIX_ACL=y CONFIG_BTRFS_FS_POSIX_ACL=y CONFIG_FS_POSIX_ACL=y CONFIG_GENERIC_ACL=y CONFIG_TMPFS_POSIX_ACL=y CONFIG_NFS_V3_ACL=y CONFIG_NFSD_V2_ACL=y CONFIG_NFSD_V3_ACL=y CONFIG_NFS_ACL_SUPPORT=y but mount command doesn't show acl flag is available: root@orangepipc:~# mount /dev/mmcblk0p1 on / type ext4 (rw,noatime,nodiratime,errors=remount-ro,commit=600) devtmpfs on /dev type devtmpfs (rw,relatime,size=380824k,nr_inodes=95206,mode=755) sysfs on /sys type sysfs (rw,relatime) none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) none on /proc type proc (rw,nosuid,nodev,noexec,relatime) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755) none on /sys/fs/fuse/connections type fusectl (rw,relatime) none on /sys/kernel/debug type debugfs (rw,relatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=262144k) none on /run type tmpfs (rw,nosuid,noexec,relatime,size=102416k,mode=755) none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) cgmfs on /run/cgmanager/fs type tmpfs (rw,relatime,size=100k,mode=755) none on /run/shm type tmpfs (rw,nosuid,nodev,relatime) none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755) and now I'm able to run setfacl -dm without problem but it still doesn't set default permission for new files it's really strange. root@orangepipc:~# setfacl -dm u::rwx,g::rwx,o::r /var/www/html/files root@orangepipc:~# getfacl /var/www/html/files getfacl: Removing leading '/' from absolute path names # file: var/www/html/files # owner: www-data # group: www-data # flags: ss- user::rwx group::rwx other::rwx default:user::rwx default:group::rwx default:other::r-- root@orangepipc:~# touch /var/www/html/files/test root@orangepipc:~# ls -ltrh /var/www/html/files total 0 -rw-rw-r-- 1 root www-data 0 May 22 17:39 test I hope somebody can help me to understand whats happening here?
Recommended Posts