guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] environment: container: Do not remount network files as read


From: Ludovic Courtès
Subject: Re: [PATCH] environment: container: Do not remount network files as read-only.
Date: Fri, 18 Mar 2016 21:51:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

"Thompson, David" <address@hidden> skribis:

> I noticed that 'guix environment --container --network' didn't work on
> an Ubuntu machine I was on, and the culprit was remounting things like
> /etc/resolv.conf read-only after the initial bind mount.

[...]

>                                              (file-system-mapping
>                                               (source file)
>                                               (target file)
> -                                             (writable? #f))))
> +                                             ;; An unpriviliged user might 
> not
> +                                             ;; be able to remount
> +                                             ;; /etc/resolv.conf as 
> read-only,
> +                                             ;; so we say that it is writable
> +                                             ;; here, even though in practice
> +                                             ;; it is not.
> +                                             (writable? #t))))
>                                       %network-configuration-files)

Not sure I understand: why would bind-mounting /etc/resolv.conf
read-only fail?

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]