tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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





On 6 Jun 2025, at 2:41 AM, Jason Thorpe <thorpej%me.com@localhost> wrote:


On Jun 5, 2025, at 7:30 PM, Emmanuel Nyarko <emmankoko519%gmail.com@localhost> 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







Home | Main Index | Thread Index | Old Index