From nobody Mon Sep 05 21:10:45 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MM1QF2431z4bhrs for ; Mon, 5 Sep 2022 21:10:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MM1QF0RfCz3f7Y for ; Mon, 5 Sep 2022 21:10:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MM1QD6cbszxM9 for ; Mon, 5 Sep 2022 21:10:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 285LAiAQ018011 for ; Mon, 5 Sep 2022 21:10:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 285LAiin018010 for bugs@FreeBSD.org; Mon, 5 Sep 2022 21:10:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266240] ACL_READ_ATTRIBUTES denied has no effect on UFS Date: Mon, 05 Sep 2022 21:10:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662412245; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C04nXPqD0SWXBYopcaEODj5W+BleoQMAE2Vu/3vgFXE=; b=To99k+QggmXnBdHt1jv9NyfR8ybMyv4UXiVIcqM32Gqwx7fgx52UMGC0wEJZy+raEQWrUd M4yCWE0x/NFeSZzHsogftQX3tLgh+ESeUuFQrdg5zb+ycHCnbKUPYzb64vUEanznhoxelG kDncCB+9GSgK+3DP7GXc9LvjGObqZX98S0zEvQOfQQ1PbsuGO+Z2WrF2HKtDMtxhyTP0my tJ1ybVaDRNkrDiuH7Ir1tG8bIxUKVwYHsCnNn6Jbl6KX+V/3/+b/cvxM4lLo0dPsEeqFLG 3PCeoFLOzsa5UBTGwH9ItVV8X3m/lpHH+zCzGR+4+YUFZZ0cGapkDwMqdKxekQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662412245; a=rsa-sha256; cv=none; b=MfDGAgkh84E5t0a38jZHcbpncxX2q375ryPhJXDWbs8JnJB+lEH781AFpY2AwhlD+WOBfw XxFXLBvvuCrNSj9jCo/OVdXQc+c+cVFAMdmk8yS1347Mjdofsr+46uKq9xFzG1QMIph7dP rtxyKhyRWNddodrcOdv8YrKgYzTzkv8wAXf1DqUCXDlRx3rqc6ZGdOLF11uDTkKB/aVSE2 vmDwFPBAPRsCX2ApbFbJp2YAQYQ3TT8LVAuKVC+kE5fdG5QtsKoY8wn0hSPWkjjW94gzys B6ADLdyRToXO5g107qEKwCqeBt8/cJxF1Ut6JCXD5SKd2rCuVNsPynsHHW3O4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=