Date: Sun, 13 Jul 2008 16:34:37 GMT From: Iustin Pop <iusty@k1024.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/125575: acl_valid() has wrong checks Message-ID: <200807131634.m6DGYbXN060066@www.freebsd.org> Resent-Message-ID: <200807131640.m6DGe2Vj081536@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125575 >Category: misc >Synopsis: acl_valid() has wrong checks >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 13 16:40:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Iustin Pop >Release: 7.0-release >Organization: >Environment: >Description: As described in http://lists.freebsd.org/pipermail/posix1e/2008-June/000491.html, acl_valid() checks that the ACL in question does not contain an ACL_USER with the same ID as the current user (and the same for ACL_GROUP). The check is not consisten with the kernel's validity check, and the POSIX.1e specification does not say such a check should be made. IMHO, the userland checks should be the consistent with the kernel checks. See also http://lists.freebsd.org/pipermail/posix1e/2008-July/000492.html Thank you! >How-To-Repeat: Create manually an ACL and try to add an ACL with the current user ID to it, via acl_from_text, acl_create_entry, acl_set_tag_type, acl_set_qualifier, and the acl_valid call on this ACL will fail. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807131634.m6DGYbXN060066>