2023-07-31 10:00:47 +08:00
|
|
|
From 0b3833d6c3b751c6dfb40eeb2ef852984c58f546 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: openEuler Buildteam <buildteam@openeuler.org>
|
|
|
|
|
Date: Wed, 1 Aug 2018 10:58:28 +0200
|
|
|
|
|
Subject: logind: set RemoveIPC to false by default
|
|
|
|
|
|
|
|
|
|
Resolves: #1523233
|
|
|
|
|
---
|
|
|
|
|
man/logind.conf.xml | 2 +-
|
|
|
|
|
src/login/logind-core.c | 2 +-
|
|
|
|
|
src/login/logind.conf.in | 2 +-
|
|
|
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/man/logind.conf.xml b/man/logind.conf.xml
|
2024-01-08 19:20:01 +08:00
|
|
|
index 72f657c..0b5c060 100644
|
2023-07-31 10:00:47 +08:00
|
|
|
--- a/man/logind.conf.xml
|
|
|
|
|
+++ b/man/logind.conf.xml
|
2024-01-08 19:20:01 +08:00
|
|
|
@@ -363,7 +363,7 @@
|
2023-07-31 10:00:47 +08:00
|
|
|
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
|
2024-01-08 19:20:01 +08:00
|
|
|
- are excluded from the effect of this setting. Defaults to <literal>yes</literal>.</para>
|
|
|
|
|
+ are excluded from the effect of this setting. Defaults to <literal>no</literal>.</para>
|
2023-07-31 10:00:47 +08:00
|
|
|
|
2024-01-08 19:20:01 +08:00
|
|
|
<xi:include href="version-info.xml" xpointer="v212"/></listitem>
|
|
|
|
|
</varlistentry>
|
2023-07-31 10:00:47 +08:00
|
|
|
diff --git a/src/login/logind-core.c b/src/login/logind-core.c
|
2024-01-08 19:20:01 +08:00
|
|
|
index f15008e..08ee25c 100644
|
2023-07-31 10:00:47 +08:00
|
|
|
--- a/src/login/logind-core.c
|
|
|
|
|
+++ b/src/login/logind-core.c
|
2024-01-08 19:20:01 +08:00
|
|
|
@@ -36,7 +36,7 @@ void manager_reset_config(Manager *m) {
|
2023-07-31 10:00:47 +08:00
|
|
|
|
|
|
|
|
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
|
2024-01-08 19:20:01 +08:00
|
|
|
index e5fe924..ead4fda 100644
|
2023-07-31 10:00:47 +08:00
|
|
|
--- a/src/login/logind.conf.in
|
|
|
|
|
+++ b/src/login/logind.conf.in
|
2024-01-08 19:20:01 +08:00
|
|
|
@@ -45,7 +45,7 @@
|
2023-07-31 10:00:47 +08:00
|
|
|
#IdleActionSec=30min
|
|
|
|
|
#RuntimeDirectorySize=10%
|
|
|
|
|
#RuntimeDirectoryInodesMax=
|
|
|
|
|
-#RemoveIPC=yes
|
|
|
|
|
+#RemoveIPC=no
|
|
|
|
|
#InhibitorsMax=8192
|
|
|
|
|
#SessionsMax=8192
|
2024-01-08 19:20:01 +08:00
|
|
|
#StopIdleSessionSec=infinity
|
2023-07-31 10:00:47 +08:00
|
|
|
--
|
2024-01-08 19:20:01 +08:00
|
|
|
2.33.0
|
2023-07-31 10:00:47 +08:00
|
|
|
|