From nobody Mon Oct 28 21:42:25 2024 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 4Xcn0x6Vfxz5bqL6 for ; Mon, 28 Oct 2024 21:42:25 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xcn0x3syfz4lR3 for ; Mon, 28 Oct 2024 21:42:25 +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=1730151745; 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=wuD77GhD4rDQa0Dyj2IyCaswd2IeoHrH1zjP+sdoZv4=; b=c7MNl08A+sKPp91SUF+Cj/2h0cF9O81Yse36dLcBL6EmP2ayeKCnMcspJvp4wLg/Cru096 x59ik/dpRE9TRkgZ/QeFYbtwoZciVJ1wVRfEuHbkS8F2tWMlGoXpXuvi9zxMkEbWuiA2/+ NypYqGF0gVyvxT274MjbSajUw1nL44UUnLTWMFmri8ScErnfPuGdrJ26w3jeYMwkgKto/C BRCEaK7jhRxRqX5DRyLEVpToJ33lmk3X3MM1hZ+Om2UeZlY6y2c+xkgJ05+y6Ms1Y3QaM3 ePNmqs99irilYobGGUCiCZ0T3r4WFKN3UNEnr9y1jRjZLqRI+UYw/9bjo7KxcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730151745; a=rsa-sha256; cv=none; b=N+cnBxnlV8Esr2jlcC4QCNVVmKQt2w8m6/xO9KWdxyvNS2MEbp5lp1qrHfOzCzv9xRveR8 VU+OXR1L+6/zXfmRdjgeHpWV2kCw384+2yDuMAJ9KUdV+x5TIw5DbD1vIPlsizU8qOFfeK SbzJSKd+ZgWGwOOP8BElDUk5MqyDFZ3TUJW1FWzaWd/MeZOmiWbMPX4jD+RIEE6mAoCZVh q0i4ueEYVMWcknDoOdOAfsXK6u5+gEtquB9ulOzR0A+xUTFNX5502F9cU4aeSdbMa/LpR6 xxBtSGYWylW6rERAQvPvgOuxQ2rDh7rzFlBTqa2zRdG17gfeUlut5uA/y0dduA== 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 4Xcn0x3Qpzzwcf for ; Mon, 28 Oct 2024 21:42:25 +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 49SLgPtN017203 for ; Mon, 28 Oct 2024 21:42:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49SLgPwv017202 for bugs@FreeBSD.org; Mon, 28 Oct 2024 21:42:25 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 282393] fchmod() on an UNIX socket before bind() Date: Mon, 28 Oct 2024 21:42:25 +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: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vini.ipsmaker@gmail.com 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282393 Bug ID: 282393 Summary: fchmod() on an UNIX socket before bind() Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: vini.ipsmaker@gmail.com Linux implements a trick to allow control over the creation permission/mode= of UNIX sockets: * https://stackoverflow.com/a/74329441/883113 * https://illumos.topicbox.com/groups/developer/Tfaa228b0d7902cf5 Can we have something similar on FreeBSD? Reusing the same interface would = be good for compatibility with current Linux tools (maybe IllumOS too in the future as seen from the previous links). However for my own projects, I don= 't mind using FreeBSD specific interfaces (perhaps a new socket option). My current workaround is umask, but umask doesn't play nice with multithreaded processes. --=20 You are receiving this mail because: You are the assignee for the bug.=