Skip to content

execns syscall and user namespace

Cedric Le Goater lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 96 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7add execns syscall core routinefs/exec.c include/linux/sched.h include/linux/syscalls.h +1 more+88 -00 replies
2/7add execns syscall to s390arch/s390/kernel/entry.S arch/s390/kernel/entry64.S arch/s390/kernel/process.c +2 more+52 -15 replies
3/7add execns syscall to x86_64arch/x86_64/kernel/entry.S arch/x86_64/kernel/functionlist arch/x86_64/kernel/process.c +1 more+61 -10 replies
4/7add execns syscall to i386arch/i386/kernel/process.c arch/i386/kernel/syscall_table.S include/asm-i386/unistd.h+34 -10 replies
5/7add user namespacefs/ioprio.c include/linux/init_task.h include/linux/nsproxy.h +6 more+208 -1870 replies
6/7add the user namespace to the execns syscallfs/exec.c kernel/fork.c+23 -40 replies
7/7forbid the use of the unshare syscall on ipc namespaceskernel/fork.c+5 -182 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH -mm 0/7] execns syscall and user namespace

Hello !

The following patchset adds the user namespace and a new syscall execns.

The user namespace will allow a process to unshare its user_struct table, resetting at the same time its own user_struct and all the associated accounting.

The purpose of execns is to make sure that a process unsharing a namespace is free from any reference in the previous namespace. the execve() semantic seems to be the best candidate as it already flushes the previous process context.

Thanks for reviewing, sharing, flaming !

C.