36e8a3
From 0b3833d6c3b751c6dfb40eeb2ef852984c58f546 Mon Sep 17 00:00:00 2001
36e8a3
From: rpm-build <rpm-build>
36e8a3
Date: Wed, 1 Aug 2018 10:58:28 +0200
36e8a3
Subject: [PATCH] logind: set RemoveIPC to false by default
36e8a3
36e8a3
Resolves: #1523233
36e8a3
---
36e8a3
 man/logind.conf.xml      | 2 +-
36e8a3
 src/login/logind-core.c  | 2 +-
36e8a3
 src/login/logind.conf.in | 2 +-
36e8a3
 3 files changed, 3 insertions(+), 3 deletions(-)
36e8a3
36e8a3
diff --git a/man/logind.conf.xml b/man/logind.conf.xml
36e8a3
index 9e88764c6..7d7e869a2 100644
36e8a3
--- a/man/logind.conf.xml
36e8a3
+++ b/man/logind.conf.xml
36e8a3
@@ -319,7 +319,7 @@
36e8a3
         user fully logs out. Takes a boolean argument. If enabled, the user may not consume IPC resources after the
36e8a3
         last of the user's sessions terminated. This covers System V semaphores, shared memory and message queues, as
36e8a3
         well as POSIX shared memory and message queues. Note that IPC objects of the root user and other system users
36e8a3
-        are excluded from the effect of this setting. Defaults to <literal>yes</literal>.</para></listitem>
36e8a3
+        are excluded from the effect of this setting. Defaults to <literal>no</literal>.</para></listitem>
36e8a3
       </varlistentry>
36e8a3
 
36e8a3
     </variablelist>
36e8a3
diff --git a/src/login/logind-core.c b/src/login/logind-core.c
36e8a3
index dbae4bf5a..511e3acf8 100644
36e8a3
--- a/src/login/logind-core.c
36e8a3
+++ b/src/login/logind-core.c
36e8a3
@@ -25,7 +25,7 @@ void manager_reset_config(Manager *m) {
36e8a3
 
36e8a3
         m->n_autovts = 6;
36e8a3
         m->reserve_vt = 6;
36e8a3
-        m->remove_ipc = true;
36e8a3
+        m->remove_ipc = false;
36e8a3
         m->inhibit_delay_max = 5 * USEC_PER_SEC;
36e8a3
         m->handle_power_key = HANDLE_POWEROFF;
36e8a3
         m->handle_suspend_key = HANDLE_SUSPEND;
36e8a3
diff --git a/src/login/logind.conf.in b/src/login/logind.conf.in
36e8a3
index 1029e29bc..c7346f981 100644
36e8a3
--- a/src/login/logind.conf.in
36e8a3
+++ b/src/login/logind.conf.in
36e8a3
@@ -32,6 +32,6 @@
36e8a3
 #IdleAction=ignore
36e8a3
 #IdleActionSec=30min
36e8a3
 #RuntimeDirectorySize=10%
36e8a3
-#RemoveIPC=yes
36e8a3
+#RemoveIPC=no
36e8a3
 #InhibitorsMax=8192
36e8a3
 #SessionsMax=8192