From patchwork Thu Aug 12 22:04:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: muradm X-Patchwork-Id: 32080 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 8BCB527BC78; Thu, 12 Aug 2021 23:05:38 +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 5B72127BC91 for ; Thu, 12 Aug 2021 23:05:32 +0100 (BST) Received: from localhost ([::1]:43456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEIpP-0001AY-CF for patchwork@mira.cbaines.net; Thu, 12 Aug 2021 18:05:31 -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 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 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")