all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: "Thompson, David" <dthompson2@worcester.edu>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] environment: container: Do not remount network files as read-only.
Date: Fri, 18 Mar 2016 21:51:42 +0100	[thread overview]
Message-ID: <87wpozldb5.fsf@gnu.org> (raw)
In-Reply-To: <CAJ=RwfbbLB91j7xXpR00jRDW0_CgQ4rsTNXKe08ZotOc1+TSNg@mail.gmail.com> (David Thompson's message of "Thu, 17 Mar 2016 14:32:56 -0400")

"Thompson, David" <dthompson2@worcester.edu> 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	other threads:[~2016-03-18 20:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-17 18:32 [PATCH] environment: container: Do not remount network files as read-only Thompson, David
2016-03-18 20:51 ` Ludovic Courtès [this message]
2016-03-26 14:06   ` Thompson, David
2016-03-26 16:29     ` Drew C
2016-03-26 16:49       ` Thompson, David
2016-03-26 16:59         ` Drew C
2016-03-26 18:43     ` Ludovic Courtès
2016-03-26 18:54       ` Drew C
2016-03-26 19:23       ` Thompson, David
2016-03-27 17:43         ` Ludovic Courtès
2016-03-28  0:32           ` Thompson, David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpozldb5.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=dthompson2@worcester.edu \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.