naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
2aacef
From 49fab9715ce09b86652e9855555e4ab4fc185220 Mon Sep 17 00:00:00 2001
aa0848
From: rpm-build <rpm-build>
aa0848
Date: Wed, 1 Aug 2018 10:58:28 +0200
aa0848
Subject: [PATCH] logind: set RemoveIPC to false by default
aa0848
aa0848
RHEL-only
aa0848
2aacef
Related: #2138081
aa0848
---
aa0848
 man/logind.conf.xml      | 2 +-
aa0848
 src/login/logind-core.c  | 2 +-
aa0848
 src/login/logind.conf.in | 2 +-
aa0848
 3 files changed, 3 insertions(+), 3 deletions(-)
aa0848
aa0848
diff --git a/man/logind.conf.xml b/man/logind.conf.xml
2aacef
index 9682add08c..1a87cf6baf 100644
aa0848
--- a/man/logind.conf.xml
aa0848
+++ b/man/logind.conf.xml
2aacef
@@ -341,7 +341,7 @@
aa0848
         user fully logs out. Takes a boolean argument. If enabled, the user may not consume IPC resources after the
aa0848
         last of the user's sessions terminated. This covers System V semaphores, shared memory and message queues, as
aa0848
         well as POSIX shared memory and message queues. Note that IPC objects of the root user and other system users
aa0848
-        are excluded from the effect of this setting. Defaults to <literal>yes</literal>.</para></listitem>
aa0848
+        are excluded from the effect of this setting. Defaults to <literal>no</literal>.</para></listitem>
aa0848
       </varlistentry>
aa0848
 
2aacef
       <varlistentry>
aa0848
diff --git a/src/login/logind-core.c b/src/login/logind-core.c
2aacef
index 02adc81909..b5050c54c4 100644
aa0848
--- a/src/login/logind-core.c
aa0848
+++ b/src/login/logind-core.c
aa0848
@@ -34,7 +34,7 @@ void manager_reset_config(Manager *m) {
aa0848
 
aa0848
         m->n_autovts = 6;
aa0848
         m->reserve_vt = 6;
aa0848
-        m->remove_ipc = true;
aa0848
+        m->remove_ipc = false;
aa0848
         m->inhibit_delay_max = 5 * USEC_PER_SEC;
aa0848
         m->user_stop_delay = 10 * USEC_PER_SEC;
aa0848
 
aa0848
diff --git a/src/login/logind.conf.in b/src/login/logind.conf.in
2aacef
index 0b10df6839..09c363817a 100644
aa0848
--- a/src/login/logind.conf.in
aa0848
+++ b/src/login/logind.conf.in
2aacef
@@ -43,7 +43,7 @@
aa0848
 #IdleActionSec=30min
aa0848
 #RuntimeDirectorySize=10%
2aacef
 #RuntimeDirectoryInodesMax=
aa0848
-#RemoveIPC=yes
aa0848
+#RemoveIPC=no
aa0848
 #InhibitorsMax=8192
aa0848
 #SessionsMax=8192
2aacef
 #StopIdleSessionSec=infinity