summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpm-build <rpm-build>2018-08-01 10:58:28 +0200
committerJan Macku <jamacku@redhat.com>2021-07-20 12:33:07 +0200
commit5ce0a9b91add22f2a21f1bc7c0f888307f7e58e8 (patch)
tree435811225305f6d3c44fbf1353d31fbae6b8dece
parentf6278558da0304ec6b646bb172ce4688c7f162a5 (diff)
downloadsystemd-249-1.tar.gz
logind: set RemoveIPC to false by defaultv249-1
RHEL-only Resolves: #1959836 (cherry picked from commit 0b3833d6c3b751c6dfb40eeb2ef852984c58f546)
-rw-r--r--man/logind.conf.xml2
-rw-r--r--src/login/logind-core.c2
-rw-r--r--src/login/logind.conf.in2
3 files changed, 3 insertions, 3 deletions
diff --git a/man/logind.conf.xml b/man/logind.conf.xml
index be62b6b572..bec7ff44af 100644
--- a/man/logind.conf.xml
+++ b/man/logind.conf.xml
@@ -346,7 +346,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 22031f485a..f5e1126adc 100644
--- a/src/login/logind-core.c
+++ b/src/login/logind-core.c
@@ -34,7 +34,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 27ba77ce79..f9c5099865 100644
--- a/src/login/logind.conf.in
+++ b/src/login/logind.conf.in
@@ -39,6 +39,6 @@
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
-#RemoveIPC=yes
+#RemoveIPC=no
#InhibitorsMax=8192
#SessionsMax=8192