From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gHQBKPHUgWQH3AAASxT56A (envelope-from ) for ; Thu, 08 Jun 2023 15:17:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YOOpJvHUgWTVTwEAG6o9tA (envelope-from ) for ; Thu, 08 Jun 2023 15:17:37 +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 59FD63821B for ; Thu, 8 Jun 2023 15:17:37 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7FW0-0002zj-Eh; Thu, 08 Jun 2023 09:17:24 -0400 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 1q77Ie-0006nO-5L for guix-patches@gnu.org; Thu, 08 Jun 2023 00:31:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q77Id-0000Pp-TR for guix-patches@gnu.org; Thu, 08 Jun 2023 00:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q77Id-0007kk-O7 for guix-patches@gnu.org; Thu, 08 Jun 2023 00:31:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63955] [PATCH 0/5] Add pam-gnupg support for Greetd Resent-From: wurt@wurtshell.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Jun 2023 04:31:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63955 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63955@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168619865929749 (code B ref -1); Thu, 08 Jun 2023 04:31:03 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jun 2023 04:30:59 +0000 Received: from localhost ([127.0.0.1]:55357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q77IY-0007jg-BP for submit@debbugs.gnu.org; Thu, 08 Jun 2023 00:30:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:48078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6wjN-0007ma-LU for submit@debbugs.gnu.org; Wed, 07 Jun 2023 13:13:59 -0400 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 1q6wjN-0008Cb-CE for guix-patches@gnu.org; Wed, 07 Jun 2023 13:13:57 -0400 Received: from mail.wurtshell.com ([141.94.77.195] helo=wurtshell.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6wjL-0005lf-ID for guix-patches@gnu.org; Wed, 07 Jun 2023 13:13:57 -0400 Received: from localhost.localdomain (unknown [IPv6:2a0c:5a80:8000:bb00:e206:e6ff:fe9a:ab42]) by wurtshell.com (Postfix) with ESMTPSA id A04ED60AEB for ; Wed, 7 Jun 2023 17:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wurtshell.com; s=mail; t=1686158033; bh=/hdg9hBvQ6zHEA5FMzovQVynS8Oz11EvbjhmFaGbU4Q=; h=From:To:Subject:Date:From; b=jHC2fLY/DRb1S8xBELxvfNVKbYQQMVqT3st8Ps2VoNC8Y9D9eROpOritLO6gXD8KJ J+zGGpiFDqzc9+OH1OMnzV0uxXwxoOy1sZ2xd4Xn3WX5i6VvjhErXz/jFWN9WHDuIr PKMurdpoT8F5/yNfV3jx+1WBt9arxudZRl3K6UuDeihc3FxBt7LeZ1HdIbqkTXAHHA 6/AXcuuQrv/ZIoZ7aNiG2/bbXu9chKJMVsMspyAc18oIa4UmfRSOm+aHvi5liwZ6IB uFfUUVs7xxittrU+EB+xLirziXBZaAkLIq36GNDxuts0VnIi1lxSRUexQ9biVnpmsu kVE94PPP5Ahmg== Date: Wed, 7 Jun 2023 19:13:53 +0200 Message-Id: <20230607171353.8445-1-wurt@wurtshell.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=141.94.77.195; envelope-from=wurt@wurtshell.com; helo=wurtshell.com 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-Mailman-Approved-At: Thu, 08 Jun 2023 00:30:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 08 Jun 2023 09:17:10 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: wurt@wurtshell.com X-ACL-Warn: , wurt--- via Guix-patches From: wurt--- via Guix-patches via 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686230257; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qqUIR3oD2a05TWUkCBzNcOnxdSQ8/qvw20FIiOa4/TA=; b=izJdpca8DYdgdL9kn4UUjPmg6uMz043cTV1aspelaWSwLYn/fjsPy+FMf2CK91uJtwHCCy RTfH76fOX9Gxe+SCr5Fh1ZMqUScLHEZddpZ4SYr1Nmo/ucvLwc2L4TT9TIeaBcHsPDw48E 7HoLDkBVcQecAdq9PwfLzrD2SroURCLxly0KtbA7SuA545iSRsxziYQWvj3GpDBcnMxgq3 9SK+0LZ4Z2go5TXrvcR0b314PJP4n1aUGoDznkzdKxe487/ByUkMxlI3Emm5B5wULUrlU4 2QOr0zXEODOMw+C/YnQvOB5JdmR7tlTTsH7qV7zuLEx41ESzDr8hmeHRX3blwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wurtshell.com header.s=mail header.b="jHC2fLY/"; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686230257; a=rsa-sha256; cv=none; b=tV9ej68C9gUcAqW7ou+Q/lHKIa1sJEfG/ugVy0erbRT8vpcL45An6jnjtgba2b4x5UYKgF mwGTRNMi0/w57ZRphfaJfEVfRDS3c//czdK5Qleyhh/h+Mv3uPVMkW38nzX4ttsEAHtv7B NjMSh+b1W4mW7OpqPOdMbeDuWXoHo3IzROkBya1DSc2xq3Sy9Ku6ySxRHi3BZTkrP1ejdI elOfaFvuDS7sVTvDRbTIwXUT5dkxb4sD5zmVnPvi6pxsgtlJdH2lMxtCCbowN25B+Fqug6 pK5uiWgwbuPGE/N+WLJKqwn2EGKn9GlKMWGXKUg4qQ3qTfEfHBE9PIRDuL9Q2g== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wurtshell.com header.s=mail header.b="jHC2fLY/"; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 59FD63821B X-Spam-Score: -3.90 X-TUID: ZGFDciW1/0Oo Hi! This series of patches permits to pass your login password to gpg-agent, starting the daemon at login. The needed PAM modules need to come after all PAM modules including pam-mount. So I change a gnu/services/pam-mount.scm to ensure this requisite. Maybe pam-gnupg should be an independent service that transforms all PAM login files (greetd, slim, login, gdm, etc) at the end, but I think that unix-pam-service has the #:gnupg? argument for a reason, so I did not change it. I create a new function on guix/utils.scm that insert a list right before the first element that verify a predicate, maybe is wrong to create a new utility procedure or naming insert-before instead of append-before. I am a newbie using Guile and Guix, so I am probably making mistakes. Carlos Durán Domínguez (5): utils: Add insert-before. system: pam: Add pam-gnupg-module?. services: pam-mount: Fix pam-gnupg incompatibility. services: greetd: Add pam-gnupg support. system: pam: Fix unix pam module order. doc/guix.texi | 9 +++++++ gnu/services/base.scm | 48 ++++++++++++++++++++++---------------- gnu/services/pam-mount.scm | 12 ++++++---- gnu/system/pam.scm | 14 ++++++++--- guix/utils.scm | 18 +++++++++++++- 5 files changed, 73 insertions(+), 28 deletions(-) base-commit: e8f9fb3e03ea8fee0e13f13706a6b16414f74a7b -- 2.40.1