Thread (19 messages) flat view 19 messages, 7 authors, 2016-02-03

Re: [PATCH v2] unix: properly account for FDs passed over unix sockets

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-02-02 20:53:23
Also in: lkml

On Tue, Feb 2, 2016 at 12:49 PM, Willy Tarreau [off-list ref] wrote:
On Tue, Feb 02, 2016 at 12:44:54PM -0800, Linus Torvalds wrote:
quoted
Umm. I think the "struct cred" may change in between, can't it?
You mean for example in case of setuid() or something like this ?
Yeah. I'd be worried about looking up the creds or user structure
later, and possibly getting a different one.

I'd much rather look it up at attach time, and just carry an extra
pointer around. That seems to be an inherently safer model where
there's no worry about "what happens if the user does X in the
meantime".

                  Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help