From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oK8JARcJtmJ8fAAAbAwnHQ (envelope-from ) for ; Fri, 24 Jun 2022 20:57:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KMrzABcJtmJCfwAAauVa8A (envelope-from ) for ; Fri, 24 Jun 2022 20:57:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 58B961078D for ; Fri, 24 Jun 2022 20:57:26 +0200 (CEST) Received: from localhost ([::1]:40032 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4oUf-0002j3-HY for larch@yhetil.org; Fri, 24 Jun 2022 14:57:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4oUI-0002hY-Fk for help-guix@gnu.org; Fri, 24 Jun 2022 14:57:03 -0400 Received: from araneo.si ([2001:15c0:2110:3400::2]:55376) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4oUG-000618-ET for help-guix@gnu.org; Fri, 24 Jun 2022 14:57:02 -0400 Received: from araneo.si (localhost.lan [127.0.0.1]) by araneo.si (OpenSMTPD) with ESMTP id 960ec096; Fri, 24 Jun 2022 18:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=araneo.si; h=from:to :subject:in-reply-to:references:date:message-id:mime-version :content-type:content-transfer-encoding; s=20180623; bh=vhcuZk7T JutpNIst+KvqkAXGYsU=; b=MawIxvRtfAsu/p4ZAqAVq6q6m/v1Jx4ABSgxsP0X bdF0tH1aFGWN73ukk/ByV07YQlP8EUufgKBnM2I0wSdNd+IxYa7xFQtzzdIXwCfj 3KswJqqnD7oGMqSVjV/IvfCUSOee61k0UBzBKQkWWC89ghwF/JIj7eBXCKtDngbe Kmv8OLo+XqwmqMJeSaDOnakdFLoeQCQK5y/8bsHlYny6QQrnSC9FKL/afq6eEYj6 ekCl6VOMJelCgxnwP4jhX7oQUp81Ja57ypnMmBF0cP/sfCks+667kSQ2F/odE9TT PNfUbFWf5rHzD5x3EYws5LD+AEUi7zqJ3NyKMFTvHvwozA== Received: by araneo.si (OpenSMTPD) with ESMTPSA id 74e40d50 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 24 Jun 2022 18:56:53 +0000 (UTC) From: Timotej Lazar To: Denis 'GNUtoo' Carikli , GUIX Help Subject: Re: Launching sway from sddm In-Reply-To: <20220624182126.2e1deb19@primarylaptop.localdomain> References: <20220624182126.2e1deb19@primarylaptop.localdomain> Date: Fri, 24 Jun 2022 20:56:52 +0200 Message-ID: <878rpl6gaz.fsf@araneo.si> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:15c0:2110:3400::2; envelope-from=timotej.lazar@araneo.si; helo=araneo.si X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656097046; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=BRfXbiCjw3VDXBOmJJHNs07tAv2ovvhOA2fa90IcOQ8=; b=qKluuEfIt7JZF02UBC/oMQiUxi9p536LRLyRNtKV89a47yd95FXN3kQfui0CBC42j7mnAO ft5IB8Wope/gw5hLcL0PnRgHNFZojLISohWWkXXWRI/3ohDeYewc/hNitAMrY9oWsm6M9K XTRahX8WsMEr2otwFtChQKQT/79DFGz1dFvlWDtZSdq4Lfjivunuis9H9HYZbDZnUu6Ezw S9H74jx4KVGX42e8hLRPhMViE8pqOvOg+29vIGFjnXJr9f25PioM3awE0lVE5XkJo6UFDY 3Y4ENpGORo/XESnFWHBMFAozwH35WtkINlUCmU3GzSWdTS8qfSiN71BMAx4cdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656097046; a=rsa-sha256; cv=none; b=TUPARrRICDCY3esXjI91F/2ytU6RzioV4Hof8rq1vuuE3GYyUjm+7OIFuhytaxOGDC5mTO FF+3V5e+tydd1ShELyRZYOscLR3vxuTij0i7+iEkRpLM7U3/201k8xes1wzJVjAwtgPiyf 7t58VAEzGYgBk386pOQOrvhFJvof5fotdyL7tIxajx82ekwHNTbmZt2t26xS0see4ltEVI /gy2AIFMvS7Gu+Sb6lkQcar4RXVGBmee6t0NskDciio/sO6KHrArdIjhSFTp1kjkXNNXrg 7KRHMSy2Sw06HUVMJ46VY5foTsg86JOT4os3dFqY5y/SujUbN6BfmTtkgLqdmg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=araneo.si header.s=20180623 header.b=MawIxvRt; dmarc=pass (policy=none) header.from=araneo.si; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=araneo.si header.s=20180623 header.b=MawIxvRt; dmarc=pass (policy=none) header.from=araneo.si; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 58B961078D X-Spam-Score: -7.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: BQ3/LlOBgMCK Denis 'GNUtoo' Carikli [2022-06-24 18:21:26+020= 0]: > 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=E2=80=99t 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))