From 461f55218867e7e8e25ab85dc93faf8193cbe243 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 3 Jul 2015 14:39:33 -0400 Subject: [PATCH] server: add -audit 4 to default flags --- daemon/gdm-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c index ccb26a3..b52465e 100644 --- a/daemon/gdm-server.c +++ b/daemon/gdm-server.c @@ -249,61 +249,61 @@ gdm_server_launch_sigusr1_thread_if_needed (void) static GThread *sigusr1_thread; if (sigusr1_thread == NULL) { sigusr1_thread = g_thread_new ("gdm SIGUSR1 catcher", sigusr1_thread_main, NULL); g_mutex_lock (&sigusr1_thread_mutex); while (!sigusr1_thread_running) g_cond_wait (&sigusr1_thread_cond, &sigusr1_thread_mutex); g_mutex_unlock (&sigusr1_thread_mutex); } } static void gdm_server_init_command (GdmServer *server) { gboolean debug = FALSE; const char *debug_options; const char *verbosity = ""; if (server->priv->command != NULL) { return; } gdm_settings_direct_get_boolean (GDM_KEY_DEBUG, &debug); if (debug) { debug_options = " -logverbose 7 -core "; } else { debug_options = ""; } -#define X_SERVER_ARG_FORMAT " -background none -noreset -verbose %s%s" +#define X_SERVER_ARG_FORMAT " -background none -noreset -audit 4 -verbose %s%s" #ifdef WITH_SYSTEMD /* This is a temporary hack to work around the fact that XOrg * currently lacks support for multi-seat hotplugging for * display devices. This bit should be removed as soon as XOrg * gains native support for automatically enumerating usb * based graphics adapters at start-up via udev. */ /* systemd ships an X server wrapper tool which simply invokes * the usual X but ensures it only uses the display devices of * the seat. */ /* We do not rely on this wrapper server if, a) the machine * wasn't booted using systemd, or b) the wrapper tool is * missing, or c) we are running for the main seat 'seat0'. */ if (!LOGIND_RUNNING()) { goto fallback; } #ifdef ENABLE_SYSTEMD_JOURNAL /* For systemd, we don't have a log file but instead log to stdout, so set it to the xserver's built-in default verbosity */ if (debug) verbosity = "7 -logfile /dev/null"; else verbosity = "3 -logfile /dev/null"; #endif -- 2.3.7