[gnome-session/wip/rishi/blacklist-notify-socket] util: Blacklist NOTIFY_SOCKET



commit fc6825474ab5b163ae523b9381dbf30b97c29ef0
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Sep 19 13:54:53 2019 +0200

    util: Blacklist NOTIFY_SOCKET
    
    The NOTIFY_SOCKET environment variable was leaking into systemd
    managed GNOME sessions and breaking things like OCI container runtimes
    (eg., runc and crun) [1]. This variable is absent in non-systemd
    managed sessions.
    
    [1] https://bugzilla.redhat.com/show_bug.cgi?id=1753328

 gnome-session/gsm-util.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnome-session/gsm-util.c b/gnome-session/gsm-util.c
index f6ddefc3..1528723c 100644
--- a/gnome-session/gsm-util.c
+++ b/gnome-session/gsm-util.c
@@ -36,6 +36,7 @@ static gchar *_saved_session_dir = NULL;
 static gchar **child_environment;
 
 static const char * const variable_blacklist[] = {
+    "NOTIFY_SOCKET",
     "XDG_SEAT",
     "XDG_SESSION_ID",
     "XDG_VTNR",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]