e65ff3b72a
Cherry-picked from upstream. Also applied a fix for the CPUShares configuration option while I'm at it. CVE-2013-4327
28 lines
972 B
Diff
28 lines
972 B
Diff
From ed7c22c76e1399861ec8e0216f08a7f9419eea50 Mon Sep 17 00:00:00 2001
|
|
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
|
|
Date: Tue, 7 May 2013 14:03:13 +0200
|
|
Subject: [PATCH 09/11] Start ctrl-alt-del.target irreversibly
|
|
|
|
This makes ctrl-alt-del reboots more robust, just like "systemctl
|
|
reboot".
|
|
---
|
|
src/core/manager.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/core/manager.c b/src/core/manager.c
|
|
index c7f8f20..0508628 100644
|
|
--- a/src/core/manager.c
|
|
+++ b/src/core/manager.c
|
|
@@ -1372,7 +1372,7 @@ static int manager_process_signal_fd(Manager *m) {
|
|
|
|
case SIGINT:
|
|
if (m->running_as == SYSTEMD_SYSTEM) {
|
|
- manager_start_target(m, SPECIAL_CTRL_ALT_DEL_TARGET, JOB_REPLACE);
|
|
+ manager_start_target(m, SPECIAL_CTRL_ALT_DEL_TARGET, JOB_REPLACE_IRREVERSIBLY);
|
|
break;
|
|
}
|
|
|
|
--
|
|
1.8.3.4
|
|
|