Skip to content

capabilities: Introduce CAP_CHECKPOINT_RESTORE

Adrian Reber linux-fsdevel linux-security-module lkml selinux 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 6 repliesIn review
  2. v56 patches 10 repliesSuperseded
  3. v43 patches 13 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v33 patches1 replySuperseded
v23 patches12 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7capabilities: Introduce CAP_CHECKPOINT_RESTOREinclude/linux/capability.h include/uapi/linux/capability.h security/selinux/include/classmap.h+17 -30 replies
2/7pid: use checkpoint_restore_ns_capable() for set_tidkernel/pid.c+1 -10 replies
3/7pid_namespace: use checkpoint_restore_ns_capable() for ns_last_pidkernel/pid_namespace.c+1 -10 replies
4/7proc: allow access in init userns for map_files with CAP_CHECKPOINT_RESTOREfs/proc/base.c+4 -41 reply
5/7prctl: Allow local CAP_CHECKPOINT_RESTORE to change /proc/self/exekernel/sys.c+7 -40 replies
6/7prctl: exe link permission error changed from -EINVAL to -EPERMkernel/sys.c+1 -11 reply
7/7selftests: add clone3() CAP_CHECKPOINT_RESTORE testtools/testing/selftests/clone3/.gitignore tools/testing/selftests/clone3/Makefile tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c+181 -10 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchChristian BraunerSerge HallynCyrill Gorcunov
1/7A-b R-b
2/7A-b R-b
3/7A-b R-b
4/7R-b R-b
5/7
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/7] capabilities: Introduce CAP_CHECKPOINT_RESTORE

This is v6 of the 'Introduce CAP_CHECKPOINT_RESTORE' patchset. The changes to v5 are:

* split patch dealing with /proc/self/exe into two patches:
* first patch to enable changing it with CAP_CHECKPOINT_RESTORE and detailed history in the commit message
* second patch changes -EINVAL to -EPERM
* use kselftest_harness.h infrastructure for test
* replace if (!capable(CAP_SYS_ADMIN) || !capable(CAP_CHECKPOINT_RESTORE)) with if (!checkpoint_restore_ns_capable(&init_user_ns))

Adrian Reber (5):
capabilities: Introduce CAP_CHECKPOINT_RESTORE
pid: use checkpoint_restore_ns_capable() for set_tid
pid_namespace: use checkpoint_restore_ns_capable() for ns_last_pid
proc: allow access in init userns for map_files with
CAP_CHECKPOINT_RESTORE
selftests: add clone3() CAP_CHECKPOINT_RESTORE test

Nicolas Viennot (2):
prctl: Allow local CAP_CHECKPOINT_RESTORE to change /proc/self/exe
prctl: exe link permission error changed from -EINVAL to -EPERM

 fs/proc/base.c                                |   8 +-
 include/linux/capability.h                    |   6 +
 include/uapi/linux/capability.h               |   9 +-
 kernel/pid.c                                  |   2 +-
 kernel/pid_namespace.c                        |   2 +-
 kernel/sys.c                                  |  13 +-
 security/selinux/include/classmap.h           |   5 +-
 tools/testing/selftests/clone3/.gitignore     |   1 +
 tools/testing/selftests/clone3/Makefile       |   4 +-
 .../clone3/clone3_cap_checkpoint_restore.c    | 177 ++++++++++++++++++
 10 files changed, 212 insertions(+), 15 deletions(-)
 create mode 100644 tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c

base-commit: d31958b30ea3b7b6e522d6bf449427748ad45822

Signature · 1 line
2.26.2