Date: Mon, 05 Sep 2022 21:10:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266240] ACL_READ_ATTRIBUTES denied has no effect on UFS Message-ID: <bug-266240-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266240 Bug ID: 266240 Summary: ACL_READ_ATTRIBUTES denied has no effect on UFS Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org Creating an NFSv4 ACL with an entry that denies ACL_READ_ATTRIBUTES ought to deny the user the ability to stat the file. On ZFS, it does. But on UFS, = it has no effect. Steps to Reproduce: #! /bin/sh truncate -s 1g /tmp/ufs.img MD=3D`mdconfig -a -t vnode -f /tmp/ufs.img` newfs $MD tunefs -N enable /dev/$MD sudo mount /dev/$MD /mnt cd /mnt touch foo setfacl -a 0 user:nobody:------a-------:-------:deny foo sudo -u nobody stat $FILE >/dev/null 2>&1 if [ $? -eq 0 ]; then echo -e "ERROR: user nobody can stat the file, despite being denied= by ACL" fi cd / umount /mnt mdconfig -d -u $MD --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266240-227>