Skip to content

user namespaces: introduction

Serge E. Hallyn containers 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6user namespaces: introduce user_struct->user_namespace relationshipinclude/linux/sched.h include/linux/user_namespace.h kernel/user.c +1 more+20 -92 replies
2/6user namespaces: move user_ns from nsproxy into user structinclude/linux/init_task.h include/linux/key.h include/linux/nsproxy.h +8 more+45 -852 replies
3/6user namespaces: rig generic_permission for simple userns checkfs/namei.c+13 -10 replies
4/6user namespaces: add user_ns to super blockfs/namei.c fs/super.c include/linux/fs.h+12 -29 replies
5/6user namespaces: refuse create in other user_nsfs/namei.c+6 -00 replies
6/6user_namespace: move put_user_ns outside lockkernel/user.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] user namespaces: introduction

Following is a set of user namespace patches I've been playing with this week.

The first two patches are I believe fixes which should go in regardless of which direction user namespaces take.

The rest of the patches are one approach to providing default cross-userns isolation for files. Any filesystem can provide its own intelligent cross-userns userid equivalence checks by defining its own permission function, which is what Eric and I have been talking about doing.

The next step is probably to handle some of the task-to-task cross-userns checks.

Comments appreciated.

thanks,
-serge