gnome-session/gnome-session-ice-auth-for-suid.patch

15 lines
666 B
Diff
Raw Normal View History

diff -upr gnome-session-2.23.4.1-pre/gnome-session/xsmp.c gnome-session-2.23.4.1-post/gnome-session/xsmp.c
--- gnome-session-2.23.4.1-pre/gnome-session/xsmp.c 2008-06-03 10:38:18.000000000 -0500
+++ gnome-session-2.23.4.1-post/gnome-session/xsmp.c 2008-07-20 17:35:00.000000000 -0500
@@ -481,6 +481,9 @@ update_iceauthority (gboolean adding)
fclose (fp);
ok = TRUE;
+ /* Lets programs auth with the session even if running as another user ID */
+ putenv (g_strconcat ("ICEAUTHORITY=", filename, NULL));
+
cleanup:
IceUnlockAuthFile (filename);
for (i = 0; i < num_local_xsmp_sockets; i++)
Only in gnome-session-2.23.4.1-post/gnome-session: xsmp.c~