From: Daniel Jacobowitz <dan@debian.org>
To: "Richard B. Johnson" <linux-os@analogic.com>
Cc: Jan Harkes <jaharkes@cs.cmu.edu>,
Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux-2.6.11 can't disable CAD
Date: Fri, 8 Apr 2005 09:05:22 -0400 [thread overview]
Message-ID: <20050408130522.GA32099@nevyn.them.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0504071639060.4895@chaos.analogic.com>
On Thu, Apr 07, 2005 at 04:50:32PM -0400, Richard B. Johnson wrote:
> On Thu, 7 Apr 2005, Jan Harkes wrote:
>
> >On Thu, Apr 07, 2005 at 11:16:14AM -0400, Richard B. Johnson wrote:
> >>In the not-too distant past, one could disable Ctl-Alt-DEL.
> >>Can't do it anymore.
> >...
> >>Observe that reboot() returns 0 and `strace` understands what
> >>parameters were passed. The result is that, if I hit Ctl-Alt-Del,
> >>`init` will still execute the shutdown-order (INIT 0).
> >
> >Actually, if CAD is enabled in the kernel, it will just reboot.
> >If CAD is disabled in the kernel a SIGINT is sent to pid 1 (/sbin/init).
> >
>
> No, that's not how it ever worked. There are parameters that are
> available in the reboot-system call that define the operation that
> will occur when the 3-finger salute occurs.
>
> Execute man 2 reboot.
Take your own advice. From the man page:
LINUX_REBOOT_CMD_CAD_ON
(RB_ENABLE_CAD, 0x89abcdef). CAD is enabled. This means
that the CAD keystroke will immediately cause the action
associated with LINUX_REBOOT_CMD_RESTART.
LINUX_REBOOT_CMD_CAD_OFF
(RB_DISABLE_CAD, 0). CAD is disabled. This means that the CAD
keystroke will cause a SIGINT signal to be sent to init
(process 1), whereupon this process may decide upon a
proper action (maybe: kill all processes, sync, reboot).
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-04-08 13:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-07 15:16 Richard B. Johnson
2005-04-07 18:59 ` Randy.Dunlap
2005-04-07 19:46 ` Richard B. Johnson
2005-04-07 20:08 ` Randy.Dunlap
2005-04-07 20:35 ` Richard B. Johnson
2005-04-07 20:20 ` Jan Harkes
2005-04-07 20:50 ` Richard B. Johnson
2005-04-08 13:05 ` Daniel Jacobowitz [this message]
2005-04-08 13:54 ` Richard B. Johnson
[not found] ` <20050407210144.GA8181@delft.aura.cs.cmu.edu>
[not found] ` <Pine.LNX.4.61.0504080822150.8739@chaos.analogic.com>
2005-04-08 20:54 ` Richard B. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050408130522.GA32099@nevyn.them.org \
--to=dan@debian.org \
--cc=jaharkes@cs.cmu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®