Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2024 21:42:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 282393] fchmod() on an UNIX socket before bind()
Message-ID:  <bug-282393-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282393-227>