LWN.net Logo

user namespaces: continue targetting capabilities

From:  Serge Hallyn <serge@hallyn.com>
To:  linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org
Subject:  [RFC PATCH 0/14] user namespaces: continue targetting capabilities
Date:  Tue, 12 Jul 2011 23:30:38 +0000
Message-ID:  <1310513452-13397-1-git-send-email-serge@hallyn.com>
Cc:  dhowells@redhat.com, ebiederm@xmission.com
Archive-link:  Article, Thread

Hi,

here is a set of patches to continue targetting capabilities
where appropriate.  This set goes about as far as is possible
without making the VFS user namespace aware, meaning that the
VFS can provide a namespaced view of userids, i.e init_user_ns
sees file owner 500, while child user ns sees file owner 0 or
1000.

With this set applied, you can create and configure veth netdevs
if your user namespace owns your network namespace (and you are
privileged), but not otherwise.

Some simple testcases can be found at
https://code.launchpad.net/~serge-hallyn/+junk/usernstests with
packages at https://launchpad.net/~serge-hallyn/+archive/userns-natty

Feedback very much appreciated.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2011, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds