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

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

> On 6 Jun 2025, at 2:41 AM, Jason Thorpe <[email protected]> wrote:
> 
> 
>> On Jun 5, 2025, at 7:30 PM, Emmanuel Nyarko <[email protected]> wrote:
>> 
>> Yep, UNIX socket behavior. And so far hearing from you guys, I now know it’s a bad idea to make it a default behavior. So an opt-in behavior with socket options. Just adding an extension for that.
> 
> Make it an fcntl option rather than a socket option so that you can apply it to any type of file descriptor?  Maybe F_DROPCREDS so that passing it to anyone causes it to drop the senders creds and take the receiver’s?

Alright thanks. I think I can do some research into that.

And also, fchown, no support for it yet ? 
> 
> -- thorpej
> 

A scoffer seeks wisdom in vain, but knowledge is easy for a man of understanding.
Emmanuel
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.