From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id pLuzAgowFGERkAAAgWs5BA (envelope-from ) for ; Wed, 11 Aug 2021 22:16:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kH6FOQkwFGEIZwAA1q6Kng (envelope-from ) for ; Wed, 11 Aug 2021 20:16:09 +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 224E21289C for ; Wed, 11 Aug 2021 22:16:09 +0200 (CEST) Received: from localhost ([::1]:51960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDudz-0005DA-R9 for larch@yhetil.org; Wed, 11 Aug 2021 16:16:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDudv-0005Cw-1C for guix-patches@gnu.org; Wed, 11 Aug 2021 16:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDudt-0004jX-S9 for guix-patches@gnu.org; Wed, 11 Aug 2021 16:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDudt-0002fX-OR for guix-patches@gnu.org; Wed, 11 Aug 2021 16:16:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 4/7] gnu: admin: Add greetd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 20:16:01 +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: Xinglu Chen Cc: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.16287129559887 (code B ref 49969); Wed, 11 Aug 2021 20:16:01 +0000 Received: (at 49969) by debbugs.gnu.org; 11 Aug 2021 20:15:55 +0000 Received: from localhost ([127.0.0.1]:36706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDudj-0002VR-JR for submit@debbugs.gnu.org; Wed, 11 Aug 2021 16:15:55 -0400 Received: from mail-ej1-f45.google.com ([209.85.218.45]:39451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDudg-0002O0-M5 for 49969@debbugs.gnu.org; Wed, 11 Aug 2021 16:15:50 -0400 Received: by mail-ej1-f45.google.com with SMTP id go31so6677826ejc.6 for <49969@debbugs.gnu.org>; Wed, 11 Aug 2021 13:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=sumltW8gSHKURlHK2kAu5i3GSNa9OgwOKfbQ0SKHGCg=; b=XXgyusNI5gJbYNH9sG+/gChYj+aOzg8r+PYcQKmmjfRyv7uxGBvQ/hpGrPvXyUdIpL 9U/ewl3kBJPkPfLrz58XtZVXVFCwOCEwJUTGIC7e5dmWohT0hRzeHDQ6241rJT8xOTK3 7rylOAvn0ZMv592tAoBlf9ojbtXW99fEafr6qLY720uo4WV4bz6wEhTiwqRkGZlkgL2g juhGNXQAXnfc4537ikOdbvEZ7rVcYaFZvMqLf1xf0vb1/yzdcJARR8GvXvaZUvFAmj7U T/oHrl3bKWLdx8fJJ7EbJOTkK7TsWPaMwWMyiGjcpbbXP3u5/VH96ehb5Q6OTORavS5E QNTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=sumltW8gSHKURlHK2kAu5i3GSNa9OgwOKfbQ0SKHGCg=; b=Pv2rQZ93N8zw/DZR5EwAgo2+8dos5fspo3Euc5tSPMnyRkYzfMKGn9MBFPFTe9f+lK d3r7SVmrAd3PFrO7Yr06CfMAsFkiv0kJ8vHrXbBqQ0CAJtzolv+Lkt5XqETLXde//0ZN uzCS+1qsbF6Gj+q77ARO8GqblemM51X+ZOLfVOZQyNujPuM27SPB9JmC6NeEvKHuBAt0 9zeOggcHB1F4EIbGfDJv6my09HzPOexI6VezXjQtB2hpE5ummVDAlmj8aWJqoxniM9iP PEpAV5npN06LRQgGvsVfzIiQ5ulgfopfUFwrXpdqVM/J4T9luOKzUCyKdvw1+WeLp+A1 0Lcg== X-Gm-Message-State: AOAM532Uxx72YNwpIkk0PUgbhrhRoQP9EoHI24qQKLJSva/8ecgqP6kt 4SVXA49Bryx31yxa9lb5lo/bXxeQ+HdW+w== X-Google-Smtp-Source: ABdhPJyUIXGJ7UC+sCFTblhuj7EUXqZrwHKUptWzUz+WJMZFLFR78n4gCGFyWt50bEqi9nX9XKGvFA== X-Received: by 2002:a17:906:6b1b:: with SMTP id q27mr252049ejr.169.1628712942660; Wed, 11 Aug 2021 13:15:42 -0700 (PDT) Received: from nomad-lp1 ([31.142.104.228]) by smtp.gmail.com with ESMTPSA id dh8sm130829edb.14.2021.08.11.13.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 13:15:42 -0700 (PDT) References: <20210810193626.9186-1-mail@muradm.net> <20210810200756.9581-4-mail@muradm.net> <87fsvg1akn.fsf@yoctocell.xyz> User-agent: mu4e 1.4.15; emacs 28.0.50 From: muradm In-reply-to: <87fsvg1akn.fsf@yoctocell.xyz> Date: Wed, 11 Aug 2021 23:15:39 +0300 Message-ID: <87h7fv68lw.fsf@muradm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable 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=1628712969; 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: content-transfer-encoding:content-transfer-encoding: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=sumltW8gSHKURlHK2kAu5i3GSNa9OgwOKfbQ0SKHGCg=; b=tnBVAVcaWUxXjnqAjnfePNWh0Xtxb3iEBTgedgSC6zzWIsdEKDROfiMzdTSBaZ0PCtsz4b n5jBzAO3tjs0EUjqe1QE1jzwKPMTRvdDmd6bgjxs5UQLRwCFs9PhEnT/Zas1W2O/IArms2 JQ6hNQjLkd0Mml6JB+V+6jofPXcral94X/6A8baXzGfpd3GnMdWDwtk3iQ06F4vobnHXXo PAo2QzLmgzARn4m7AqQgRi3i2h45a9bVr33rrcSRWP0zqDSCqFJdWd+G88Yp2t37SR9cch 698+cjgMmFCUl9Ya1ONSVIQ1t/bykiNaI9CneHGyDMmorMzkCIviy9JMWCfz5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628712969; a=rsa-sha256; cv=none; b=n2/U41r77QWfHw+PZaaquqJI++3cBGfJ/RUFQ7+G4FXRlChQ/uP79wue4OLOEFgRUhbHnL P1fawAaw4Jpu/1WM+GXAjjhrobE7pC0XZGgjQ5y1IXMfCWOxNBp6mmc03PgHpidqkTK0iJ 3yCJbUdNGuP/UlAKvxiDE+5vbbHireGt8GcSDPA7dgbuJLcwcq96HDDnGaZXHpdLvs+DXp iEld5SlGv4AkGOd0F7JfdXiElPtghpyKlQ0VPa25N79YTerizwOsSj2L04R4nNZu7+Thdz PZfBoUNPF5p+tXMlpBOvqNa4FVkqTV7y4j2NbO923uXgcgaLa7IfwBCts3jeUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=XXgyusNI; 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: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=XXgyusNI; dmarc=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: 224E21289C X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: dEUk+OEgHf+l Noted for next update, thanks Xinglu Chen writes: > 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=20 > too. :-) > >> * gnu/packages/admin.scm (greetd-pam-mount): Add=20 >> 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=20 >> >> ;;; 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=20 >> LUKS volumes using the password >> supplied by the user when logging in.") >> (license (list license:gpl2+ license:lgpl2.1+)))) >> >> +(define-public greetd-pam-mount >> + (package >> + (inherit pam-mount) >> + (name "greetd-pam-mount") >> + (arguments >> + (substitute-keyword-arguments (package-arguments=20 >> 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=20 >> \"/etc/security/greetd_pam_mount.conf.xml\"\n") >> + (("pam_mount_config")=20 >> "greetd_pam_mount_config") >> + (("pam_mount_system_authtok")=20 >> "greetd_pam_mount_system_authtok")))))))) >> + (synopsis "pam-mount specifically compiled for use with=20 >> greetd"))) > > The description should also be updated.