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 4CylKqTLRWHsVwAAgWs5BA (envelope-from ) for ; Sat, 18 Sep 2021 13:21:08 +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 OPpMJqTLRWHPMgAAbx9fmQ (envelope-from ) for ; Sat, 18 Sep 2021 11:21:08 +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 5B7401380 for ; Sat, 18 Sep 2021 13:21:08 +0200 (CEST) Received: from localhost ([::1]:54522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRYP5-0001j6-FK for larch@yhetil.org; Sat, 18 Sep 2021 07:21:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRYP0-0001ie-4y for guix-patches@gnu.org; Sat, 18 Sep 2021 07:21:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRYOz-0006tZ-Tv for guix-patches@gnu.org; Sat, 18 Sep 2021 07:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRYOz-0002Ep-QH for guix-patches@gnu.org; Sat, 18 Sep 2021 07:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49578] [PATCH v3 1/2] gnu: Add bolt. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Sep 2021 11:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49578 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sarah Morgensen Cc: 49578@debbugs.gnu.org Received: via spool by 49578-submit@debbugs.gnu.org id=B49578.16319640568575 (code B ref 49578); Sat, 18 Sep 2021 11:21:01 +0000 Received: (at 49578) by debbugs.gnu.org; 18 Sep 2021 11:20:56 +0000 Received: from localhost ([127.0.0.1]:33717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRYOt-0002ED-Lg for submit@debbugs.gnu.org; Sat, 18 Sep 2021 07:20:55 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:48156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRYOr-0002Dy-Eh for 49578@debbugs.gnu.org; Sat, 18 Sep 2021 07:20:54 -0400 Date: Sat, 18 Sep 2021 11:20:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631964042; bh=FH0szmAH2G3rc73F72xakI7yO4JGE6NvN7XvVcvm3zs=; h=Date:To:From:Cc:Reply-To:Subject:From; b=Je8qgKbsriqYNboHQcceMAVBxFzBvn4g0p/Xi3R1twPzFik6JSxAKFKAP4XFy01lq 2Ns1Sd5pliyy3112/aR48gQ8Ptl/CLlaNsLy7dvqokcjHZxKa3Us3Mt8QDiQy8Q3Y+ gS/IxRpYhdElD6heTv+ydbAPAr2urKLXrSE0WrMw= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631964068; h=from:from:sender:sender:reply-to: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=FH0szmAH2G3rc73F72xakI7yO4JGE6NvN7XvVcvm3zs=; b=mEP7b3+HcXL6DGVgjvEZxFyolG43yWDR+g1OJPWjP8oX362dllwi1rgqEpxKoabxFwoNGG wWWB0yeNnH6VBgb8VHn2zlzmzAVI1dqxFEPc5+ANKXoHWyZDfyYHMB+3/2eYOt+s1MY6J1 QRWRvUz4wnEEumKVCmiB0wNDmNRlC0uaXGxMzrbo1FkdXs2Ox+v0aT4i3zJHuL3qtq+dTt PvgAeMT9QW/Qt5gZyVNj5OBjZdp13mj/NGdqpYvq+WhKUS/JW+SzY0bbo7/LVEmSUhVR6R DWAc8k1ePnqFEpKTFc1gqMtymOUNhGy3RuDASHiJVJptftvdphbmyOu1ixGMsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631964068; a=rsa-sha256; cv=none; b=COw6MnUaz635zWlTr74jfe0HiFIDXPiBeytmuobfasHyfZbhZn+uWRCgbSDjtLy7tBOEPW CmullXQCoz126gkd+/yDAzPyqxy+srFOd5zlaOHDgudvnPC10BQed4FWXNmEJ+JBpX140u pu6filH3hdE4poEDYAJD+aSH1ZUMe4bflrjiNHY+jGQUuUVrJ7BmsbDysXl/3KIZhdBqm4 qPNFm/0OT85t7moeLquc+4ct05B0bod3FG6zRJtgqbCLidqJmEjJuTGz4SrCx5cigGjbVc JaZcvb1WVlgHtma64TvI4XgEZgenv/Tj5M/ZvZPQkUSIxfqgaIDeIB1pQXMFkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=Je8qgKbs; dmarc=pass (policy=none) header.from=gnu.org; 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: -1.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=Je8qgKbs; dmarc=pass (policy=none) header.from=gnu.org; 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: 5B7401380 X-Spam-Score: -1.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: XRK2PnZMlnyM * gnu/packages/linux.scm: (bolt): New variable. diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 46c9f817a8..3ec896bba6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -121,6 +121,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pciutils) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages polkit) #:use-module (gnu packages popt) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) @@ -2655,6 +2656,56 @@ IPv6 packet filter. Both commands are targeted at system administrators.") (license license:gpl2+))) +(define-public bolt + (package + (name "bolt") + (version "0.9.1") + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://gitlab.freedesktop.org/bolt/bolt") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1phgp8fs0dlj74kbkqlvfniwc32daz47b3pvsxlfxqzyrp77xrfm")))) + (build-system meson-build-system) + (arguments + `(#:configure-flags (list "--localstatedir=3D/var") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'replace-directories + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "meson.build" + (("udev.get_pkgconfig_variable..udevdir..") + (string-append "'" (assoc-ref %outputs "out") "/lib/udev'"= ))) + (substitute* "meson.build" + ((".*scripts/meson-install.sh.*") "")))) + (add-before 'install 'no-polkit-magic + (lambda* (#:key outputs #:allow-other-keys) + ;; Meson =E2=80=98magically=E2=80=99 invokes pkexec, which fa= ils (not setuid). + (setenv "PKEXEC_UID" "something")))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("glib:bin" ,glib "bin") + ("asciidoc" ,asciidoc) + ("umockdev" ,umockdev))) + (inputs + `(("eudev" ,eudev) + ("dbus" ,dbus) + ("polkit" ,polkit))) + (synopsis "Userspace system daemon for Thunderbolt") + (description "Userspace daemon @code{boltd} exposes devices via D-Bus = to clients. +It stores database of previously authorized devices and depending +on the policy set for the individual devices, automatically authorize newl= y +connected devices without user interaction. It also adapts its behaivour = when +iommu support is detected. +Command line utility 'boltctl' can be used to manage thundebolt devices. +It can list devices, monitor changes and initiate authorization of device.= ") + (home-page "https://gitlab.freedesktop.org/bolt/bolt") + (license license:gpl2+))) + (define-public jitterentropy-rngd (package (name "jitterentropy-rngd") -- 2.32.0