File 1000-logind-disable-RemoveIPC-by-default.patch of Package systemd
From 154e9ad85794282b4db8b9ab0c468c427a15a3c4 Mon Sep 17 00:00:00 2001
From: Franck Bui <fbui@suse.com>
Date: Thu, 11 Feb 2016 10:00:24 +0100
Subject: [PATCH 1000/1003] logind: disable RemoveIPC by default
[ fate#320125 ]
---
man/logind.conf.xml | 2 +-
src/login/logind-core.c | 2 +-
src/login/logind.conf.in | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/man/logind.conf.xml b/man/logind.conf.xml
index 81b870c46f..1648bd421f 100644
--- a/man/logind.conf.xml
+++ b/man/logind.conf.xml
@@ -340,7 +340,7 @@
user fully logs out. Takes a boolean argument. If enabled, the user may not consume IPC resources after the
last of the user's sessions terminated. This covers System V semaphores, shared memory and message queues, as
well as POSIX shared memory and message queues. Note that IPC objects of the root user and other system users
- are excluded from the effect of this setting. Defaults to <literal>yes</literal>.</para></listitem>
+ are excluded from the effect of this setting. Defaults to <literal>no</literal>.</para></listitem>
</varlistentry>
</variablelist>
diff --git a/src/login/logind-core.c b/src/login/logind-core.c
index 480ec1927b..993071c787 100644
--- a/src/login/logind-core.c
+++ b/src/login/logind-core.c
@@ -33,7 +33,7 @@ void manager_reset_config(Manager *m) {
m->n_autovts = 6;
m->reserve_vt = 6;
- m->remove_ipc = true;
+ m->remove_ipc = false;
m->inhibit_delay_max = 5 * USEC_PER_SEC;
m->user_stop_delay = 10 * USEC_PER_SEC;
diff --git a/src/login/logind.conf.in b/src/login/logind.conf.in
index ed1084b06e..07ff0d195e 100644
--- a/src/login/logind.conf.in
+++ b/src/login/logind.conf.in
@@ -33,6 +33,6 @@
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
-#RemoveIPC=yes
+#RemoveIPC=no
#InhibitorsMax=8192
#SessionsMax=8192
--
2.26.2