From nobody Mon May 29 12:25:40 2023 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 4QVF9d1wyDz4Xg6v for ; Mon, 29 May 2023 12:25:41 +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 4QVF9c6Vvfz4bNL for ; Mon, 29 May 2023 12:25:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685363140; 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=iZa2IBqZXUpek21z/s7JWQZSJvIVYFsGn3X19oCuWyU=; b=eFIzQOK1ZZ8Ay7+KMY2w03CkvR0ErcraSU/UljCnish3ipJ6KhPwPp6RABq7DSyFr9AVDn ShIdzPP4mclyPQMy5SrR7eLL4CjRc7RzRunmx9ZKBetH7Ja9zkxdKwqPyRZgsy1O8nsaI2 eGI02o/TZMk+Du62Wpofr5duc9c5n7/OuO/x9P8RpuGuaoIthYV4+tVwxLiNMxJttXCTf5 id1e2/hFoaA6V+ll3dYxJXjHlDIxbDyCxqP6Wu6hHDMtl334Yjqg0vX2BhpIv0VhaZIgSB XtMP4/5YGbNwd4SrkROytNMkwX/x0fItF/SCj8dxLMWwPYxBad6TvUajpsNwhA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685363140; a=rsa-sha256; cv=none; b=hcGP/Tkn4wQJ2QmtohuEq38j6Ul/utIAk1Dp4FmfckkLh4swZyJ61injDJL5RvEe37/AyN Wyak4uE9rxYX61auA2TTKZMjTzsSqSZLNsgME3XT2YGmt1v8R3zS/dsLA0yXMiHo0hIEnU Sem1vjZSkq/mxWDph0PQC/sqezoyoAEhwS+MbLwdFM5iW29e7dKUEGeZpZcdOlj4c0alq1 0MaVCnztat3gEfujWqm0d+Pyt4JLXvXLjvthZfb+yEvL0ru+kAIDmHudc+I6tJ1Ec6VfzF Gz/bm7wLhmTSjs4DbNF/GP8oTqfA/faFbd1Ob6JWMsLFCY72hXm1Bfys83dQSw== 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 4QVF9c5ZPLz1B7R for ; Mon, 29 May 2023 12:25:40 +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 34TCPe82077752 for ; Mon, 29 May 2023 12:25:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34TCPekf077751 for bugs@FreeBSD.org; Mon, 29 May 2023 12:25:40 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 271704] O_PATH and acl_get_fd_np doesn't work on FreeBSD 13(.2) and causes vfs_zfsacl in Samba to fail Date: Mon, 29 May 2023 12:25:40 +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: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: pen@lysator.liu.se 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271704 Bug ID: 271704 Summary: O_PATH and acl_get_fd_np doesn't work on FreeBSD 13(.2) and causes vfs_zfsacl in Samba to fail Product: Base System Version: 13.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: pen@lysator.liu.se The new O_PATH support in FreeBSD 13 doesn't seem to work with trying to re= ad ZFS ACLs via acl_get_fd_np(). #include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { int i, j, fd; acl_t a; char *path =3D "."; int flags =3D O_PATH; struct stat sb; for (i =3D 1; i < argc && argv[i][0] =3D=3D '-'; i++) { for (j =3D 1; argv[i][j]; j++) { switch (argv[i][j]) { case 'n': flags =3D 0; break; } } } if (i < argc) path =3D argv[i]; fd =3D open(path, O_RDONLY|flags); if (fd < 0) { fprintf(stderr, "%s: Error: %s: open: %s\n", argv[0], path, strerror(errno)); exit(1); } if (fstat(fd, &sb) < 0) { fprintf(stderr, "%s: Error: %s: fstat: %s\n", argv[0], path, strerror(errno)); } a =3D acl_get_fd_np(fd, ACL_TYPE_NFS4); if (!a) { fprintf(stderr, "%s: Error: %s: acl_get_fd_np: %s\n", argv[0], path, strerror(errno)); } return 0; } root@runur00:~Lpeter86 # ./t=20 ./t: Error: .: acl_get_fd_np: Bad file descriptor root@runur00:~Lpeter86 # ./t -n root@runur00:~Lpeter86 # getfacl . # file: . # owner: Lpeter86 # group: Ladmins owner@:rwxp--aARWcCos:-------:allow group@:------a-R-c--s:-------:allow everyone@:------a-R-c--s:-------:allow This seems to cause atleast the Samba "zfsacl" module to fail. --=20 You are receiving this mail because: You are the assignee for the bug.=