Subject: bug#45066: closed (Re: bug#45066: guix environment --container is borken)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 06 Dec 2020 21:03:02 +0000

Your bug report

#45066: guix environment --container is borken

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

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
45066: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45066
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#45066: guix environment --container is borken
From: Marius Bakke <[email-masked]>
To: zimoun <[email-masked]>, luhux <[email-masked]>, [email-masked]
Date: Sun, 06 Dec 2020 22:02:14 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

zimoun <[email-masked]> skriver:

> Hi,
>
> On Sun, 06 Dec 2020 at 16:59, luhux <[email-masked]> wrote:
>> In the new guix `guix environment --container` is borken.
>
> It is not broken.

It was broken.  :-)

> Have you tried the recommendation?
>
> --8<---------------cut here---------------start------------->8---
> $ su -
> Password: 
> # echo 1 > /proc/sys/kernel/unprivileged_userns_clone 
> # logout
>
> $ guix environment -C --ad-hoc hello -- hello 
> Hello, world!
> --8<---------------cut here---------------end--------------->8---

...because this only works on the Debian kernel.

We need to find a more robust test for user namespaces, but for now I
reverted the commit.

Closing!  Thanks for the report luhux.  :-)

Subject: guix environment --container is borken
From: luhux <[email-masked]>
To: [email-masked]
Date: Sun, 06 Dec 2020 16:59:41 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

In the new guix `guix environment --container` is borken.

The reason lies in the 8bc5ca5160db3d82bd5b6b2b7ed80c96f42bd33e of the master branch:

It checks if the file exists and then returns a boolean

None of my 3 Guix System machines have this file but they can still run unprivileged containers.

Please fix it,

thanks very much

luhux