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 cKTMI40zNmFCiwAAgWs5BA (envelope-from ) for ; Mon, 06 Sep 2021 17:28:13 +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 4M1kH40zNmHlLQAA1q6Kng (envelope-from ) for ; Mon, 06 Sep 2021 15:28:13 +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 F19C014EDD for ; Mon, 6 Sep 2021 17:28:12 +0200 (CEST) Received: from localhost ([::1]:47290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNGXc-00010g-1r for larch@yhetil.org; Mon, 06 Sep 2021 11:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNGXS-0000wg-Ml for guix-patches@gnu.org; Mon, 06 Sep 2021 11:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42700) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNGXS-0006zT-F5 for guix-patches@gnu.org; Mon, 06 Sep 2021 11:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNGXS-0006ns-Br for guix-patches@gnu.org; Mon, 06 Sep 2021 11:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH v6 4/8] gnu: admin: Add greetd-pam-mount. Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 06 Sep 2021 15:28: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.163094202426032 (code B ref 49969); Mon, 06 Sep 2021 15:28:02 +0000 Received: (at 49969) by debbugs.gnu.org; 6 Sep 2021 15:27:04 +0000 Received: from localhost ([127.0.0.1]:54237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNGWV-0006la-Cv for submit@debbugs.gnu.org; Mon, 06 Sep 2021 11:27:04 -0400 Received: from mail-wr1-f46.google.com ([209.85.221.46]:44586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNGWP-0006jv-Qq for 49969@debbugs.gnu.org; Mon, 06 Sep 2021 11:26:58 -0400 Received: by mail-wr1-f46.google.com with SMTP id d6so9741635wrc.11 for <49969@debbugs.gnu.org>; Mon, 06 Sep 2021 08:26:57 -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=axcYfzOaSjpWu/K2adWVmBxQl2mHcn/sXEeyRImVzeI=; b=JGgTs1VXzDGKA0Dc/X2+5IThJeUtlV6Gq8pxA/mNjzkOuwtHbsK86lCjcSn2zklkBU csi9YLBfjt1STAn/KKKHPSSs0Gs0OSUeUi0F56o+6DqUmOVMu78yDfCQf+STJZ+ltdkE /1MbRGR8E8B5LWiNCg1BN1fl0RJ83U+2xO/2czZk+gx0blPGeKz53/PYr9JFqkmzkYTl XIbD56oIb0klCKmB0T37LrPSsc4WH+wQAI5Byxt9RHdCadL74946x/Kx5ZOYH0x3W6FX LdaSmgE5iYw4Fje26PH56MT7MDDNPbxzNePsLUkn80jP9JNk/Ajth9wW9KsuSh7biL28 Q66A== 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=axcYfzOaSjpWu/K2adWVmBxQl2mHcn/sXEeyRImVzeI=; b=jzx8GX5uNA6bt1GO04d+IQHyOcFFNPy1TDBXtA9uSYJZCO2ryaaG08SWuaESpEUnpl rSIenonxlN+1C7HDvsbgEy2AOSKk07u4fQk10H73oXcmJxsWV0DIAE4xD8QCbCoE6Pt3 4XElnH1i2wNNAxB6kwGd3EFSdpnLmJ+aP8HxwqHay7+rgDe6agv4gi0zzmjpQe0E5wSU vHCNQI4TsYTKEWneqnC9Y+0NSbLQEVjF6YXuudB4JCqMk0FW9kux9H7HbkCSc8pB2J7H 6Wc/wuMfqqJEM12o2d1HrjSjo5DMSWl7466LNczGvjIBqzPtYUtfLnPZlOO7SCs7Z+uS aRVg== X-Gm-Message-State: AOAM5318iznYNAvEgL0Jsmlk4M15bo3LkoFR11tnrl565785x+JS7rCK gldaqIynIoh6loDNSueYBiOGX7L62qSNl72K X-Google-Smtp-Source: ABdhPJwHYMqr/F/ug5ivBxlDybk67zcTdPSIgmy3TpR1lmno4CYVNI+H5Q6jcby/vNIVDjfDA4Lz+w== X-Received: by 2002:a5d:53c1:: with SMTP id a1mr13853993wrw.209.1630942011873; Mon, 06 Sep 2021 08:26:51 -0700 (PDT) Received: from localhost.localdomain ([176.234.10.27]) by smtp.gmail.com with ESMTPSA id m4sm7687896wml.28.2021.09.06.08.26.50 for <49969@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 08:26:51 -0700 (PDT) From: muradm Date: Mon, 6 Sep 2021 18:26:37 +0300 Message-Id: <20210906152641.11020-5-mail@muradm.net> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906152641.11020-1-mail@muradm.net> References: <20210822215048.20480-1-mail@muradm.net> <20210906152641.11020-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=1630942093; 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=axcYfzOaSjpWu/K2adWVmBxQl2mHcn/sXEeyRImVzeI=; b=efpBnVoJbmpCOb/C5p/KJj1kt0KJZqAe2yr37LtK2H8gI3Fvv+yXJsj8moqiAr5CrxGD3f Jdc6/3KiGXbi6NjQmHScLNJQOXKeMKICyVaBtnh071tX567lfxnYP0s5JI/pFaVhcV18xf SsKWdhP3Fm0qLe/t5UHrOjCUwel9kGtD8yfGsSIU32h+O9DYXnu/NPVTsA0qk++xw/0Fvv prc1SaB5n9NDq8+4eY4ZBiTV5yC0g4/VDA4yqm8my10i38EM3Jjw2r3fAHF8iUo+rmRhbJ iymrDsRts21n3KPPRQ56iot/qxltQvcHAjO1GJGMufFdSFbBJZaJ4gFIuzO9sg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630942093; a=rsa-sha256; cv=none; b=KkDRMZ/egvfFfW8hC2B3A9hVK+7CRgGBRs11+2avft3oCE+GsagqGQMm3jKaPpyIvmHPfH HtOtMo8g/iHztVGk2jc9bLnvi3ceBDCBKBMPGu0GwDfIdg5MUn6Ed6cGwy5pnB5lrLxTmM 6/+WxO+6iL3OVppJNBW5vzSAQTtMHOocXblcfi7N0L75u9GKjBMdpIHvR/sg1++fhOKqie cip7o8rb7FDbSFeGQ4YzPPCn3uQbZiiPDlZZNstXs0JpS668obD5roC43DKlaT7GEscWBJ CqH3pU57chQXfF9cqYzjQB6T0w2oMDmkg9eEWpmIfXIbXPn7ZfOXdBq9zxtbpw== 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=JGgTs1VX; 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: 3.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=muradm-net.20150623.gappssmtp.com header.s=20150623 header.b=JGgTs1VX; 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: F19C014EDD X-Spam-Score: 3.58 X-Migadu-Scanner: scn0.migadu.com X-TUID: exqR9rmPX8bL * 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 de59c793cc..90cc1d62da 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -4878,3 +4878,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