From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qLYjHtD7pmJkawAAbAwnHQ (envelope-from ) for ; Mon, 13 Jun 2022 10:56:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kAgdHdD7pmLtZQAAG6o9tA (envelope-from ) for ; Mon, 13 Jun 2022 10:56:48 +0200 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 369ACBE0B for ; Mon, 13 Jun 2022 10:56:48 +0200 (CEST) Received: from localhost ([::1]:32902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0fsM-00022d-Sb for larch@yhetil.org; Mon, 13 Jun 2022 04:56:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0fix-0006nu-33 for guix-patches@gnu.org; Mon, 13 Jun 2022 04:47:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0fiw-0001P9-Qa for guix-patches@gnu.org; Mon, 13 Jun 2022 04:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0fiw-0004m4-MS for guix-patches@gnu.org; Mon, 13 Jun 2022 04:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v10 3/7] gnu: admin: Add greetd-pam-mount. Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Jun 2022 08:47:02 +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.165510997018204 (code B ref 49969); Mon, 13 Jun 2022 08:47:02 +0000 Received: (at 49969) by debbugs.gnu.org; 13 Jun 2022 08:46:10 +0000 Received: from localhost ([127.0.0.1]:57225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0fi6-0004jS-6f for submit@debbugs.gnu.org; Mon, 13 Jun 2022 04:46:10 -0400 Received: from nomad-cl1.staging.muradm.net ([139.162.159.157]:43516 helo=nomad-cl1.muradm.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0fi4-0004j0-Qc for 49969@debbugs.gnu.org; Mon, 13 Jun 2022 04:46:09 -0400 Received: from localhost ([127.0.0.1]:35038) by nomad-cl1.muradm.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1o0ffv-0003en-Qg for 49969@debbugs.gnu.org; Mon, 13 Jun 2022 08:43:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=muradm.net; s=mail; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QJcCzGQEbK7Hay3t/cLTMcCKQeBOaopP00hsM6LgYUE=; b=ktpRXa26E8ayj9bbKXfns4R2oJ OsQOM4AUno+KuNeP5pvXI6iq1+QPKLK94gJI7XWZaG/4FVMXXMsGLmHGe06sCVWfUH/m/Nq/KLkHo DyDzQw+qWxne9YwEc2IvjNJLkhnBg4IBA7KGVpFtKXZuoiGrKFKk183qsHeAEbYOwnAyqorElBrxW fsYJfti4Ocj28ss5JsG//gYMgcbiEaIQdfJ2O/Bj1DMEcuUaTv9XPMOjK/qNUYAu3BB+WsEJWD2db Bib4arC8FQixpoGc+MnlH/xnH1kEa6LIv1u0RHlmjUR/Bey58vP5GGAVcYaCRdm8EEiopEBzqTN8g BtYR5yd2LMU5RjmyTEOsR6TCt1SQogAwa50UdDXX+3MUNhI1oWEHuHExKIVW981b/UMDRIlwJfnc2 9lIdX9E+v3cviSqtPXUyVchyXmqoIl0+O+TXEW2IBpxoM9K+r7r/QkzBB532Ux9iKENqZj05JZD7e RE/0YZSagHedBxnTVAilxOgm; Received: from muradm by localhost with local (Exim 4.95) (envelope-from ) id 1o0fi3-0000g2-Am for 49969@debbugs.gnu.org; Mon, 13 Jun 2022 11:46:07 +0300 From: muradm Date: Mon, 13 Jun 2022 11:46:00 +0300 Message-Id: <20220613084604.2575-4-mail@muradm.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613084604.2575-1-mail@muradm.net> References: <20220613084604.2575-1-mail@muradm.net> MIME-Version: 1.0 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655110608; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: 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=QJcCzGQEbK7Hay3t/cLTMcCKQeBOaopP00hsM6LgYUE=; b=L0/efSMHEm5BJU4tgXyXJb9gUK8htcu6InCdlZPd/aRPiT23+DsAmCstn52eSFmne/O+Ep 7+u3eSHSY2ods3IKqn3CKjWxP44G9CQ/WXatxLlzxKK2BodmTxxrBjKzGQCSU3NtG8njD6 OjJ2vFP4sG/jfFIAjA56w9qM8/8l2vdwO5daeOcJVIadk8CGOAUR5ascAtT7SOu1Qqcf1J kHIHYDx1MifOg2NW0lRbQhyHKuVK6QkfcBJw5x1qZhkyrEz1trd7CGHzmyiHiKkV5e4KKi ykJyuLEw3vQNHdYdVn0rzWmgo8M6umNVLrHsuuHibs1bpSv73pTrwtSmGaZUAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655110608; a=rsa-sha256; cv=none; b=r9GXQ0RIBC/8VtsrIoO5DrwCwN2J+Ihw0BGSx9Ay59Ax2D2E3sS/JfECBGftdiEpFxxF2v 10hgziHzf+isvw1vBNm3WuWmpEP+a3TrB+HRfpMPcVqE6ThBk4f1g3PQS4cZ28BilCSwpB lZu1ut8O0V5KU9pr7Mwor4pGtpBhaWmruFscTVGxaco4EI68luagJPrZ6UHngH8+jBZLMp ex1/UiP2CCHHbTzgZcl9deX9L6uxHayazz1MiY1KfiQHdab/5iMIniQwcswsUM3j6Y+20u uHYeGrb09i0tLjnZ8tfRWOse7KgQTDbs+ugz8eyLWMthUsfTMx2sHJ7eounDfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=ktpRXa26; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 1.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=ktpRXa26; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 369ACBE0B X-Spam-Score: 1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: jEvi/bSDriUK * gnu/packages/admin.scm (greetd-pam-mount): New variable --- gnu/packages/admin.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 73d70744e1..d6e1d819ab 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -5065,3 +5065,35 @@ (define (scdoc-cmd doc lvl) If it can be taught to speak a simple JSON-based IPC protocol, then it can be a greeter.") (license license:gpl3+))) + +(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."))) -- 2.36.1