All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Webb <chris@arachsys.com>
To: linux-kernel@vger.kernel.org
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Subject: Simple tool using user namespaces to build containers
Date: Fri, 12 Jul 2013 12:03:02 +0100	[thread overview]
Message-ID: <20130712110301.GA10675@arachsys.com> (raw)

Prompted by the merge of support for user namespaces in recent kernels, I've
written a couple of simple standalone tools that use them together with
mount, PID and other namespaces to implement containers.

I've put these utilities up here in case they're of use to anyone else, and
also as demonstrations of how easy-to-use these new kernel interfaces are:

  https://github.com/arachsys/containers
  http://arachsys.github.io/downloads/containers-0.9.tar.gz
  http://arachsys.github.io/downloads/containers-0.9.tar.sign

They support the same /etc/subuid and /etc/subgid files that Eric Biederman
proposed in his patch set against the shadow package, which will hopefully
become a fairly standard mechanism for delegating extra users and groups.

User namespaces arrived without much fanfare, but they're really useful new
functionality. I was pleasantly surprised how straightforward it was to
build both fully isolated containers, and also a replacement for fakeroot
which allows me to chroot to build packages.

Many thanks to Eric for working on this and also for patiently explaining
the rationale behind the design decision to remap user IDs on the kernel
list recently.

Cheers,

Chris.

                 reply	other threads:[~2013-07-12 11:03 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=20130712110301.GA10675@arachsys.com \
    --to=chris@arachsys.com \
    --cc=ebiederm@xmission.com \
    --cc=linux-kernel@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.