GNU bug report logs - #70151
[PATCH] doc: Correct the "guix shell --container" example.

Previous Next

Package: guix-patches;

Reported by: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>

Date: Tue, 2 Apr 2024 17:55:02 UTC

Severity: normal

Tags: patch

Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
Subject: bug#70151: closed (Re: [PATCH] doc: Correct the "guix shell
 --container" example.)
Date: Sat, 20 Apr 2024 08:57:04 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#70151: [PATCH] doc: Correct the "guix shell --container" example.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 70151 <at> debbugs.gnu.org.

-- 
70151: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70151
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
Cc: 70151-done <at> debbugs.gnu.org
Subject: Re: [PATCH] doc: Correct the "guix shell --container" example.
Date: Sat, 20 Apr 2024 10:56:04 +0200
Am Montag, dem 08.04.2024 um 13:34 +0200 schrieb Rostislav Svoboda:
> > You need to properly quote "${XAUTHORITY}"
> 
> Fixed. See attachment.
Fixed your markup and pushed.

Cheers

[Message part 3 (message/rfc822, inline)]
From: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Rostislav Svoboda <Rostislav.Svoboda <at> gmail.com>
Subject: [PATCH] doc: Correct the "guix shell --container" example.
Date: Tue,  2 Apr 2024 19:53:16 +0200
* 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




This bug report was last modified 1 year and 32 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.