From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id wBC7HlW2MGYNawAAqHPOHw:P1 (envelope-from ) for ; Tue, 30 Apr 2024 11:13:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id wBC7HlW2MGYNawAAqHPOHw (envelope-from ) for ; Tue, 30 Apr 2024 11:13:57 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=e0u+4byU; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714468437; 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=HAH3OO75DNDOpJPG5hKHEneiWg+NI6QH72b+/r2YOb8=; b=qi3S/ysHJx5yMSJy+lIUMDm4oROo2RGsuqySAm27r1Xn4aXnxsextpEiXD47R9FnrsHbek zV7sakvUjfHukPuVh4MAV+4iIY1DVUB38E/c7kx0ybtGvJIIBKQJJZUvgQ6PoH87Bpui4Y rMRwhoWbXMRr4sQzUyT0RYBkDCZpIBQwnyLLBYajwilXFvAOJvKJFwUDIHg+DogGp16NWt aVNcn8JK9O9uPBQgJIZ7my3jF8ZwzExUMTwRfQwdUoBy5YawMLGOJ0qlEiOknfx/sdV/d3 fTwQp8PAUO3PQh8PRm7hYhKVWHEggJ+EeTj2GNlqp5+t9kKJqJlKsr/bLwvXGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=e0u+4byU; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714468437; a=rsa-sha256; cv=none; b=kaWHxgcf2JFy47t0ZE1bMBxOduLKy4aNAjkU34cCOO1KO6vPVeGLb9jDJM2MrgkP9qsQ/2 wdUriBG7YZ1iE3E6KQNpJDg7sXQ9pMALnisyd5aMeYQbB7Qd7JI641UkQHcBEidOoAnu3O pOWoW0c/DGF6WNGEwxnPAyNW3P13oKKf32AQ0Cnciy/ZYIKORAgcKm4k1eclngfY/EEBjP pEFQZa6zkJC2OyA0YUN2rnkovZBEgmWtdjvdJQIzNVb30054yHa4cgTwZIyH8ZLdGspRyL A+vS1yDUnCLrK7OqMxKl2NzRDwGiVLZxGf0JJg3TMp1epgcoBAtS0hItGybUmw== 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 F24F13D526 for ; Tue, 30 Apr 2024 11:13:56 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1jYX-000277-SM; Tue, 30 Apr 2024 05:13:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s1jYU-00026U-FZ for guix-patches@gnu.org; Tue, 30 Apr 2024 05:13:42 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1jYT-0007rr-Th for guix-patches@gnu.org; Tue, 30 Apr 2024 05:13:42 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s1jYo-000674-Ca for guix-patches@gnu.org; Tue, 30 Apr 2024 05:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70341] [PATCH v3] services: tor: Add support for pluggable transports. Resent-From: Nigko Yerden Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 Apr 2024 09:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70341 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?UTF-8?Q?Andr=C3=A9?= Batista Cc: 70341@debbugs.gnu.org Received: via spool by 70341-submit@debbugs.gnu.org id=B70341.171446843723485 (code B ref 70341); Tue, 30 Apr 2024 09:14:02 +0000 Received: (at 70341) by debbugs.gnu.org; 30 Apr 2024 09:13:57 +0000 Received: from localhost ([127.0.0.1]:59260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1jYi-00066j-OY for submit@debbugs.gnu.org; Tue, 30 Apr 2024 05:13:57 -0400 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]:58490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1jYf-00066Z-Sb for 70341@debbugs.gnu.org; Tue, 30 Apr 2024 05:13:55 -0400 Received: by mail-lf1-x142.google.com with SMTP id 2adb3069b0e04-51ca95db667so5049722e87.0 for <70341@debbugs.gnu.org>; Tue, 30 Apr 2024 02:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714468406; x=1715073206; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=HAH3OO75DNDOpJPG5hKHEneiWg+NI6QH72b+/r2YOb8=; b=e0u+4byUwMGrLQqD0GBEFNPRgEZQltPt3Si0YQ7RhotF/isbB126a8hBqHG7UTLhWR LGdgV1rEQk2AJGUMsv4XXKmYtZ8qGr/LUmVvk7Vc8wapBRCodqGIaCleMsMpnA8o4OZH G/txOyR+o6jpJazxj9NY6PSGFLdgI8rBhO/vVnx3Px3lB11BH5a4vAtNyOkw1vG1bslf U7ZV/rkuGuiNChUDD3/TcQcP/LPIT0P0aIwJ1Ap+KjorHo5Ns0NScZf3mrjlIagFy3fT FXPqFGlPycstY5R3BuF+LGRmNC47j1Th6eOfHhjwZJqryQx/WKpaamLiZBxkgK0j3PPn Ld/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714468406; x=1715073206; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HAH3OO75DNDOpJPG5hKHEneiWg+NI6QH72b+/r2YOb8=; b=P6NL2Ph+k8Oh7LweUV0ORvjbecCa+kLpgvr13UT9ammzDSKa3bHL6x6WkUWJGw9opG mvQoFxaX1ZirryNuYD2yLJdFUIhyg+FpAboZSq+5Zfkhs1P1kdCk3DLkYcP2anm91TxI VEYMJZ0AS8B8/fKvq3vMN4cSa3sOk6mjBC1MrwT1A7n3bW0ij+hlgkXL/LpKJh3PZ9Hf 0xePCA02ErAE+rBrdSQB3/dogVXEy9PS7uDeJ2JGrlSkR014u4w0E7RU9HOOC7JqBpjT e1DNv8/IC8qpZDshut7bzfoYHNCNF6DzyGrbMxnf24qwrIIRNjtrpL0s/pWNS2LfwTz1 KcOQ== X-Gm-Message-State: AOJu0Yy2TByhTmsDKQdUQktabYpq4mV8TmeV/JGhDGAxVHRdIVWw2Dju lMXr+g4SQv4I8zRqInUaKdq3XhEhGPUnl3lNHZ1FTX4Abdg2y9WoIZ1eZJHV X-Google-Smtp-Source: AGHT+IGldG+Hz+M9M+u8UbpLAJguXqojgZMFJe+wsaBEUytzZaF6uYj5gU/taSegupmkmEivUOQ0Ow== X-Received: by 2002:a19:760f:0:b0:51b:7415:655f with SMTP id c15-20020a19760f000000b0051b7415655fmr9565828lff.36.1714468406037; Tue, 30 Apr 2024 02:13:26 -0700 (PDT) Received: from [127.0.0.1] ([188.68.138.94]) by smtp.gmail.com with ESMTPSA id y24-20020a197518000000b00518b91e8fd7sm4374411lfe.235.2024.04.30.02.13.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Apr 2024 02:13:25 -0700 (PDT) Message-ID: Date: Tue, 30 Apr 2024 14:13:24 +0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Nigko Yerden References: <11e72216f4be8b6559ecc04646fd722daa5dd09d.1712846897.git.nigko.yerden@gmail.com> <3af678c4310a58373fe1e86b84f75a1d37e02295.1713758319.git.nigko.yerden@gmail.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.62 X-Spam-Score: 2.62 X-Migadu-Queue-Id: F24F13D526 X-Migadu-Scanner: mx13.migadu.com X-TUID: EHPpB8caZIab Hi André, Here is some additional information about the patched tor-service-type which reveals: 1) Why it can fail if not properly configured. 2) Its internal workings which I find kind of cool. First, it is not necessary to use PT-plugin from ready-to-go Guix package. It is possible to download PT-plugin source code and compile it directly, say, somewhere in $HOME folder. The corresponding configuration may look like this (service tor-service-type (config-file (plain-file "torrc" ".... Bridge obfs4 ...")) (transport-plugin (local-file "/home/..../lyrebird" #:recursive? #t))) But this will not necessary work. The reason why it can fail is somewhat interesting. As we know, the tor process, thanks to the 'least-authority-wrapper', is run inside a container, which, in particular, means it has very limited view of the file system. But PT-plugin executable is linked dynamically by default and has its dependency libraries inaccessible from within the container. However, if PT-plugin is linked statically, the configuration above will work. Similarly, if PT-plugin is specified as a direct string path to the store item like this (transport-plugin "/gnu/store/..../bin/lyrebird") it may not work for the same reason. However, if a file-like object is used instead like this (transport-plugin (file-append PT-PACKAGE "/bin/lyrebird")) all the dependencies of PT-PACKAGE are added automatically to the list of allowed paths inside the container (this is provided by the call to 'references-file' from inside 'least-authority-wrapper' procedure). As for me this means that the suggested patch fits very well to the guix'y way of doing things. Regards, Nigko