[Bug 282393] fchmod() on an UNIX socket before bind()
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 282393] fchmod() on an UNIX socket before bind()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 282393] fchmod() on an UNIX socket before bind()"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 282393] fchmod() on an UNIX socket before bind()"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Oct 2024 21:42:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282393 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. -- You are receiving this mail because: You are the assignee for the bug.