teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

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

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