[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <go0RLOS7_DdxyAmfrDR38QPUloZuUtiFdXe2Ey3EkGGuvmW7z18Dvt4fY1qZ1k-Y75-YZSxqVWnZpWRGN7TZ6OPbDczfL7HI25bXLIYq1y4=@emersion.fr>
Date: Tue, 17 Mar 2020 17:54:47 +0000
From: Simon Ser <contact@...rsion.fr>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"oleg@...hat.com" <oleg@...hat.com>,
"christian@...uner.io" <christian@...uner.io>,
"ebiederm@...ssion.com" <ebiederm@...ssion.com>
Subject: SO_PEERCRED and pidfd
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
Powered by blists - more mailing lists