From: Robin Kreis <r.kreis@uni-bremen.de>
To: netdev@vger.kernel.org
Subject: ip netns exec after unshare --map-root-user
Date: Thu, 8 May 2014 14:06:03 +0200 [thread overview]
Message-ID: <20140508140603.67734f6e@sat> (raw)
Hi!
After 'unshare --map-root-user --mount' and ensuring that /var/run/netns
is writable (possibly by binding another directory there), a network
namespace can be created by running 'ip netns create test'.
However, 'ip netns exec test sh' exits when it attempts to
unmount /sys. I don't think that the failing to umount /sys should be a
fatal error, because the following mount call ensures that /sys has the
right contents. I checked that 'ip netns exec' works fine when the
error returned by umount is ignored. Should I submit a patch to
iproute2?
Please CC me, because I'm not subscribed to the mailing list.
Greetings,
Robin Kreis
reply other threads:[~2014-05-08 12:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20140508140603.67734f6e@sat \
--to=r.kreis@uni-bremen.de \
--cc=netdev@vger.kernel.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.
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.