From nobody Fri Aug 9 17:55:36 2024 X-Original-To: emulation@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 4WgWm83TzYz5SX8p for ; Fri, 09 Aug 2024 17:55:36 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WgWm8291Tz4CMX for ; Fri, 9 Aug 2024 17:55:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723226136; a=rsa-sha256; cv=none; b=HiGfRsqbciuaSuKfDUevXbtErrfZY3QW/qtCd22D9X+BA9tlctMJD/lvK24bs+UkjjHot0 MNl+CKQfY6sG9x4BS8a0dthcPWQMRw1cx8nJlmRVnXmLDWnKLFwaXESPtOJuO02qQ7zuqq CWHWehuesOVFZavtRmil/kre4RLaia0GQKptSCkDbyzx+DLJV3qwQoR8AZOZZUawOzLplU 6PLbV7WUfshlaX1iIlFzSyiuXsixBw6B2/RM0qUdHFWpyhFBdkNOf1uTaHPFzsQS0tUsAy w8oTGaJb8WeHG1n2Sn5n72pyzLwQ6X0v4pLt7gjiyIpK+Oj/niVJkKgtIW6k4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723226136; 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: in-reply-to:in-reply-to:references:references; bh=1K+U/60wopxQpiVDILOjhfDRJI/EXbHCK/ymdU05E5I=; b=a/Qj7mJxaPkyLcQfryNBgJ6zAVoaMQq9hAuVFwOiXKP9n2OiC8F2o9Sx3zRNSEIXU6Xf3m VUTCM6CeuI/vndIHQA8z5c9H0p97yUFYK2RCGvYgVJuWkINozGPDrD55JdDFtl4WF9z1WT Esr66qlTHCJcx09DO08Ce6Vlvn1l8opvERkQErhQEbrkydJoRFS4041flL8cJN7UQeLp1c +dKrinVQ7ifoCl05o6kcPoL5hJw6zStf1nt4gwN8b1ql652S+L3iX7EzZjn1LW6HENpcJU NG9zCqa5ieTS6MAhaxqH1d/EWaRELMlDeI2xagyeBduMz0GyxTxcfNdHJPoR4w== 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 4WgWm81fcFzRCr for ; Fri, 9 Aug 2024 17:55:36 +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 479HtaJK099721 for ; Fri, 9 Aug 2024 17:55:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 479HtaoP099720 for emulation@FreeBSD.org; Fri, 9 Aug 2024 17:55:36 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: emulation@FreeBSD.org Subject: [Bug 275295] Linuxulator: faccessat2 unsupported flag 0x100 Date: Fri, 09 Aug 2024 17:55:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fernape@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: 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: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275295 Fernando Apestegu=C3=ADa changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fernape@FreeBSD.org --- Comment #7 from Fernando Apestegu=C3=ADa --- Created attachment 252634 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D252634&action= =3Dedit Patch to support AT_SYMLINK_NOFOLLOW in faccess(2) I gave this a try and came up with this patch. It adds support for AT_SYMLINK_NOFOLLOW in faccessat(2) and it removes the restriction in linux_faccessat2. I didn't test the linuxolator part though. Would you test it? You don't need to build world, that is only to update a couple of manual pages. I tested this with access_test.c and the following files: ~/test$ ls -l file link_to_file --w------- 1 fernape fernape 0 Jul 29 19:23 file lrwxr-xr-x 1 fernape fernape 4 Jul 29 19:23 link_to_file@ -> file ~/test$ ./a.out file link_to_file=20 accessat: Permission denied accessat: Permission denied With AT_SYMLINK_NOFOLLOW: accessat: Permission denied link is accessible --=20 You are receiving this mail because: You are the assignee for the bug.=