From patchwork Tue Apr 2 17:53:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rostislav Svoboda X-Patchwork-Id: 62648 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9B84427BBE9; Tue, 2 Apr 2024 18:55:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2A22827BBE2 for ; Tue, 2 Apr 2024 18:55:08 +0100 (BST) 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 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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(-) base-commit: 7af70efd7633b0d70091762cf43ce01a86176e8e 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