From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4CwFG+jcEmESHgEAgWs5BA (envelope-from ) for ; Tue, 10 Aug 2021 22:09:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yNCvFujcEmHaIgAAbx9fmQ (envelope-from ) for ; Tue, 10 Aug 2021 20:09:12 +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 212546704 for ; Tue, 10 Aug 2021 22:09:12 +0200 (CEST) Received: from localhost ([::1]:52426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDY3j-0000w0-6D for larch@yhetil.org; Tue, 10 Aug 2021 16:09:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0000qK-NR for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDY3b-0007D8-GJ for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDY3b-0007C5-A3 for guix-patches@gnu.org; Tue, 10 Aug 2021 16:09:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v2 4/7] gnu: admin: Add greetd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Aug 2021 20:09:03 +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.162862611327579 (code B ref 49969); Tue, 10 Aug 2021 20:09:03 +0000 Received: (at 49969) by debbugs.gnu.org; 10 Aug 2021 20:08:33 +0000 Received: from localhost ([127.0.0.1]:60884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY32-0007AZ-RR for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:33 -0400 Received: from mail-ej1-f53.google.com ([209.85.218.53]:36567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDY2q-00079M-Bh for 49969@debbugs.gnu.org; Tue, 10 Aug 2021 16:08:22 -0400 Received: by mail-ej1-f53.google.com with SMTP id o23so4489450ejc.3 for <49969@debbugs.gnu.org>; Tue, 10 Aug 2021 13:08:16 -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=Ji/0u8o52Eleku7bBaveyVCcBuSY/EtVjU0+md9XL9M=; b=bCnXt6VTR4bU/JzOo5shBVRbenRt//2ZsiiHiW5edoBO9LH+vKo3WB4AHqfkiCbuyn d4fisI6f2UfSRX90/27qrOdp5yibJTc0cytiteCqFZ4fa4aDI5SXhQzVu+Lxvo0ml9c3 gIaedP3YO7VVJPJPEXFEZkWgbT2fgaPFGQTE7dk9cApEVc/wlzEsITRO0fkZdEekLVwN ujvvtBAiXLPFpw9LPIwLpVcyoxYO8VEj1zxONuyF3ij2CsRVzgbHoNXY42gNPbYKxBsE peMZ9YWpA5ef0Hh63X2JZi+sIVKOZeDkpl6FTdqERnJgJoSBRDT9FXhJMTsk8jnMUPO2 xwLw== 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=Ji/0u8o52Eleku7bBaveyVCcBuSY/EtVjU0+md9XL9M=; b=tz3S58nz+tsF6alcKMNJjWmMdSBnrLfRWlra42TMaXokfVRil3fzCHM4eOX0vz2d0L MiqojPqaYmgOjEJJ9k24TY5SLSAU/BJ4IKg+wV7VDD9uzi2DY0czcuYAXrtSh/L/iY9i vIv9waFmDKS2sVaSzEI+lPOLxS/45AgfhsV9GL1l44bSMQCz5OYOwU5HB7vAsQx08hES R1SgDcZmrA2EsXVWmjBk6susei5tHAzIFL7CiqoOpCJFt383ui3mof3JU0jDA/7fcsMD fNZRVkV1Z19ytzgOoGaqxxgYV4qBjvxH02B3oo3V2YZazWGguLbUxS+mKQt88QFsxH71 T5AQ== X-Gm-Message-State: AOAM532M5Y5vII3q7WMGIf1HnLUZhCW5FTiNGXXUXSf2vDB96ix2akiG zNI2XwB2yixZcSRWaEx9nXTz8blSpEGUDw== X-Google-Smtp-Source: ABdhPJyTI+oEpR2zmYGh3dU+7fdN4xJIai2bm9DrYP4Rb5kb62Oo3CD4se/kgbUfilHHSdc9uzCACA== X-Received: by 2002:a17:907:3e05:: with SMTP id hp5mr205123ejc.527.1628626090555; Tue, 10 Aug 2021 13:08:10 -0700 (PDT) Received: from localhost.localdomain ([31.142.54.188]) by smtp.gmail.com with ESMTPSA id qa34sm7247582ejc.120.2021.08.10.13.08.09 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Aug 2021 13:08:10 -0700 (PDT) From: muradm Date: Tue, 10 Aug 2021 23:07:53 +0300 Message-Id: <20210810200756.9581-4-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810193626.9186-1-mail@muradm.net> References: <20210810193626.9186-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=1628626152; 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=Ji/0u8o52Eleku7bBaveyVCcBuSY/EtVjU0+md9XL9M=; b=mVhWaUNYPZIEUARwkPKumg9+1wS36XR91BGFryVPEb0f5DycNYYwG9UkqiToRghsvEkKIr PJ3O7mVeaYt6bmrLO/aVtWhfHWAhzVwCDUPeAiZ3d913coE+h4h1P4wQSHh06NisS++nmr GcCsqc2W19izMLooxhxeqvH9fy+DEI5KglxL+9DmbMS8aeczYPrB2GtP2sgmV0PWmZ311C MxlR0dbTOkTpV6wOba5XFT/Sw1yXm9LNOqNcI559VDXQFfmsN6gNBeAEvJOjvn7FGpBXXf Jkp3yVTXxh07oE6hGPSNKpUKTE4p9x3Qd34O+g/Fv/WHKFw4Z3NLK2wI3/o33A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628626152; a=rsa-sha256; cv=none; b=lh54bh2YLj337oYOcxFnw1nPDGQl8ssb+NOhgCXVsRSTGI7jEHo0pAgN6KQxrlHwm7ieBI ayy4VtIqWdSDsUfZhJxZNUv9FbAPGhNSNHAInSvdsrQBazvbSlSWasBQNHsoukP85ixqpc hUoDfTVKd9bxZprFApigc51xb0gpbeEAn+nKANhpmrN88CCS1CaDgPbeWFO/ip6/ijvXCr g0qi9c48nX0pKHG+mSvP89Ugs4BJ0ItOt47ftL4jc6YsD3fTdVC4/UbA+IiBNrGeY207DQ /BQPJ83Hzdymi3+t8ZlkoGC1bJcFsQAACyXz7oJfv3NE/5QN4z6OzWKOzpju8w== 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=bCnXt6VT; 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.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=bCnXt6VT; 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: 212546704 X-Spam-Score: -0.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: Twirpuy8q5Z0 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. * gnu/packages/admin.scm (greetd-pam-mount): Add greetd-pam-mount --- gnu/packages/admin.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index eda269f148..e805b219c5 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,25 @@ 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"))) + (define-public jc (package (name "jc") -- 2.32.0