From 83b0abd7cfe30d54ac714fb961e7e5ab0d3d8ee2 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 14 Feb 2024 18:57:26 +0800 Subject: [PATCH] cross-ng: Disable "exec" as well as "exit" for init shell --- chapter07/chroot.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter07/chroot.xml b/chapter07/chroot.xml index cd45b206f..b4496bf04 100644 --- a/chapter07/chroot.xml +++ b/chapter07/chroot.xml @@ -14,7 +14,7 @@ so exiting from it will cause kernel panic. Prevent exiting from the shell accidentally: -enable -n exit +enable -n exit exec readonly IGNOREEOF=1000 The standard I/O streams of the initial shell process is connected