From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 4B3aLHJSDGbu8gAA62LTzQ:P1 (envelope-from ) for ; Tue, 02 Apr 2024 20:46:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4B3aLHJSDGbu8gAA62LTzQ (envelope-from ) for ; Tue, 02 Apr 2024 20:46:10 +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=Q0USvnZx; 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=1712083570; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=gSe6WfQ1PcxMCKT3J8/t5torUc8k++NKDIsI8fbMsPE=; b=g1adg2UIszfdaj8OI4DUdJLrk8RwId3IF1/cH4P3qawNx6518UxsM4e5XQU4E/xY2oqI+U BNi+vJEdxvNnKjPSjp6Whib3ik9vtKYDKyU70ZqQ+laCUFdimnPBvbgYpdVcjmZ0DmynQ/ 2uZdabuqVRAC/YtrK/BsShzGKLrXxY7tkKXcfbT2TpEoL+1NsCY+OEkZ1Pwugk85gc0llW P3EUlSAgV/2Kqn3AroK5lFDm/ot7/YziDdIt6SLw37QSxv/DDYSwMrQwSOPaRLX+YJGrUk awgNCFXQ5heLvqNlnL74N2rDgycb7oXzR7SQ8WNyWf0y75bUl/Nxke9uW/WgSA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Q0USvnZx; 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=1712083570; a=rsa-sha256; cv=none; b=OQB51rjq3Prz/8PtiOZ0mNBKYlGcdtDDj5/vMMXCA/K3rVDRcjOhrKhEc4TD9aTKriuvMs zfRZFXRyBRm1XCtIBdfeed//l2QQnDDZ4G64PQLBuAG58WmGYGWhtJ7+F4TkV3tRPElI61 ahAKbvz8V094F84EPzH40IsQsLYXdo/pDeAPD3b2QvRNMMzInHqne332bdXoHD2wJEiyN5 htnS1/3+KwFGEZp2sUkWNbcTH12Nb4c169TYn+vnf4c/nXoufGoZEIdnVdBwRblL5+PHJW OXraqhtgLIvFDzCxssJ7iRpkyKAz/b227z5zfpF2uzOesnPDvOogvxyZX8056Q== 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 7905E171DA for ; Tue, 2 Apr 2024 20:46:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rriLc-00015Y-AN; Tue, 02 Apr 2024 13:55:00 -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 1rriLb-00015C-0u for guix-patches@gnu.org; Tue, 02 Apr 2024 13:54:59 -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 1rriLa-0000ax-OK for guix-patches@gnu.org; Tue, 02 Apr 2024 13:54:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rriLe-0001p2-Ib for guix-patches@gnu.org; Tue, 02 Apr 2024 13:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70151] [PATCH] doc: Correct the "guix shell --container" example. Resent-From: Rostislav Svoboda Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 02 Apr 2024 17:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70151 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70151@debbugs.gnu.org Cc: Rostislav Svoboda X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17120804616748 (code B ref -1); Tue, 02 Apr 2024 17:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Apr 2024 17:54:21 +0000 Received: from localhost ([127.0.0.1]:56186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rriKw-0001kO-VE for submit@debbugs.gnu.org; Tue, 02 Apr 2024 13:54:20 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rriKp-0001j2-74 for submit@debbugs.gnu.org; Tue, 02 Apr 2024 13:54:15 -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 1rriKf-0000uk-0M for guix-patches@gnu.org; Tue, 02 Apr 2024 13:54:01 -0400 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rriKc-0000Df-Pk for guix-patches@gnu.org; Tue, 02 Apr 2024 13:54:00 -0400 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-516b80252c5so1365345e87.3 for ; Tue, 02 Apr 2024 10:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712080435; x=1712685235; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gSe6WfQ1PcxMCKT3J8/t5torUc8k++NKDIsI8fbMsPE=; b=Q0USvnZxK1ft8xfamPZ22Aj+Vq7ooRH0MU54ZtnUx4o3YnxB4RXvIAvS+ilwPqrGAO Zih8BaRgOr0ZrRIVD/4FI+6Sh6fbgcpvAykxvRaeIA6H6tvlbZd2PH6+SsYj53ubSL09 eLJNuucDUpWfldORpD4INYkhAwA70GV4lWWFRcbvy5WRaE4pwRzbFe4ctgixcKrmMXje kcblosArA1kJAn+UxpbVZXyaStd8pCmW0RCw+FWIulJb70VrxXx5AplokQYpesOVh9oN ZWpUzOb8IQamEuFkiHAYLgw0D9mQEejJCdr26C4AzstaE2MhN0VECHN1NAbKABguDJ/G dwvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712080435; x=1712685235; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gSe6WfQ1PcxMCKT3J8/t5torUc8k++NKDIsI8fbMsPE=; b=o6qw58zAFpCK258n6d+bC//FfQ0OIVxUwhby26Itj4qcktzEYFgHt3D4UxW6cj+XG5 iCOOYJvWqB7QRQlwPEXdbixU6f8eZxByXa/YSizgEKaLgWieXh/utlQflF1Hy0+AnesE nmjZQ5CClBPBmIk9XmyDLKKTyclAN7PEgYP3eipaammpyde+J2hQ2nPiyPN8onk1bIkv gQi6AAtP0Tq2MvAhXIQDzlKqBwODz0omY3HhFOGvyG+vpyYZI/fN5je6qSm2D7yGfhLB mwLINLHSravQ/kgtC4IOU7WU+ADRplYobmq6yXVHplssdwzKEfSWdS2W9iir21ClJhTl mFnw== X-Gm-Message-State: AOJu0YwNBT51DGyhEvb2eclY7zPH+CnaewrzxVtofXByBxLr+bpqq53L /MdIxzjkGyeQzQjDgESg8NVGmx28EZAmRJseEcYuq138vJjHDSMOcPTG84M1 X-Google-Smtp-Source: AGHT+IEwohQgJMaskTmYM6DZ7kSe/NsAhMGOeXdViaN3CLYnNWmwZMpQzvrxfCxU0JcnaOpv7U0p+g== X-Received: by 2002:a05:6512:e88:b0:516:a0cc:bfe5 with SMTP id bi8-20020a0565120e8800b00516a0ccbfe5mr8337171lfb.37.1712080435161; Tue, 02 Apr 2024 10:53:55 -0700 (PDT) Received: from ecke.fritz.box (dynamic-2a02-3100-5d70-7200-2e32-292f-e472-7e0f.310.pool.telefonica.de. [2a02:3100:5d70:7200:2e32:292f:e472:7e0f]) by smtp.googlemail.com with ESMTPSA id q4-20020aa7cc04000000b0056c1c4b870asm6944756edt.16.2024.04.02.10.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:53:54 -0700 (PDT) From: Rostislav Svoboda X-Google-Original-From: Rostislav Svoboda Date: Tue, 2 Apr 2024 19:53:16 +0200 Message-ID: <95ccaa3fb35cdfbbd4097df3425f4bece79c71e8.1712080385.git.Rostislav.Svoboda@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=rostislav.svoboda@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 3.15 X-Migadu-Queue-Id: 7905E171DA X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 3.15 X-TUID: MPmNiSKUl0VS * doc/guix.texi (Invoking @command{guix shell}): Add missing parameters --preserve='^XAUTHORITY$' --expose=$XAUTHORITY and adjust corresponding textual description Change-Id: Ib99c81c107ff9784708ae807ec9b3ab93ad75603 --- doc/guix.texi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 69a904473c..14856027ca 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -6268,12 +6268,18 @@ Invoking guix shell This @option{--container} option can also prove useful if you wish to run a security-sensitive application, such as a web browser, in an isolated environment. For example, the command below launches -Ungoogled-Chromium in an isolated environment, this time sharing network -access with the host and preserving its @code{DISPLAY} environment -variable, but without even sharing the current directory: +Ungoogled-Chromium in an isolated environment, which: +@itemize +@item shares network access with the host +@item inherits host's environment variables @code{DISPLAY} and @code{XAUTHORITY} +@item has access to host's authentication records from the @code{XAUTHORITY} +file +@item has no information about host's current directory +@end itemize @example guix shell --container --network --no-cwd ungoogled-chromium \ + --preserve='^XAUTHORITY$' --expose=$XAUTHORITY \ --preserve='^DISPLAY$' -- chromium @end example base-commit: 7af70efd7633b0d70091762cf43ce01a86176e8e -- 2.41.0