From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 sHHyGKfomWKsBgEAbAwnHQ (envelope-from ) for ; Fri, 03 Jun 2022 12:55:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MEXvGKfomWKrYQAA9RJhRA (envelope-from ) for ; Fri, 03 Jun 2022 12:55:35 +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 017363C1C8 for ; Fri, 3 Jun 2022 12:55:34 +0200 (CEST) Received: from localhost ([::1]:39176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nx4xp-0004Y2-Qh for larch@yhetil.org; Fri, 03 Jun 2022 06:55:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nx4uQ-0001ZX-Up for guix-patches@gnu.org; Fri, 03 Jun 2022 06:52:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nx4uQ-0006vj-Mp for guix-patches@gnu.org; Fri, 03 Jun 2022 06:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nx4uQ-0002yg-Ki for guix-patches@gnu.org; Fri, 03 Jun 2022 06:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v9 3/7] gnu: admin: Add greetd-pam-mount. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Jun 2022 10:52: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.165425349411377 (code B ref 49969); Fri, 03 Jun 2022 10:52:02 +0000 Received: (at 49969) by debbugs.gnu.org; 3 Jun 2022 10:51:34 +0000 Received: from localhost ([127.0.0.1]:55370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nx4ty-0002xL-0W for submit@debbugs.gnu.org; Fri, 03 Jun 2022 06:51:34 -0400 Received: from [192.151.158.155] (port=48404 helo=mail.boiledscript.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nx4K6-0001oK-IX for 49969@debbugs.gnu.org; Fri, 03 Jun 2022 06:14:30 -0400 Received: from localhost (unknown [192.168.203.1]) by mail.boiledscript.com (Postfix) with ESMTP id BD7D1300A0B for <49969@debbugs.gnu.org>; Fri, 3 Jun 2022 10:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1654251265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lbFTTvtHIIQoSCOC/MUp+3CjaIhveJ48hRXfh/6Wz0M=; b=05VWzaQ11MbmycDApvtIkV2obgSgwZ06oyoNbwt6XI2SBzTLDmyUazK48Sf0MfWrCAcj1Z r1UJB+EPipp+oJcYQjcXrYCLZulmXmUZBlaY1r3ptizfWyN5w8+NymCXxmf6a6O1u0fvIz vc0Sxd/mqaOpFcgNRfgN5QKPitY2P9OP3J9CtOvd7eT0MSR3QpsQ+ytk7/A6vGWjOppf2J +LHlSDwnlB6AKiLQkfNin8YFPJZjmo8p5hZHDNrO5ibi8f3MPwTU7Re5Gq2b2PDxPBEXvR aY8CspKiTUxwde8VD6TVRlt6FpJaScWHcqP0zBGC1MohGF11onSq+d2T5proMg== Date: Fri, 3 Jun 2022 18:14:11 +0800 Message-ID: <20220603181411.0a9ec225@ultrarare.space> In-Reply-To: <20220603181143.5bef4199@ultrarare.space> References: <20220603180923.0caf6958@ultrarare.space> <20220603181031.1ac07de0@ultrarare.space> <20220603181143.5bef4199@ultrarare.space> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: / X-Mailman-Approved-At: Fri, 03 Jun 2022 06:51:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 03 Jun 2022 06:54:55 -0400 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" Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via 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=1654253735; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=lbFTTvtHIIQoSCOC/MUp+3CjaIhveJ48hRXfh/6Wz0M=; b=o8aalubFp1SL/Qy4e6o7g5s0Qvd6xM/b56KClnUeJeVzWYzZSAWPXlh+feMzCTq8q5KEVf lYzoUtfnNAMc9+THiJwty5lD8VFMhq7dej3FgavbR4EKU5BTqTR585jcFIGTOGJIs9peft ZUAwU0KEjERFM1q849HkLU/B2ohFPde/9tn47mAyZnyUs7/PdiL+sL9rcP+yNlcJCm+PGw 0gCn1ErTw/Qt1UeV5mgtkFT7J8PSMSr2KgJPXcDqTlT/kW+drmH/i53gJh2EujF2xj+4Ti o4FDSSTILGeizLKolsJMXHwZXTH2U4GdXSSFh0w/17WF+Ubf6/K+RGtj7irWKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654253735; a=rsa-sha256; cv=none; b=YKy25hVTAX2CfRJ6qGj7P5DwE/m6F1wU6jpN5RF5XvQ0sZ2PXWA1wlP4X6rwJNZj/s4l/r snRJYW437+XPPwHtjxxTOu9a63k3Yzx8KQzxCketoGm57WJsSKMWaG5RHRFcuE7hzt5dE2 63Ma9ykPjVxgYzsEInH2qNfUdzz/L+/wOmghsURygiNPT1bIY6YBjYxuGVN6YeX5pStH+9 SwYqerM+l4ugOq4say4d749FgF10csFT8fk13XYurESAa0ormaKFYR+WDWvpz08Ql6HOdw Z4FTmcRtAXiASmc2VzOvSZMARM+40iCScto7J51XPGjhpmVNjXU4dyG68uCe2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=05VWzaQ1; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=05VWzaQ1; dmarc=pass (policy=none) header.from=gnu.org; 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: 017363C1C8 X-Spam-Score: -3.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: YZH+DSlXtu33 * gnu/packages/admin.scm (greetd-pam-mount): New variable Signed-off-by: Hilton Chain --- gnu/packages/admin.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index d94b113d4e24..7095259ff9b0 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -5053,3 +5053,35 @@ (define-public greetd 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