Skip to content

seccomp: continue syscall from notifier

Christian Brauner bpf linux-kselftest lkml netdev stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4seccomp: add SECCOMP_RET_USER_NOTIF_ALLOWinclude/uapi/linux/seccomp.h kernel/seccomp.c+22 -44 replies
2/4seccomp: add two missing ptrace ifdefinestools/testing/selftests/seccomp/seccomp_bpf.c+8 -06 replies
3/4seccomp: avoid overflow in implicit constant conversiontools/testing/selftests/seccomp/seccomp_bpf.c+2 -11 reply
4/4seccomp: test SECCOMP_RET_USER_NOTIF_ALLOWtools/testing/selftests/seccomp/seccomp_bpf.c+99 -00 replies

Reviews trailers per patch

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

PatchTyler HicksTycho Andersen
1/4R-b
2/4R-b
3/4R-b
4/4

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/4] seccomp: continue syscall from notifier

Hey everyone,

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].

Thanks!
Christian

/* References */
[1]: [PATCH 1/4] seccomp: add SECCOMP_RET_USER_NOTIF_ALLOW [2]: https://lore.kernel.org/r/[email protected]
[3]: https://linuxplumbersconf.org/event/4/contributions/560

Christian Brauner (4):
seccomp: add SECCOMP_RET_USER_NOTIF_ALLOW
seccomp: add two missing ptrace ifdefines
seccomp: avoid overflow in implicit constant conversion
seccomp: test SECCOMP_RET_USER_NOTIF_ALLOW

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