teknoraver / rpms / systemd

Forked from rpms/systemd a month ago
Clone

Blame SOURCES/0001-logind-set-RemoveIPC-to-false-by-default.patch

aa0848
From 5a66d993a5be88524d9952193b053eac607a5c17 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
aa0848
Resolves: #1959836
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
aa0848
index 3045c1b9ba..96fa076239 100644
aa0848
--- a/man/logind.conf.xml
aa0848
+++ b/man/logind.conf.xml
aa0848
@@ -354,7 +354,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
 
aa0848
     </variablelist>
aa0848
diff --git a/src/login/logind-core.c b/src/login/logind-core.c
aa0848
index 254a1a69fb..616c08132a 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
aa0848
index 2d084e134d..79d685b3de 100644
aa0848
--- a/src/login/logind.conf.in
aa0848
+++ b/src/login/logind.conf.in
aa0848
@@ -40,6 +40,6 @@
aa0848
 #IdleActionSec=30min
aa0848
 #RuntimeDirectorySize=10%
aa0848
 #RuntimeDirectoryInodes=400k
aa0848
-#RemoveIPC=yes
aa0848
+#RemoveIPC=no
aa0848
 #InhibitorsMax=8192
aa0848
 #SessionsMax=8192