From patchwork Sun Aug 22 21:50:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32235 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id F3F1427BC78; Sun, 22 Aug 2021 22:54:57 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B229127BC6B for ; Sun, 22 Aug 2021 22:54:57 +0100 (BST) Received: from localhost ([::1]:53748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHvQe-0002JZ-SA for patchwork@mira.cbaines.net; Sun, 22 Aug 2021 17:54:56 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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")