From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OA60NymbFWEtLAAAgWs5BA (envelope-from ) for ; Fri, 13 Aug 2021 00:05:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SHgvMymbFWH9RQAA1q6Kng (envelope-from ) for ; Thu, 12 Aug 2021 22:05:29 +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 A68BC21170 for ; Fri, 13 Aug 2021 00:05:29 +0200 (CEST) Received: from localhost ([::1]:43456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEIpM-0001AY-IM for larch@yhetil.org; Thu, 12 Aug 2021 18:05:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEIoy-0000Tw-ST for guix-patches@gnu.org; Thu, 12 Aug 2021 18:05:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEIoy-00068Y-Ke for guix-patches@gnu.org; Thu, 12 Aug 2021 18:05:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEIoy-0002wE-Eu for guix-patches@gnu.org; Thu, 12 Aug 2021 18:05:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v3 04/10] gnu: admin: Add greetd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Aug 2021 22:05:04 +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: 49969@debbugs.gnu.org Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.162880588811141 (code B ref 49969); Thu, 12 Aug 2021 22:05:04 +0000 Received: (at 49969) by debbugs.gnu.org; 12 Aug 2021 22:04:48 +0000 Received: from localhost ([127.0.0.1]:40040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEIoh-0002tX-Nf for submit@debbugs.gnu.org; Thu, 12 Aug 2021 18:04:47 -0400 Received: from mail-ej1-f54.google.com ([209.85.218.54]:35613) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEIoY-0002sF-Mc for 49969@debbugs.gnu.org; Thu, 12 Aug 2021 18:04:39 -0400 Received: by mail-ej1-f54.google.com with SMTP id w5so14469138ejq.2 for <49969@debbugs.gnu.org>; Thu, 12 Aug 2021 15:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=pK0Xo5knw/WPuOhCSupK0HXcx0+IBEMDHq9i6ENLVnA=; b=oyxcmQjVoC8Y1emVariCYvIkxXVaUtoa4Lh00LN/vRDZUvzJzYLsZxSm32CvrIZBwu LnXadNF2sIjTUi1xD1wle0lNvbV1mI1E0YZwBbWb8y5AB3k9IqUz7seRXZ5PCHUBZYi8 S/j6PAfw3iADfMW050MXWr7i094iJOAzXcyPo8Jm41csUI3bDRtpIgMXVWFY1c03Snzh hIKqP5IVjPEseffh0g3S3TznIeS2rc6eaEDF6zooVU4pTZ5zMdsIV6FOU3fhut9rk3rX hgvm93gPXYlRMB6o2tngl/KASSrpDafJW3Az/wn4d1HbH37mxqxjRzZG0kGOPZJ2n1Jx U9XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pK0Xo5knw/WPuOhCSupK0HXcx0+IBEMDHq9i6ENLVnA=; b=o5BmVZG+zNVLUgi4XvZLYGs+O/Y80ddO6WUflbjIUzG2GEfd6jGqQGr/8fZMCv6zeD xlMiCEDz7qiu5z2dSjPV2rPb5egJ96/6r/0vI3kB2TK76gYwothEFXyNcejAr7aBEwY9 ogG7ahrwQBUcRxZJ7v7Mds/SQ8DvIrUgxjIi+IoA0xh+/0LHZ0D4Xv23EjgFFlt5t3rM Ieg/wNPy+7cwQme3gEydMvMUOEaDP1wIX3LeseJc8YJkysxc0w3QAa4ak1GLzYH7yWzE BeGVAGchTnxvfYD66TCh5lizznwUeKvmKalgIRRNMQegqUyEPeAMNHNLmCLll/uIhCuo Q9yA== X-Gm-Message-State: AOAM532MMXVSAYo5AxhTGL4DowN6tf39q6agyQhSQQVEpbuyK5q81ok0 prblpXRjgVVD/t9Oyu7ttMqHQKV9J2KcxA== X-Google-Smtp-Source: ABdhPJw2/YyrBWwx1tyrMHBuX75eg3AX9aE5FzcS/XT0clZ0ekX3p7i8cLkudNV22WW0KDy9lRnm6Q== X-Received: by 2002:a17:906:3bc3:: with SMTP id v3mr5680499ejf.482.1628805872808; Thu, 12 Aug 2021 15:04:32 -0700 (PDT) Received: from localhost.localdomain ([5.24.104.153]) by smtp.gmail.com with ESMTPSA id o23sm1750302eds.75.2021.08.12.15.04.31 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 15:04:32 -0700 (PDT) From: muradm Date: Fri, 13 Aug 2021 01:04:14 +0300 Message-Id: <20210812220420.24118-5-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210812220022.24025-1-mail@muradm.net> References: <20210812220022.24025-1-mail@muradm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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=1628805929; 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: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=pK0Xo5knw/WPuOhCSupK0HXcx0+IBEMDHq9i6ENLVnA=; b=hVtxbG+RDHHAHt4v249pnSK86lu+DW5Ns9S0PMjxXJub2wTPRielhXM6LqxD9PlYS/QjPB cLtjfWSgRmRyNBgUmypzxklr5z9mlFBnZHdq/s3wIEiAE99bQUIo/ccJvj3ICayBajFdKG opSnGblXjxOLaYk0jnZVsl3k1+pjhhdUUBVyeKAj57J0KqhI1Uw9wDH2KNeMFGM4LLHaEO an1w928uqCr5Bi038HIoXlmDsAfYJ3mCjCRLczSbgd3XyJtcS/6aTDOs2eazfuCTj1Rc7i MoqXNgPtj5h5PuirhwByvx1312//g7J/sckxNgVmZSlA2E2NjbvZPWW0K0BW2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628805929; a=rsa-sha256; cv=none; b=YyRb8K3OHCU3eZe7RNCsiYXaeSo8C5oUk/8q8vPNBfBz1Zpgyzg5QkF25PwZ1rtqy9BJnt DmFLGAWKjr+mQDTEmg2TQ4eCwdd5iubpzo+lYhs7L3NpDUaLAe/YzqWyomRHLmv9tm9wJP V05lyuThwvb6Upd7uH7TGTFSfKE3J8+HQ5Vl2DPxPQRbtgiEV5CIme+D5YkGGWzbF4qkWb 9B2cBpE5HFr5DVQUBcoeuBYhyBzGPMRzgShgjrIqQ2GaYVUu42UN/NZmor4QWcG+UcTL6v W7qgE+QwQoR7BpI1qzG7MwY6H6uUu7YnxkZsiLGklug0Zl88s2hzYKLxg4j1Lg== 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=oyxcmQjV; 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: -0.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=oyxcmQjV; 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: A68BC21170 X-Spam-Score: -0.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: qX8DHX0MTpM4 * gnu/packages/admin.scm (greetd-pam-mount): Add greetd-pam-mount --- gnu/packages/admin.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index eda269f148..e5ed1785d8 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2021 David Larsson ;;; Copyright © 2021 WinterHound ;;; Copyright © 2021 Brice Waegeneire +;;; Copyright © 2021 muradm ;;; ;;; This file is part of GNU Guix. ;;; @@ -4247,6 +4248,38 @@ supports. It can also mount encrypted 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 pam-mount) + ((#:configure-flags flags ''()) + `(cons* "--with-rundir=/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.conf.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") + (description + "Pam-mount is a PAM module that can mount volumes when a user logs in. +It supports mounting local filesystems of any kind the normal mount utility +supports. It can also mount encrypted LUKS volumes using the password +supplied by the user when logging in. + +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."))) + (define-public jc (package (name "jc") -- 2.32.0