Skip to content

seccomp: continue syscall from notifier

Christian Brauner bpf linux-kselftest lkml netdev stable 2 versions – Applied

Status from this message: Applied to my for-next/seccomp. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesApplied
  2. v13 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3seccomp: add SECCOMP_USER_NOTIF_FLAG_CONTINUEinclude/uapi/linux/seccomp.h kernel/seccomp.c+50 -62 replies
2/3seccomp: avoid overflow in implicit constant conversiontools/testing/selftests/seccomp/seccomp_bpf.c+2 -11 reply
3/3seccomp: test SECCOMP_USER_NOTIF_FLAG_CONTINUEtools/testing/selftests/seccomp/seccomp_bpf.c+107 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchTycho AndersenTyler Hicks
1/3R-b
2/3R-b R-b
3/3

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

Read the v2 thread

Cover letter [PATCH v2 0/3] seccomp: continue syscall from notifier

Hey everyone,

/* v2 */
This is the patchset coming out of the KSummit session Kees and I gave in Lisbon last week (cf. [3] which also contains slides with more details on related things such as deep argument inspection). The simple idea is to extend the seccomp notifier to allow for the continuation of a syscall. The rationale for this can be found in the commit message to [1]. For the curious there is more detail in [2]. This patchset would unblock supervising an extended set of syscalls such as mount() where a privileged process is supervising the syscalls of a lesser privileged process and emulates the syscall for the latter in userspace.
For more comments on security see [1] and the comments in include/uapi/linux/seccomp.h added by this patchset.

Kees, if you prefer a pr the series can be pulled from:
[email protected]:pub/scm/linux/kernel/git/brauner/linux tags/seccomp-notify-syscall-continue-v5.5

For anyone who wants to play with this it's sitting in:
https://git.kernel.org/pub/scm/linux/kernel/git/brauner/linux.git/log/?h=seccomp_syscall_continue

/* v1 */

- Kees Cook <[email protected]>:
- dropped patch because it is already present in linux-next [PATCH 2/4] seccomp: add two missing ptrace ifdefines

/* v0 */

Thanks!
Christian

*** BLURB HERE ***

Christian Brauner (3):
seccomp: add SECCOMP_USER_NOTIF_FLAG_CONTINUE
seccomp: avoid overflow in implicit constant conversion
seccomp: test SECCOMP_USER_NOTIF_FLAG_CONTINUE

 include/uapi/linux/seccomp.h                  |  28 +++++
 kernel/seccomp.c                              |  28 ++++-
 tools/testing/selftests/seccomp/seccomp_bpf.c | 110 +++++++++++++++++-
 3 files changed, 159 insertions(+), 7 deletions(-)
Signature · 1 line
2.23.0