aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-05-31 19:23:38 +0200
committerSimon Ser <contact@emersion.fr>2022-06-15 07:57:12 +0000
commit7eb00b070d8a7ec98f58980862b63a0063c66d6b (patch)
tree3700d184d4b0312ab06873b00e49a62552402c8c /src
parenttests: add a test for dynamic filtered globals (diff)
downloadwayland-7eb00b070d8a7ec98f58980862b63a0063c66d6b.tar
wayland-7eb00b070d8a7ec98f58980862b63a0063c66d6b.tar.gz
wayland-7eb00b070d8a7ec98f58980862b63a0063c66d6b.tar.bz2
wayland-7eb00b070d8a7ec98f58980862b63a0063c66d6b.tar.lz
wayland-7eb00b070d8a7ec98f58980862b63a0063c66d6b.tar.xz
wayland-7eb00b070d8a7ec98f58980862b63a0063c66d6b.tar.zst
wayland-7eb00b070d8a7ec98f58980862b63a0063c66d6b.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/wayland-server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wayland-server.c b/src/wayland-server.c
index 732f153..4bcc9ae 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -578,6 +578,9 @@ err_client:
* SO_PEERCRED, on the client socket fd. All the pointers can be
* 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
* then connects using socketpair(), this function will return the
* credentials for the compositor. The credentials for the socketpair