unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Timotej Lazar <timotej.lazar@araneo.si>
To: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>,
	GUIX Help <help-guix@gnu.org>
Subject: Re: Launching sway from sddm
Date: Fri, 24 Jun 2022 20:56:52 +0200	[thread overview]
Message-ID: <878rpl6gaz.fsf@araneo.si> (raw)
In-Reply-To: <20220624182126.2e1deb19@primarylaptop.localdomain>

Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> [2022-06-24 18:21:26+0200]:
> If I launch sway from a tty, if either sway or swaylock[2] crashes, and
> that the computer is left unattended (for a short moment), it would
> then leave a shell open for potential attackers.

Don’t know about display managers, but I have been using `exec sway`
(previously `exec startx`) to avoid exposing a shell if sway crashes.

> [2]To launch swaylock I simply copied swaylock to ./ and I used chmod
>    and chown to set ./swaylock setuid root, and then it would work fine.

I add swaylock to setuid-programs in config.scm, which seems to work OK:

    (setuid-programs
     (cons*
      (setuid-program (program (file-append swaylock "/bin/swaylock")))
      %setuid-programs))


      parent reply	other threads:[~2022-06-24 18:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24 16:21 Launching sway from sddm Denis 'GNUtoo' Carikli
2022-06-24 17:03 ` (
2022-06-25 22:54   ` Denis 'GNUtoo' Carikli
2022-06-25 23:29     ` Denis 'GNUtoo' Carikli
2022-06-24 18:56 ` Timotej Lazar [this message]

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=878rpl6gaz.fsf@araneo.si \
    --to=timotej.lazar@araneo.si \
    --cc=GNUtoo@cyberdimension.org \
    --cc=help-guix@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.
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).