Re: Proposal to automatically make the owner/user of an accepted socket the current process

Jason Thorpe <[email protected]>
Newsgroups gmane.os.netbsd.devel.network,gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>

> On Jun 5, 2025, at 9:36 AM, Emmanuel Nyarko <[email protected]> wrote:
> 
> Errmmm, I was thinking that it maybe becomes a default behavior.
> 
> I mean every socket should be owned by the process that the socket was created for.

This actually seems not that great.  It’s de rigueur to have a more privileged process create a socket (or other sort of file descriptor) in a controlled fashion to pass off to a less-privileged process.  This should be opt-in behavior on a per-file descriptor basis.

-- thorpej
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.