]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
seccomp: allowlist uretprobe() syscall
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Oct 2024 07:46:14 +0000 (09:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 11 Oct 2024 09:57:40 +0000 (11:57 +0200)
This is a new syscall provided by the kernel used to implement faster
uprobes. It's not supposed to be called by userspace, but only by kernel
generated uprobe code.

It should be fine to allow this, as the kernel authenticates the
invocation itself, and we shouldn't break compat with things.

Note that this allowlisting is not sufficient to make ureprobe() work.
libseccomp must be tought the syscall too, but this can happen
independently.

Fixes: #34615
src/shared/seccomp-util.c

index b251e396727f5e9080a94ffef9b9cac20b4fd5ac..bd1bd5c0e3f24cd721417cc867c31e79f1e593bd 100644 (file)
@@ -382,6 +382,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "sigreturn\0"
                 "time\0"
                 "ugetrlimit\0"
+                "uretprobe\0"
         },
         [SYSCALL_FILTER_SET_AIO] = {
                 .name = "@aio",