Skip to content

a start to credentials c/r

Serge E. Hallyn containers 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 of 8 patches 5 repliesIn review

7 of 8 patches are in this archive. The cover letter announces 8.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8cr: break out new_user_ns()include/linux/user_namespace.h kernel/user_namespace.c+45 -160 replies
2/8cr: split core function out of some set*{u,g}id functionsinclude/linux/cred.h kernel/cred.c kernel/sys.c+143 -1130 replies
3/8cr: capabilities: define checkpoint and restore fnsinclude/linux/capability.h kernel/capability.c+86 -130 replies
4/8groups: move code to kernel/groups.ckernel/Makefile kernel/groups.c kernel/sys.c+289 -2830 replies
5/8groups: allow compilation on s390xkernel/groups.c+1 -01 reply
7/8cr: restore file->f_credcheckpoint/files.c include/linux/checkpoint_hdr.h+15 -30 replies
8/8user namespaces: debug refcountscheckpoint/process.c include/linux/user_namespace.h kernel/user.c +1 more+87 -20 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchSerge Hallyn
1/8
2/8
3/8
4/8A-b
5/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] a start to credentials c/r

Following is the next version of the credentials c/r patchset, on top of the c/r patchset at
git://git.ncl.cs.columbia.edu/pub/git/linux-cr.git

It implements checkpoint and restart of user, user namespaces, groups, supplementary groups, and struct cred.

There is a question as to what to do about LSM data at restart. Right now I'm ignoring it, which means that prepare_creds() should ensure that the restart tasks get the context of the task calling sys_restart(). I suspect the right thing to do is to add two new LSM hooks, one which checks current's authorization to restart from the checkpoint file, and one which determines the task->cred->security filed based upon any of:
1. current_security() of the task calling sys_restart()
2. the task->cred->security checkpointed in the ckpt file
3. the ->security of the checkpoint file

Oren, I think this version has all the changes you asked for except for restoring cred info for sysvipc.

thanks,
-serge