unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: muradm <mail@muradm.net>
To: 50193@debbugs.gnu.org
Subject: bug#50193: guix: shepherd pid 1 holds /dev/console
Date: Tue, 24 Aug 2021 21:37:59 +0300	[thread overview]
Message-ID: <87pmu2n0qn.fsf@muradm.net> (raw)


On IRC chat we identified an issue related to linux SAK, which
is explained here 
https://www.kernel.org/doc/html/latest/security/sak.html

Following the check what processes will be SAK'ed:

~# ls -l /proc/[0-9]*/fd/* | grep console
lrwx------ 1 root   root   64 Aug 24 21:22 /proc/1/fd/1 -> 
/dev/console
lrwx------ 1 root   root   64 Aug 24 21:22 /proc/1/fd/2 -> 
/dev/console
l-wx------ 1 root   root   64 Aug 24 21:22 /proc/578/fd/4 -> 
/dev/console
lrwx------ 1 root   root   64 Aug 24 21:22 /proc/593/fd/1 -> 
/dev/console
lrwx------ 1 root   root   64 Aug 24 21:22 /proc/593/fd/2 -> 
/dev/console
lrwx------ 1 root   root   64 Aug 24 20:03 /proc/705/fd/1 -> 
/dev/console
lrwx------ 1 root   root   64 Aug 24 20:03 /proc/705/fd/2 -> 
/dev/console
lrwx------ 1 root   root   64 Aug 24 21:22 /proc/909/fd/1 -> 
/dev/console
lrwx------ 1 root   root   64 Aug 24 21:22 /proc/909/fd/2 -> 
/dev/console

As it is seen from above output, pid 1 which is shepherd holds 
/dev/console
making linux SAK feature useless. When SAK command issued by 
shortcut keys,
all above proceses gets killed including pid 1 which is shepherd, 
causing
system to stall.




                 reply	other threads:[~2021-08-24 18:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmu2n0qn.fsf@muradm.net \
    --to=mail@muradm.net \
    --cc=50193@debbugs.gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).