From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 10:39:33 2021 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 To: 49969@debbugs.gnu.org Subject: [PATCH v4 04/10] gnu: admin: Add greetd-pam-mount 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-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * 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 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: selfhosted.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.52 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.52 listed in wl.mailspike.net] X-Debbugs-Envelope-To: 49969 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) * 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