From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CTeDG3S1E2FHLgEAgWs5BA (envelope-from ) for ; Wed, 11 Aug 2021 13:33:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ID1kFnS1E2ExLAAAbx9fmQ (envelope-from ) for ; Wed, 11 Aug 2021 11:33:08 +0000 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 5728D2F08C for ; Wed, 11 Aug 2021 13:33:07 +0200 (CEST) Received: from localhost ([::1]:52972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDmTq-0007bC-BO for larch@yhetil.org; Wed, 11 Aug 2021 07:33:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDmTm-0007ZX-Ee for guix-patches@gnu.org; Wed, 11 Aug 2021 07:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDmTm-0003Rq-7G for guix-patches@gnu.org; Wed, 11 Aug 2021 07:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDmTm-0005Mz-45 for guix-patches@gnu.org; Wed, 11 Aug 2021 07:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 4/7] gnu: admin: Add greetd-pam-mount Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 11:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49969 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: muradm , 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.162868153919118 (code B ref 49969); Wed, 11 Aug 2021 11:33:02 +0000 Received: (at 49969) by debbugs.gnu.org; 11 Aug 2021 11:32:19 +0000 Received: from localhost ([127.0.0.1]:33611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmT4-0004y1-SP for submit@debbugs.gnu.org; Wed, 11 Aug 2021 07:32:19 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:54788 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmT2-0004u2-Ox for 49969@debbugs.gnu.org; Wed, 11 Aug 2021 07:32:17 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1628681529; bh=yZDjuFgxmiTc+q4oKXvrF/0VhgAnvZGDtp880aR+4ew=; h=From:To:Subject:In-Reply-To:References:Date; b=MB6VMAiyBA3bUcSStcEb3CrCJHkyeXGij3D5z/+uY/RJiRcyJlpiSQ5DU9WOawD0o 3gSpTnxoXHMVDMpPjcN/Tscz82SzQxS/REAz3/rK4PQbTnsJAfFUP/aznKnqBm3yWP lVYCgrY10aBM0XqLdaVAshWQvj0qBXeeSn41KsCo= In-Reply-To: <20210810200756.9581-4-mail@muradm.net> References: <20210810193626.9186-1-mail@muradm.net> <20210810200756.9581-4-mail@muradm.net> Date: Wed, 11 Aug 2021 13:32:08 +0200 Message-ID: <87fsvg1akn.fsf@yoctocell.xyz> 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628681587; 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: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=Sy0Uoxa4VYDoqX8fjjsSspCS8FMGskJ/DHKXmqSN2V0=; b=jhXPJdHf598I8qzHjtBp6OvsmpIybtSDfkI6sbAJskxmfWzW+QirYziyR+fbawhHN6S41/ I1niW3Xtsmv7IvtisvqcIlPCfd/z1RYI+SaB81jvyQuz1F/cudl10LR4vNEXCrBrNpnzKY FFuFI6tUszCEe5nFBuW6nC7h3DCGTjEiQlpRAF29mJP0s6YSA8aofiKVZcFm8wPQ2eVsHE bdA9i/5L1qVbei5WIBzou+vGad3Dghoo6jKcsM4JAlQdLRDl62MNNDIxOB3p12LNiK2Yhx nc3e8zpfGJqg/U5PgYp4DhmCyAI+Gojin77g2/Qfwlpj1MkKODNA5sOmLIhUdw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628681587; a=rsa-sha256; cv=none; b=e3GIPXC7LWhKE7UqerfilZpHvOhKSwZ4AKOBpUbgxhqLeXlIuhU3jOObkjwSExi4SkHOGa LomtcUJ12oPxJ6Z9x8V4DaKXZYf1xKn0DvtPWWBUqbEgOfVvHnZG79LMB4/+beAnimTlHq 1PbmfjU/N/xw30vxf4FNmhieP6U20c4elptmdeC/EpYtXNwyuqS4g2/nHGLm+/CK6Q/ZYp n4UNZ1wC8NXh5608UF7/mjnf8cd0HeOlQvS3UWVGfISCntEApJS+bJlA37FxMTrY3b8kCC 8orTrbAY5fccebpwyR9EWV8zndTbrGvG/J6bLe9/egnuiZPncPEyyipyfxNGqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=MB6VMAiy; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=MB6VMAiy; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5728D2F08C X-Spam-Score: -3.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: kjNyyX4CzkLG --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Aug 10 2021, muradm wrote: > This package inherits pam-mount in the way that it is compiled > specifically for use with greetd daemon. It uses different > configuration location and name space for storing data in PAM. > > greetd-pam-mount is used in configuration of greetd to provide > auto-(mounting/unmounting) of XDG_RUNTIME_DIR in the way that > it will not interfere with default pam-mount configuration. It might be a good idea to put this in a comment in the code too. :-) > * gnu/packages/admin.scm (greetd-pam-mount): Add greetd-pam-mount > --- > gnu/packages/admin.scm | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm > index eda269f148..e805b219c5 100644 > --- a/gnu/packages/admin.scm > +++ b/gnu/packages/admin.scm > @@ -42,6 +42,7 @@ > ;;; Copyright =C2=A9 2021 David Larsson > ;;; Copyright =C2=A9 2021 WinterHound > ;;; Copyright =C2=A9 2021 Brice Waegeneire > +;;; Copyright =C2=A9 2021 muradm > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -4247,6 +4248,25 @@ supports. It can also mount encrypted LUKS volume= s using the password > supplied by the user when logging in.") > (license (list license:gpl2+ license:lgpl2.1+)))) >=20=20 > +(define-public greetd-pam-mount > + (package > + (inherit pam-mount) > + (name "greetd-pam-mount") > + (arguments > + (substitute-keyword-arguments (package-arguments pam-mount) > + ((#:configure-flags flags ''()) > + `(cons* "--with-rundir=3D/run/greetd" ,flags)) > + ((#:phases phases) > + `(modify-phases ,phases > + (add-after 'unpack 'patch-config-file-name > + (lambda* (#:key inputs #:allow-other-keys) > + (substitute* "src/pam_mount.c" > + ((".*define CONFIGFILE .*$") > + "#define CONFIGFILE \"/etc/security/greetd_pam_mount.c= onf.xml\"\n") > + (("pam_mount_config") "greetd_pam_mount_config") > + (("pam_mount_system_authtok") "greetd_pam_mount_system_= authtok")))))))) > + (synopsis "pam-mount specifically compiled for use with greetd"))) The description should also be updated. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmETtTgVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5jCoP/ApifqyH998ZCkKAtzBckcr1aPC3 W9R9Z2+GuDtZerAQ2/ab2H3kaHEIpThK+vWxq7DY1OeiOuiaTeon7ZZ9PADoIYN6 2Zto/OFhiL+4+WXD9uYkCdp9rVW3QnN05inrnlGcjNg/tqH80dzeQJgSlyGkbEKu NicD/PutIr1nGFrQVxNtk5cBKfsCkzMI0eJ1bYrCP96xHRAACKl1k8wjk0USvxpn u7eZldVkVDj/WXuGTIWh63kkqIf5LBOVkPXcMp5ehX0+XMuuFIsjKONy2QJL3IlR bmdAt5TvcGA0JpwMBBIAJ2bPfEjwSWf5mpKZAxX4yKRld/VH54vmr/ByK6SRqo7t bv0tGDeo8pQDTZFX3tANAx9AgblwjXkVl6wv3/EdP1ItJZXEbshweIa0FzJPxkJJ 7/7g7HXf+MTP2iwNiiFvkeHNt3e96V9YVbc47Ap1uggt6zHML+JK6DylJek7SIjO mAS7QsBVyZm4s4Oz7B7/jg+TiIyL6n8YqRvGenqZsFmlrGya0QGXJ82cggwioQ+B ZFGtnayd8f/FbQPYyqmRGJZ8puKvaqDES/4uQXabVbcsbwSbETTcaLCxASHPrFwO DKFGijpylXVP06AuRypIKh/pZIevgoGJO5Sr783CnTSLZpTwlcFPiHpEqTvcMOaZ ojRfnKaTDtsg+FtY =4rXY -----END PGP SIGNATURE----- --=-=-=--