From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0NoaHP9Np2K1dAEAbAwnHQ (envelope-from ) for ; Mon, 13 Jun 2022 16:47:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SCAhHP9Np2ICugAAauVa8A (envelope-from ) for ; Mon, 13 Jun 2022 16:47:27 +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 DCC671110 for ; Mon, 13 Jun 2022 16:47:26 +0200 (CEST) Received: from localhost ([::1]:46840 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0lLh-00014c-Ly for larch@yhetil.org; Mon, 13 Jun 2022 10:47:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0lLL-00010d-GW for guix-patches@gnu.org; Mon, 13 Jun 2022 10:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0lLK-0001Zm-B2 for guix-patches@gnu.org; Mon, 13 Jun 2022 10:47:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0lLK-0006vC-A6 for guix-patches@gnu.org; Mon, 13 Jun 2022 10:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v11 4/8] 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 14: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.165513156423669 (code B ref 49969); Mon, 13 Jun 2022 14:47:02 +0000 Received: (at 49969) by debbugs.gnu.org; 13 Jun 2022 14:46:04 +0000 Received: from localhost ([127.0.0.1]:60079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0lKN-00069B-CJ for submit@debbugs.gnu.org; Mon, 13 Jun 2022 10:46:04 -0400 Received: from nomad-cl1.staging.muradm.net ([139.162.159.157]:43536 helo=nomad-cl1.muradm.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0lKC-00061p-Vx for 49969@debbugs.gnu.org; Mon, 13 Jun 2022 10:45:53 -0400 Received: from localhost ([127.0.0.1]:35058) by nomad-cl1.muradm.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1o0lI3-0003jN-Oq for 49969@debbugs.gnu.org; Mon, 13 Jun 2022 14:43:39 +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=ha8PJxItjBZZvFD6Oh6LyWXb5C szRE3KOe60IPnfuk+iQSk9b8avE/dQYU5V4tf966i6iCTJeU5tMsLa0TU5904eRSJeLfZKU77pWFk g9m5hLCj49+dyvz0RgzS8k5juVzMmOdruzbCPFYMfcGU+SYznyjgbYFMDRybQkROLE+IEgRWqmulF pfPzMqG4Cy2Y7zqPqe9C2wKLAkDi4dbde+P3GewTO/3wk+WNqGSc0kOu2ytJr/bkCTa6yEWM/MoUV VdpLbqzLwsBLFtLnEUonQbO8a9OEy49hbdKoYbaFvjLCvTao/V4zTpqESo4SEjDf8wV3lsF6r9A+0 n4xrn1yfIngf6lXOW17Pkf0SJk8dpGTxXD/YMlu15UBRGK819AMhn4TnoY4CTHtzrFaUMsHKxHFlR 6jvt+/vck6YQTjrI43M0vMjvEghxyWrq1aRp6Gqh/la/76kGEU6z5zZYAiNBU+aLx7wmaMgVFkVVz 8R2XPmz46sD6Mu3UxtRVJf+O; Received: from muradm by localhost with local (Exim 4.95) (envelope-from ) id 1o0lKB-0002x1-HQ for 49969@debbugs.gnu.org; Mon, 13 Jun 2022 17:45:51 +0300 From: muradm Date: Mon, 13 Jun 2022 17:45:42 +0300 Message-Id: <20220613144546.11306-5-mail@muradm.net> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613144546.11306-1-mail@muradm.net> References: <6e4bf02cf382ff003951fc2f2bdf96289384ece2.camel@telenet.be> <20220613144546.11306-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=1655131647; 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=opmp+j/qLCdMjfzguGdXwu/v4uyVdhoKGMyZI0wST3G2NmgNcH59G+Q4JiP099z4TXicpi ktklvOr9C6+mIa6U8uHeAncKJCPhi4cSM9u0vM8ak1dz8zymKsYzP15LbNDsa0iH0JrANk QUBMka/ogN3beq4G5SVnq7/+csGB91DLJH52bQGC7z6CNaBwaGPFNvbqQlU0N/DR4+kKiN uG6+H0tuCpqE+6bYx/0qsc51nNPQsY0VFLAsJJXFY8put2ZYXrMIrYqsSjDKD5iyhMzjZn /RKPNqeqStQMd52ycfean2g+5HUbjt2IUnjCx8t5KUYhMzua4OUxJHlCouH7XQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655131647; a=rsa-sha256; cv=none; b=ZLkcQPsr1NIhBe6JR7PnJwEDC0U6G2/T/0psvznlQD8r9zEvqJomCsMSpmCTS2J3gCxaiP mFHe9WSzievUDmFekJIDg3M4TpYMEm8rI38Awow8IQw15G4hlwu09Wy68g2SQt4Dc9JzKc 3XjTndfSW+f94ZFNikWZzxoW0HXN0uq9XVJNRVMjTnSQJhU2KWkpCJbK0qt3dsGa+XItYf 4Z+HoXXP5MMWhimSfvpTOxE917ogn3sgJ6nJWorPd6ozsmCnADzYGaab35uRKBkqAURVZ1 daqKJ1ht/WxXfXGbhMHb2N1QRppbmIhYf9nk5iDW5vaSDyHLsEJBgrAG/vYqNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=ha8PJxIt; 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: 2.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=ha8PJxIt; 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: DCC671110 X-Spam-Score: 2.01 X-Migadu-Scanner: scn0.migadu.com X-TUID: uxVzpubZV4N3 * 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