mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
server: add PID race condition disclaimer to wl_client_get_credentials
PIDs are re-used and cannot be used to reliably check the identity of a Wayland client. Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
2fb4cdebbe
commit
7eb00b070d
1 changed files with 3 additions and 0 deletions
|
|
@ -578,6 +578,9 @@ err_client:
|
||||||
* SO_PEERCRED, on the client socket fd. All the pointers can be
|
* SO_PEERCRED, on the client socket fd. All the pointers can be
|
||||||
* NULL, if the caller is not interested in a particular ID.
|
* NULL, if the caller is not interested in a particular ID.
|
||||||
*
|
*
|
||||||
|
* Note, process IDs are subject to race conditions and are not a reliable way
|
||||||
|
* to identify a client.
|
||||||
|
*
|
||||||
* Be aware that for clients that a compositor forks and execs and
|
* Be aware that for clients that a compositor forks and execs and
|
||||||
* then connects using socketpair(), this function will return the
|
* then connects using socketpair(), this function will return the
|
||||||
* credentials for the compositor. The credentials for the socketpair
|
* credentials for the compositor. The credentials for the socketpair
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue