valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

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

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