mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
util: XDG_SESSION_COOKIE is unsuitable as session ID
XDG_SESSION_COOKIE was supposed to be used for access control to the session and should not be exposed to other users. Replace usage of XDG_SESSION_COOKIE by XDG_SESSION_ID which is the right choice here since it is actually a proper session ID that may be published.
This commit is contained in:
parent
8f540c6e76
commit
8a55219599
1 changed files with 2 additions and 1 deletions
|
|
@ -2758,7 +2758,8 @@ char *pa_machine_id(void) {
|
|||
char *pa_session_id(void) {
|
||||
const char *e;
|
||||
|
||||
if (!(e = getenv("XDG_SESSION_COOKIE")))
|
||||
e = getenv("XDG_SESSION_ID");
|
||||
if (!e)
|
||||
return NULL;
|
||||
|
||||
return pa_utf8_filter(e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue