From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YaP0LJKfQ2Gb2wAAgWs5BA (envelope-from ) for ; Thu, 16 Sep 2021 21:48:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eOH2J5KfQ2FkEgAA1q6Kng (envelope-from ) for ; Thu, 16 Sep 2021 19:48:34 +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 2CACC27860 for ; Thu, 16 Sep 2021 21:48:34 +0200 (CEST) Received: from localhost ([::1]:34220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQxN3-00048L-AY for larch@yhetil.org; Thu, 16 Sep 2021 15:48:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQxMZ-0003Y1-Gj for guix-patches@gnu.org; Thu, 16 Sep 2021 15:48:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQxMZ-0001iq-8W for guix-patches@gnu.org; Thu, 16 Sep 2021 15:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQxMY-0005A1-W7 for guix-patches@gnu.org; Thu, 16 Sep 2021 15:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v8 3/7] gnu: admin: Add greetd-pam-mount. Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Sep 2021 19:48: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.163182166519744 (code B ref 49969); Thu, 16 Sep 2021 19:48:02 +0000 Received: (at 49969) by debbugs.gnu.org; 16 Sep 2021 19:47:45 +0000 Received: from localhost ([127.0.0.1]:56644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQxMG-00058F-1H for submit@debbugs.gnu.org; Thu, 16 Sep 2021 15:47:44 -0400 Received: from nomad-cl1.staging.muradm.net ([139.162.159.157]:58076 helo=nomad-cl1.muradm.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQxM9-000574-DC for 49969@debbugs.gnu.org; Thu, 16 Sep 2021 15:47:37 -0400 Received: from [176.234.10.27] (port=6978 helo=localhost) by nomad-cl1.muradm.net with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mQxM9-0000YK-Ov for 49969@debbugs.gnu.org; Thu, 16 Sep 2021 19:47:37 +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=sqZE6qFYalZFifHvF/PNFwJBO4Fqo2jT0XQxlzCwyVY=; b=e6XcqZmJw11IZlsbhQ3Wm/cwLU cphZNrm4H09QciheNpmGKye5OKqx807v5TV2Flzr6WRaNGXlMXXd18+XBmz3B3dzNtIJEKwEpQfl/ dhrQWJHOgR4q7cferZawIAGNArHqxj8C9tE6MtEnWQixQCWsPj0y5DqNsEQSSPh8JFQSWBTLEac6r 7/q0+kX/ZkKV0r8LVi3Cwv0KDdfQaa3ZwuEYCHi1KI+jq0UIaYXPO10/mgwrdC6kGj9Hy83YOoMU+ hEnFdEFnffBAc6TB9Dk3SCinckYa1MBi/sghvE5bd1p3SFbxVk4ew14IaYuKgPDr0b6JxEe2QsyPD yReatrfOcoeycFj9g+GXTeL0JtR40gUEU+RPnPg1yWHe5M7wBEoSoT5wOETDlnKfFT8qgUE1RCWxp SoeXnr3mTAmYz9MDuCpv1N7u08rOKuCH9wpsH6Yb1/SM+Nt6XlnA7b3baBvpFDsjvlEEdzwSVA6DR mMq/bzdJ25YBeYM7Lz9mxXAQ; Received: from muradm by localhost with local (Exim 4.94.2) (envelope-from ) id 1mQxM6-00005k-Eu for 49969@debbugs.gnu.org; Thu, 16 Sep 2021 22:47:34 +0300 From: muradm Date: Thu, 16 Sep 2021 22:47:24 +0300 Message-Id: <20210916194728.324-4-mail@muradm.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916194728.324-1-mail@muradm.net> References: <20210915162958.28398-1-mail@muradm.net> <20210916194728.324-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631821714; 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=sqZE6qFYalZFifHvF/PNFwJBO4Fqo2jT0XQxlzCwyVY=; b=JbKewLBJj7daQwe4FUNG1GdWQvcB7l4w4k2LEYffGngj+DzDFKIIYmDTSG9IEDf1tyuav3 A27dl6/PHaNW6tL4z1l7qv3dShsONpINHzBFFbSOGNgjZeAcJEk7APvHZ8VjTF+AShXuZ5 HW1QvdpvVdyoSX2zXk4p1vg/ca1Jar7XgYbYcYre6Au0p6b69xo1gYlyKdRNtysCOoB9F4 niNRknHxRL8ZLccSCItk0f8G3YIlUAO42XvuQSXQXkBDxAzD21rASZyyxhukCRIjZKdbWp Nq63YB96+6IUS+cV/05AoDbHRP/ulUWBkgoCIHFmb5DKMnbpiXy72o2WGD3hIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631821714; a=rsa-sha256; cv=none; b=VFtP68geKc3AMaCp2vg3FtlR3F7Ipo7AaWQPJ6+SFA7trnsR24zf+PrF8xTHDHRNITg7sB SeEE9AB5rbpSFsDT6f0oefVSTkfhLrHmLDYVSpurMU6TrWcLNQlPZBMLcYzivGbU9Tws+f +KWl+/PlQ+yNUCTOeD4Co0tOdvDJt1WqDXr3vVS4NExlVQ7MrIlUOQxeZ3cSMbSOdBw4DH rdG1kQP0dyf/U9Rd5ljwsdvd6x/LHMm3g3eYDppYfgcSCaiNx5qu5dqVMcTg6NEwKQI6gT yKzrhVZOAoLulyLUGTKeTxJCP8+zQEu2k5hLZ8VmAiv4xzX8IFm2iF2lcHtHPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=e6XcqZmJ; 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-Spam-Score: 5.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm.net header.s=mail header.b=e6XcqZmJ; 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: 2CACC27860 X-Spam-Score: 5.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: x5xpw4RM5r77 * 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 bef0ca3745..e46d21844b 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -4892,3 +4892,35 @@ If you can run it from your shell in a TTY, greetd can start it. 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.33.0