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 4DP8A7F/EWHOCgAAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 21:19: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 kD9FO7B/EWEcVgAA1q6Kng (envelope-from ) for ; Mon, 09 Aug 2021 19:19: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 B72B49CB4 for ; Mon, 9 Aug 2021 21:19:12 +0200 (CEST) Received: from localhost ([::1]:60238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDAnn-0002MN-S5 for larch@yhetil.org; Mon, 09 Aug 2021 15:19:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDAnf-0002KU-I0 for guix-patches@gnu.org; Mon, 09 Aug 2021 15:19:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDAnf-0000SO-Ao for guix-patches@gnu.org; Mon, 09 Aug 2021 15:19:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDAnf-0004X7-6d for guix-patches@gnu.org; Mon, 09 Aug 2021 15:19:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49969] [PATCH 4/7] gnu: seatd-pam-mount: Add seatd-pam-mount Resent-From: muradm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Aug 2021 19:19: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 Cc: muradm Received: via spool by 49969-submit@debbugs.gnu.org id=B49969.162853670917339 (code B ref 49969); Mon, 09 Aug 2021 19:19:03 +0000 Received: (at 49969) by debbugs.gnu.org; 9 Aug 2021 19:18:29 +0000 Received: from localhost ([127.0.0.1]:57839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDAn6-0004VV-Vx for submit@debbugs.gnu.org; Mon, 09 Aug 2021 15:18:29 -0400 Received: from mail-ej1-f42.google.com ([209.85.218.42]:39921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDAn2-0004UW-AB for 49969@debbugs.gnu.org; Mon, 09 Aug 2021 15:18:25 -0400 Received: by mail-ej1-f42.google.com with SMTP id go31so30858685ejc.6 for <49969@debbugs.gnu.org>; Mon, 09 Aug 2021 12:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muradm-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6nJ5CO/4u7MRn4/Z9MaGaFyO6hOZTySvOl2QbPhtEcM=; b=wbHTdaW9RSFVIfXo3LwUY0nkSAhlPAu11rB0fw4hvtDcidOFn6aUCipNcWBKhpeObM hCaY5qYpGSxJ5654IYw396l68PRh4jyHOIkQJRy/+tmZQlbPK36n3/6HpHmn11LnoMce X0IsV9lra4StoZy+cOC8LEFqyDJTreJ81FdQDBryuoakyUf5NwsEfo2H/yqJduDN1B3I FYcd0ECNWJ1TxXbSehoQeVDnvh1dINpU9T38fVt19BoCiqdUhlfqZFaulRErtOAJWmlW X8itSi2/PIv9xNSu5VSEcDKZ+P5yY6z2xKViHDutNbSZh15lFXY8z1OSAx1ULOdTjxWu /AdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6nJ5CO/4u7MRn4/Z9MaGaFyO6hOZTySvOl2QbPhtEcM=; b=dmDB2epDPMi5Z+BSuGt/7WTODy5VMuF7pv9aXAG/ClNLREo7behLzXg01alYZZ6jBD XumBXlrUpLfrpdSb3tRPT/lV5LGboe8rWNaxdYmdXFwbg3TGtqxpK9RQXNbpMJ5s+ZGe qzW95C+C+Jp/4Gq+EP0f9yauvNSyQcDlP/GB/CUd8vTzDnKoulCM6OVIr3ceBH60u6bE GQrqYwOBQ9AHhCk0Jere3yPdgIGMId9WnO7sfLVT91jCJ2W1sEfk3EZPe81NxbVj+M5W cv+mhXb5JVu1YNncFpM9oIJ82F0aUky+BdOFupCl0gDsAfLyQ79lxXaI0JSjvd0ToTeZ Yc7A== X-Gm-Message-State: AOAM531ebIkjfCnWMJLEBGajndqUC3lnY0gYrAXONGMJN9js8/UrdY7C VRyLTG1+6gTKQzJtQJR5flNDV8PJQPIx8Q== X-Google-Smtp-Source: ABdhPJx7DI3bZgpfhkw1nlrFsbQhZY75elznZIevh/h4ZMZGM/YFeSqkaBg2stHujM8HL8ITFMFKgw== X-Received: by 2002:a17:906:cb95:: with SMTP id mf21mr24388192ejb.484.1628536698266; Mon, 09 Aug 2021 12:18:18 -0700 (PDT) Received: from localhost.localdomain ([31.142.122.131]) by smtp.gmail.com with ESMTPSA id gv7sm6167100ejc.5.2021.08.09.12.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 12:18:17 -0700 (PDT) From: muradm Date: Mon, 9 Aug 2021 22:18:00 +0300 Message-Id: <20210809191803.7833-4-mail@muradm.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210809190257.7280-1-mail@muradm.net> References: <20210809190257.7280-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=1628536752; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=6nJ5CO/4u7MRn4/Z9MaGaFyO6hOZTySvOl2QbPhtEcM=; b=XxqMCPzwj+6ZsqfYFgt0hGMuzI+GsKM1tkABo6MusxLhjJDacgHYRtL9TrVEhIvtVJiZql cfkbD1N4pvYLEOOmgP1bhKWntRAanKBQCghiz8SoXXLK5ZC4m3G+uK9HWW7f8cA74vaC/Q KPUUbkoMTGAskTi6UEBGPLc71MJDDiR8nubJl3zwXwmiH1FZtHS3oTKSyLPhZ5In7UOyK5 auyzmc9zhLnsOk6RujxxJr8oIQFUw/O+PXjSMc7416oFDfW5RYkUIJpjN16ekq9oY/bZEg uNoNJOV+FnhAnrk/cNc271g7MU9kD7rIYD1rpp8B28tX01I+WVUPG5HYPu4zsQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628536752; a=rsa-sha256; cv=none; b=XAxSXeFAN09qY+dhVl7n2lnVZWLJ1pbt+OGSolaloYKgGr+lyimqWML68pVSdad1hNP480 FlOxOhDYAXxAoLxxWh/y4Pz6SCs3YMUlmzvPvPOv5YOYOkt5H974L9sX/hwUTqyYjIY3ZA UteVJ73T0OAAuPcWWs4LEs4IacrPd5OWcDpkwwSPWxxnbEf0QlpE4XNegdURlWav7icRoM fV4jDxTC3/z7JQQ+SziDwIVeJKBy+WvIsL4XFivI71GgbgBpJaxf6y2edmrMB9WOWulTrm 0jrfED50T6vCV6sfFeUm7uFQcaVHYG9Te2YrevP0Fv7pbUPXZ4D1IfuP0f2lMA== 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=wbHTdaW9; 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-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=wbHTdaW9; 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: B72B49CB4 X-Spam-Score: -0.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: jnTy8hRW5sje This package inherits pam-mount in the way that it is compiled specifically for use with seatd daemon. It uses different configuration location and name space for storing data in PAM. seatd-pam-mount is used in configuration of seatd 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 (seatd-pam-mount): Add seatd-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..adc5f4d8fd 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 seatd-pam-mount + (package + (inherit pam-mount) + (name "seatd-pam-mount") + (arguments + (substitute-keyword-arguments (package-arguments pam-mount) + ((#:configure-flags flags ''()) + `(cons* "--with-rundir=/run/seatd" ,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/seatd_pam_mount.conf.xml\"\n") + (("pam_mount_config") "seatd_pam_mount_config") + (("pam_mount_system_authtok") "seatd_pam_mount_system_authtok")))))))) + (synopsis "pam-mount specifically compiled for use with seatd/greetd"))) + (define-public jc (package (name "jc") -- 2.32.0