From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 75ztGrPHImGB9gAAgWs5BA (envelope-from ) for ; Sun, 22 Aug 2021 23:54:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QHj/FbPHImFNJwAAB5/wlQ (envelope-from ) for ; Sun, 22 Aug 2021 21:54:59 +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 2D2422479E for ; Sun, 22 Aug 2021 23:54:59 +0200 (CEST) Received: from localhost ([::1]:53748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvQf-0002JZ-QF for larch@yhetil.org; Sun, 22 Aug 2021 17:54:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHvNr-0007uF-VQ for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56631) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHvNr-0002vq-OL for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHvNr-0007dv-Mq for guix-patches@gnu.org; Sun, 22 Aug 2021 17:52:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v5 04/10] gnu: admin: Add greetd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 Aug 2021 21:52:03 +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.162966907829257 (code B ref 49969); Sun, 22 Aug 2021 21:52:03 +0000 Received: (at 49969) by debbugs.gnu.org; 22 Aug 2021 21:51:18 +0000 Received: from localhost ([127.0.0.1]:39928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvN8-0007bc-0c for submit@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:18 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:41630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHvMy-0007a2-JQ for 49969@debbugs.gnu.org; Sun, 22 Aug 2021 17:51:09 -0400 Received: by mail-ej1-f53.google.com with SMTP id d11so32656252eja.8 for <49969@debbugs.gnu.org>; Sun, 22 Aug 2021 14:51:08 -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=VB+zCSmnI6JPNNd+dmQ7nv1CAeu5yk6+FSBxIyafSxw=; b=y53qC9p+2GugUNpQZ1KPJ2T4kFLH5+RlsHbNr+YHUfAAzkXFGHKMKvdqF7T9yGvRK4 jCzNDqKINSqszNyaDtwaRFUibYYaIf4wJrKsEPIR/RRQlTBlxpvSn0p9NWFoLZptuFGB qoiUgRdCz/e3Z661bvxX4TIEXXeg1/JaQG8DvpRHm40R4Oi4Pk6o4uLH1bc3TktC/Ucw wbMmDjzSfLTW/ZHpkRh5NjN3HZry9TRzt04c/tW664W9/+yFG2FSTRhFEWnPulYROrCH daJNrPZeyeu6zVy6567u5rGcauZiEjBmHTf1Rsr2Re7roeoiutU2kQBfq90AvgUDHsOU hGfw== 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=VB+zCSmnI6JPNNd+dmQ7nv1CAeu5yk6+FSBxIyafSxw=; b=qhR1yn1WSce9uDDNyn+DfO5XIvQIzKWbROReQhurbVVrUT+K2+sPHcaX2dXi5N9B28 ur9F0BVUB9t+W8b4NdQP3pzlOrBkorr6K3utXA11HXhJ2l8CTRgbBWbniVn4752yi71D KvIa/y0h1Ab3slPD6d7yLaccQLnSrrbwt6BGMoV8NJP5dGvvUlZGfEwhDu/2yVXG80yw 4VARGY3HpDL96347wEsG/ylZhPiMU9bt3lZhMmW7+aGJjn6jTABkyaEm1Fny0+8nkKG5 opuIOWbVWjwX6tuAUoKJhAzQVSAwYBSThPHUd9sSwBnoZaSYBZ36sokvJwQGnOGC2Mq1 S9+Q== X-Gm-Message-State: AOAM5328YiWA7RI5oa+XyBlQcQzo2tiaREaHfGwJVQiTzZYogH5SLacS 23ykYYVpFup2oShgm9W+7ScJEP30hl5wVg== X-Google-Smtp-Source: ABdhPJzXI8BpsFmSEhYo4WnvNP5n9AMboQJk5MsCyUD6WkF+JIUz/8+1trTn93yVA/6j2WcGImUBqw== X-Received: by 2002:a17:906:85d0:: with SMTP id i16mr32870455ejy.552.1629669062644; Sun, 22 Aug 2021 14:51:02 -0700 (PDT) Received: from localhost.localdomain ([31.142.76.217]) by smtp.gmail.com with ESMTPSA id q5sm7959755edt.50.2021.08.22.14.51.01 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 14:51:02 -0700 (PDT) From: muradm Date: Mon, 23 Aug 2021 00:50:42 +0300 Message-Id: <20210822215048.20480-5-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210822215048.20480-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> <20210822215048.20480-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=1629669299; 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=VB+zCSmnI6JPNNd+dmQ7nv1CAeu5yk6+FSBxIyafSxw=; b=BmznV3qpQCYFxJieHB1EoWRmaQuQQ7Bg+m4gsLKmyRXfvJPfihmT3vgJxQAT0iB6S3dOVV rY1cYVvcVcKDbtGwKlFTDHirNzALqXK9SupygKt1nGiNDAcAb5CqkMOwSbq2kLVgrooQYv MYnu4S8LTWnY8rHH8NKO32pXsr/RNaZVjpLVsgs/CAR3G8P04TgrM+Sxg0073OpAg/eHsg DzLzAXtJ9aWEvyEYyyxGBlDgOa99mm1aaUwlHttpXxGNiux7Ar6+cEZw9ELt2xllNGyWRh doXYZq+KNZqGIgWSRUAex2jWx0cCRQ9T5gd3nCYyeRyv/2a2ZxeyHu/yfZcPQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629669299; a=rsa-sha256; cv=none; b=ri+eSmynL8f4eTd4j8MM5mOXg2JsRuqwQApggmevkGuEUkxWeEFfCuH4F1UEPbiVdVZ2nf rmZeJAuujJmyzlOrJMe8iA08bNNthyVfOmF8ZGbVZoWUQu8OF0JZimsoMtdjqNdMRICNnV Hu7TMDK5FY+3ppThuHrGdnyt57k2TvpVhvzT6gp7hGR07EuLRY3nUFFhbVGDAhgs4eTPkX 0uj4Eg1LJIE8HD+9oGe8Q4XTPjhm6xeyzpDc7svo+tDcBObG6slqVswi/dbcd+cqKHUz47 ZLHYAjq65qxJQ8y8qe7urW/51Sv5U8JQDqdkiJVch2Ry7Yb0cyqbZ5tFGSC0eg== 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=y53qC9p+; 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.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=y53qC9p+; 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: 2D2422479E X-Spam-Score: -0.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: iksHt1mJWZZ8 * 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 007f15f9f5..c9bfe0b667 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