diff options
author | Giovanni Campagna <gcampagn@redhat.com> | 2013-08-20 15:45:08 +0200 |
---|---|---|
committer | Giovanni Campagna <gcampagn@redhat.com> | 2013-08-30 10:32:55 +0200 |
commit | e263b3624c417960e09d02d8ff97b1e763d58843 (patch) | |
tree | 80dfc2b1a55b14301a784d481eaa27a8c9e4fa5d /configure.ac | |
parent | 1c34f0b342e12618a224ff74ed001966cabddf50 (diff) | |
download | mutter-e263b3624c417960e09d02d8ff97b1e763d58843.tar.gz |
mutter-launch: use systemd to obtain the TTY
Using the command line or an environment variable is dangerous,
as those can be spoofed to gain access to other sessions.
https://bugzilla.gnome.org/show_bug.cgi?id=705861
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 7072ea119..415ca5d42 100644 --- a/configure.ac +++ b/configure.ac @@ -141,6 +141,11 @@ AM_GLIB_GNU_GETTEXT PKG_CHECK_MODULES(ALL, glib-2.0 >= 2.14.0) PKG_CHECK_MODULES(MUTTER_LAUNCH, libdrm libsystemd-login) +saved_LIBS="$LIBS" +LIBS="$LIBS $MUTTER_LAUNCH" +AC_CHECK_FUNCS([sd_session_get_vt]) +LIBS="$saved_LIBS" + # Unconditionally use this dir to avoid a circular dep with gnomecc GNOME_KEYBINDINGS_KEYSDIR="${datadir}/gnome-control-center/keybindings" AC_SUBST(GNOME_KEYBINDINGS_KEYSDIR) |