From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kJXgA3FOeWe/6wAAe85BDQ:P1 (envelope-from ) for ; Sat, 04 Jan 2025 15:06:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kJXgA3FOeWe/6wAAe85BDQ (envelope-from ) for ; Sat, 04 Jan 2025 16:06:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=mvZ9W4iH; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=NUVzax+4; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=muradm.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736003184; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=6hVGgPUWIpzTqbDZmA1Qyf+TDNdpSZ6wdPo6uRN+kxQ=; b=GOmifqNB9BwMme1fvp/S8TPWJHxWkNHSI6r+oVUIAJf4mNLZXZHIbn4jdb2UpWMQcvMFmY T67MI5RbCwXd4/Ze0Lc5OdglJFywsBYmORfkJ2eFK8HzCmg2zri+RPnYIQsUyVjKiWdcST xe2++qalxr8tq59n0tdSbkAOFIJSLuTsn+IGI3dT9XrGPXJGJpHVfijnFMRchu64QG3ikj mcIgl70sEw3ByRECW2uHG5d/7xHRoUTe3U0KWDC776JSso5GhKLX+3ARpySmXTJAleZC0O Kb7kr6ExstpYWCykFhIF2KVxNuNqPPB+6QDI6ddlseiKWrqm+U5dSxzsOUi4Qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=mvZ9W4iH; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=NUVzax+4; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=muradm.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736003184; a=rsa-sha256; cv=none; b=i33dqXDihPCWBmY6UoH2Xxg5ODeEAhIbLQffw0vbRsGHGXVm3wSArSvrEvlG1/YuQZK/Qw loyrYkMkrllBfhl4/h+Vli6O4+j7RYGbrOwoZX4F4gGr8HkrwfnI0tEjOg+PAyUGRW8+Pv Mnrd4tEwdCZEb4v0/qI8UOV4quZmyVhceDy6APcVuGwmwqlrfDWLVPRX8byutMg+H4esJB uISGOUDhIhYz1ndx07y6By9hN63Svrdpzz+nCpchCnswS2tnWEXCciQyqtExukpR0Oim+F mCz+eAfrrR9oE4bzbLI78muOamUQDpQyHPR+Oxf/hjs89cNMcIZKIxiD2Y6Alw== 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 ACFBA1B0CC for ; Sat, 04 Jan 2025 16:06:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU5j7-0003ry-9A; Sat, 04 Jan 2025 10:06:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tU5j1-0003rB-E9 for guix-patches@gnu.org; Sat, 04 Jan 2025 10:06:05 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU5j0-0006bl-OT for guix-patches@gnu.org; Sat, 04 Jan 2025 10:06:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=6hVGgPUWIpzTqbDZmA1Qyf+TDNdpSZ6wdPo6uRN+kxQ=; b=mvZ9W4iHzlvPoNVgbbIIAL5xPz1dAm09+F1I666jpBRXEDSYyzS5l42gPN7I3qf5XZQroE/Qqd3fdPwumNLTRHBMuapeIWzGvIeVkTJlgWf56eLADeyAjKVte2P9+v4L7iyEudeg96UuGIChNjzE9j4vNPuEbGnWZL8N0YHCmrjDWk+IrQHh58jgOvTjB/h6GUjnwHeo8UpyOTx79J8GUpRz49fEBhslqBRpiKprq0QdHsUtoG4Qg/GU0Y+i38qx9p1+LeNh2OlVG49ARWCpVIb2nu5hl8q9ihDjlh9yKqjl0ttqXC2E8txmtrPTJgh18LSUidD4ZwmZvHLd6b9QMg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU5j0-0004tU-JL for guix-patches@gnu.org; Sat, 04 Jan 2025 10:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#70318] [PATCH] Fix unitentional creation of greeter's home directory Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 04 Jan 2025 15:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70318 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Graves Cc: 70318@debbugs.gnu.org, lgcoelho@disroot.org Received: via spool by 70318-submit@debbugs.gnu.org id=B70318.173600316018804 (code B ref 70318); Sat, 04 Jan 2025 15:06:02 +0000 Received: (at 70318) by debbugs.gnu.org; 4 Jan 2025 15:06:00 +0000 Received: from localhost ([127.0.0.1]:56653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU5iy-0004tE-C5 for submit@debbugs.gnu.org; Sat, 04 Jan 2025 10:06:00 -0500 Received: from nomad-cl1.muradm.net ([139.162.159.157]:54644) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU5iw-0004sy-5i for 70318@debbugs.gnu.org; Sat, 04 Jan 2025 10:05:58 -0500 Received: from localhost ([127.0.0.1]:53394) by nomad-cl1.muradm.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1tU5f7-0001rY-03; Sat, 04 Jan 2025 15:02:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=muradm.net; s=mail; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6hVGgPUWIpzTqbDZmA1Qyf+TDNdpSZ6wdPo6uRN+kxQ=; b=NUVzax+4tOtUORiYw3t0qLvHrQ zJFbii90yGSA9ejElfATAbSDO9ErN8g6buMmBp2flA+7Jf9dsYKeInG29e2cQaWxtFGpPjJLPaQ2i oMZd1hKm7PeS5ou+kGOr9rUxXaLZY/PTTUQOk6j298akj6TdMTgze2bDaXastnK5VBoS9goB0H79I u4O6F+0lii0nj3Pouvwtz8hFq+86qnsPPCLh67R5FYD85e2PlOnaQ1G28RUNAQprxhThvENwJ4b6k 3qmhL3wEqqZV4j2IPO8SeyNnoGCzSLNKCX5unF2N/ORyJ7f3Eo8+sBZBaHKuqPBO6/ZQ3RklxBxBm v0mvYkFfWQhQyfASIbob9D7vXNCmM7C2QCXZGJ9sHxFCPlqp1itSjYDlHWROpOo/ESwuxINHbXrpM qid17yP9BXWf7fu8/fwqTV5Izdae7YIzK/mRwZ4MR2kzt0r4vdsjNOvMOlymduzfnFUPAKxsjALpe DgKWiVNW5xly2JQy79czY/1h; Received: from muradm by localhost with local (Exim 4.98) (envelope-from ) id 1tU5in-0000000037n-3vIh; Sat, 04 Jan 2025 18:05:49 +0300 From: muradm In-Reply-To: <87o70mzn9b.fsf@ngraves.fr> (Nicolas Graves's message of "Sat, 04 Jan 2025 15:06:56 +0100") References: <87msg73h8x.fsf@muradm.net> <87o70mzn9b.fsf@ngraves.fr> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Sat, 04 Jan 2025 18:05:49 +0300 Message-ID: <878qrqr54i.fsf@muradm.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.05 X-Spam-Score: -6.05 X-Migadu-Queue-Id: ACFBA1B0CC X-Migadu-Scanner: mx10.migadu.com X-TUID: 0YCEwRRYggq+ --=-=-= Content-Type: text/plain; format=flowed Nicolas Graves writes: > On 2025-01-03 21:05, muradm wrote: > >> This may break greeters which are more complex than agreety. >> For >> instance, gtkgreet/wlgreet run under sway. One of >> subdependencies >> is mesa, which will want to write shader caches somewhere. >> Another >> one is fontconfig, doing similar thing for fonts. There may be >> others, which hard to track and tune. Some could be impossible >> to >> tune at all. > > Then maybe we can make it conditional on agreety? > > If all greetd-configuration-terminals have their > greet-default-session-command being an greetd-agreety-session?, > we could > set it to #f. > > Something like this could work: > (create-home-directory? (not (every greetd-agreety-session? (map > greetd-default-session-command (greetd-configuration-terminals > config))))) > > WDYT? 2 of 3 greeters needs home. With improvements implemented by 75270 `greetd-terminal-configuration` is detached from details of its `default-session-command`. By this, any user can workout its greeter. If we hardcode implementation of greeter in terminal user may loose such flexibility. Also once you implement such condition, you will have to maintain with any other greeter added in the future. One way would be to carry this flag into `greetd-configuration`, IMHO will uneccessarily complicate the things. Is there any good reason for doing that? What is the problem with having home directory for greeter user? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEESPY5lma9A9l5HGLP6M7O0mLOBeIFAmd5Tk0ACgkQ6M7O0mLO BeKjzw//e5AxLqdhWHaCn4z5bwGvbwDh215TPN0o71iepJBY+0oxjAS5Hg7qUtsr wjTIhBYfSYRLGJUxtX2lcr+XMJoZQ8caFGRL+wBSzLxU8Tsf8rqIAbB3dwMIpqlB 8Gh2X3ykhk+flvoQPRTxRyVf4I7U/B97BLdE2ddi/A7WjHxKZIz/CR5C8kJJqK69 pb3AFXEjWKOVsEbilPMymF6H3capYl2LjgphScAioDa9k8osvc8l+XuVtiRj/E9w 6jV2qDg+EkyB1pULvWeoZmrUY1mh4bh+USLA/2wFzElR8fUKaKI5fx5f4+vdtlbO 5g/iFLgDfnUrXGmkK5IQBIweKHW4fuN1X3lAWcZs0GufRZi2n00Xj7fc5WtvM5Sp 5b44dput7vdWvkAwb/QgODDAFALnkpmfuqHQ2OsL2+Wqk4jHsOf41o7sl8Z3Ss29 XdxhSX5Y7mvXMOuR3FNWCe5K5+x8CV7VJVXbXHsxnhhch5z8T7yi/Rsz7aVI2Mu8 MGOZfufhRPQgsJYnyLkARLqmwb2Smn7KuQLyQHf7HImLrBt16B7+pUQlufGANxpW dzemK3m2Os1HrSBTvhfIMjXcEQ/XDYDjrnJk29vMDv1teAD/9W+fmR6BKArp74fo YzNdnJQ61gEHvfUlsH44JDeMQugt2Kf2sGRnar5I5prelEzdQxw= =qp6Y -----END PGP SIGNATURE----- --=-=-=--