From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yKWzGphtHmFy8wAAgWs5BA (envelope-from ) for ; Thu, 19 Aug 2021 16:41:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kIlwFphtHmFNUAAA1q6Kng (envelope-from ) for ; Thu, 19 Aug 2021 14:41:28 +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 1D7CA1A123 for ; Thu, 19 Aug 2021 16:41:28 +0200 (CEST) Received: from localhost ([::1]:52092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGjEV-00006T-8t for larch@yhetil.org; Thu, 19 Aug 2021 10:41:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGjD9-0006XN-7v for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49026) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGjD8-0005uN-VG for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGjD8-0000L1-SZ for guix-patches@gnu.org; Thu, 19 Aug 2021 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v4 04/10] gnu: admin: Add greetd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 19 Aug 2021 14:40: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.16293839731198 (code B ref 49969); Thu, 19 Aug 2021 14:40:02 +0000 Received: (at 49969) by debbugs.gnu.org; 19 Aug 2021 14:39:33 +0000 Received: from localhost ([127.0.0.1]:60557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCe-0000J3-Rl for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:33 -0400 Received: from mail-ed1-f52.google.com ([209.85.208.52]:44899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjCW-0000Hj-Kz for 49969@debbugs.gnu.org; Thu, 19 Aug 2021 10:39:25 -0400 Received: by mail-ed1-f52.google.com with SMTP id i22so9165654edq.11 for <49969@debbugs.gnu.org>; Thu, 19 Aug 2021 07:39:24 -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=VB+zCSmnI6JPNNd+dmQ7nv1CAeu5yk6+FSBxIyafSxw=; b=Ji4gNa6Jgk5UhNagrenozsouZVTcn7ulbkhzFUddoHxuWV5ZkC2CWJL+TXofgza0+6 c562D3C42WAqBwrG0T4SkOiu6q9ynUWddOe/YuM8zXW36VPoHMNYu/mBiVNzM3t9YCCb +4OYnBdlgShGkrL7FmjvGKU0OBM0hy//UcFjA0CDF5omPMIm7ppiMDyDFTq6012vKvP2 CSPMR9HsPUZJrm/YhrLb9AQD2FrQzVrMt31/qmQMrJEkvhOvT5iu+/D5gBaYIFzhCYbG xT2QPA8ELrQUoCDdDngQj7KlF5KGJvceM8g55oiekXai6Ngh1o3b+kwK4zSbslg2LDRG SO7Q== 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=VB+zCSmnI6JPNNd+dmQ7nv1CAeu5yk6+FSBxIyafSxw=; b=gQeJ5eTaeKYoARd/lOIY8P7Et7CShmOZAXY8trF+HbuiF3tnW1+gEqD7lvXcU3Xn2v grENmjGVDBLo4Lw9vF2EsxOyK56x2x7nSXZtjE052A+zTXt7przi7gZorDXeFbLwprB8 7Ltuwt8LiOG4p1NjDCPMzpfTYjX4THBYEe5eKnZ0vEgGK6lZ3sz621Vsp5SPkQOe0vFo +gcW5P5E9x7/NVBP3lauhvJP+NOVwP2PnTXYS3BkkUvDX7TwTgCYS2OUTryTORUaDPVa Qb8lmBtYsR/J+CL43hTBOs0UyZqr3pwGjByWKcqFdy5G1stUKllciVVZMXhw3UJOEy3H dz5g== X-Gm-Message-State: AOAM531fhGZiIVhtcxfhMoMY+uvqwVPHMv4KvC6bjk8W1HevHLn0jWdX Gbzqz19J9H75mtb9NDy6IsWlr1vUx/zyUA== X-Google-Smtp-Source: ABdhPJxeByyY+TQIK8h8zYM7zouCNLJ1s6pH4FUD8+XU+E5CEO0JTMSfvGnGZlK9GA0Yner4YzShVg== X-Received: by 2002:a05:6402:49a:: with SMTP id k26mr16636542edv.279.1629383958546; Thu, 19 Aug 2021 07:39:18 -0700 (PDT) Received: from localhost.localdomain ([188.58.13.35]) by smtp.gmail.com with ESMTPSA id b8sm1825954edv.96.2021.08.19.07.39.17 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Aug 2021 07:39:18 -0700 (PDT) From: muradm Date: Thu, 19 Aug 2021 17:39:00 +0300 Message-Id: <20210819143906.6705-4-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210819143133.6398-1-mail@muradm.net> References: <20210819143133.6398-1-mail@muradm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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=1629384088; h=from:from:sender:sender: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=VB+zCSmnI6JPNNd+dmQ7nv1CAeu5yk6+FSBxIyafSxw=; b=FonQ/Gj9dhNjiopVvKs3w2GK9NV9l2mOtq0KHLqeexqSWkQ50UhadPGHTydP6ucy6wxIeB 83zii5KwKCqY0v2b37F/+1wzi6cJimddO2Kay4q8EiOFP6diEMYgVNFL7MPuFK90ah6EDk hKCqt6fDiciTXM26VdzxSLa9/7q3GWxhOsN/0k35uC/xfwgiNC0Z/U5Zd2dr7tVbk/FRFb RIr+2EqSwV7F0+UOHJNA8aUyD2xRm/bUcfoY7UZeP9O5+kY6Y/41dybHxdauOy/w4h3jE3 G23/qEXS3glMRgUcUj6l1Q7z1WaCs7KUXTEw2KNsr28VNH9fuR+DD6eqrnCGvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629384088; a=rsa-sha256; cv=none; b=XXVNsqAvOgZS088Q50ojgsDq/pwft9gGdE/ELO1oudOCoEblaPOyVpTNEc1K1Oqw0Ol0dj GvNgZTRK2bY1dqkyrR38mig9oG6qETn8jqfHQoltsWvSFq32NBCjIGPgu7e5vib6+QsSy/ RiNAvSNOzHaWF6PwVykIyhzYunbSgBc/jDI/hsb98QwVAn1285w/FH+UN7ioL0aSpi42yx iK/8ZnDYavuj45FstsBHE4G9VPISdqUAvkna+VA8VKtxRkR1vET3/5iDFGMQD33c0GbGIo sRqKbQJikNDDbVpDwGHFH7ASdHvTWn3WT7UtOUYK7++SjHAqctA3EethHq2HHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=Ji4gNa6J; 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: -0.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=Ji4gNa6J; 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: 1D7CA1A123 X-Spam-Score: -0.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: liyaOXO9CadP * 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 007f15f9f5..c9bfe0b667 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") -- 2.32.0