Re: Ctrl + Alt + Del setup in s6-linux-init?

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Thu, 01 Aug 2019 08:50:00 +0000

>s6-linux-init-maker creates an .s6-svscan/SIGINT script that reboots
>the computer, and Adélie Linux' packaging of s6-linux-init-1.0.2.0
>appears to contain an /etc/sysctl.d/ctrlaltdel.conf file that says
>"kernel.ctrl-alt-del = 0". So one might think that having the kernel
>send a SIGINT signal to process 1 when Ctrl + Alt + Del is pressed is
>the expected default setup. Given that this is a Linux-specific
>package, and that the stage1 init is now a C program, was there a
>reson for not setting this up directly with a 'reboot(RB_DISABLE_CAD)'
>call, like sysvinit, runit and others do?

  Yes, this makes sense.
  I need to think about it some more, but at first sight modifying
the setting in stage 1 is the right thing to do. I didn't do it in
the first place because I directly translated stage 1 from the
execline script, which didn't include ctrl-alt-del setting because
it's policy, and didn't think further. Thanks for the suggestion.

--
  Laurent
Received on Thu Aug 01 2019 - 08:50:00 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC