linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SO_PEERCRED and pidfd
@ 2020-03-17 17:54 Simon Ser
  2020-03-17 18:18 ` Christian Brauner
  2020-03-17 18:58 ` Eric W. Biederman
  0 siblings, 2 replies; 9+ messages in thread
From: Simon Ser @ 2020-03-17 17:54 UTC (permalink / raw)
  To: Linux Kernel Mailing List, oleg, christian, ebiederm

Hi all,

I'm a Wayland developer and I've been working on protocol security,
which involves identifying the process on the other end of a Unix
socket [1]. This is already done by e.g. D-Bus via the PID, however
this is racy [2].

Getting the PID is done via SO_PEERCRED. Would there be interest in
adding a way to get a pidfd out of a Unix socket to fix the race?

Thanks,

Simon Ser

[1]: https://gitlab.freedesktop.org/wayland/weston/issues/206
[2]: https://github.com/flatpak/flatpak/issues/2995

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-18 13:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17 17:54 SO_PEERCRED and pidfd Simon Ser
2020-03-17 18:18 ` Christian Brauner
2020-03-18 10:16   ` Simon Ser
2020-03-18 12:21     ` Christian Brauner
2020-03-17 18:58 ` Eric W. Biederman
2020-03-18 10:31   ` Simon Ser
2020-03-18 11:56     ` Christian Brauner
2020-03-18 13:07     ` Eric W. Biederman
2020-03-18 13:43       ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).