Skip to content

Commit d08f6ff

Browse files
committed
seccomp: move arch_prctl to @default
It was reported as used by the linker: > [It is] called in the setup of ld-linux-x86-64.so.2 from _dl_sysdep_start. > My local call stack (with LTO): > > #0 init_cpu_features.constprop.0 (/usr/lib64/ld-linux-x86-64.so.2) > #1 _dl_sysdep_start (/usr/lib64/ld-linux-x86-64.so.2) > #2 _dl_start (/usr/lib64/ld-linux-x86-64.so.2) > #3 _start (/usr/lib64/ld-linux-x86-64.so.2) > > Looking through the source, I think it's this (links for glibc 2.34): > - First dl_platform_init calls _dl_x86_init_cpu_features, a wrapper for init_cpu_features. > - Then init_cpu_features calls get_cet_status. > - At last, get_cet_status invokes arch_prctl. Fixes systemd#22033. (cherry picked from commit 5f02870)
1 parent 7dbfdef commit d08f6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/seccomp-util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
286286
.name = "@default",
287287
.help = "System calls that are always permitted",
288288
.value =
289+
"arch_prctl\0" /* Used during platform-specific initialization by ld-linux.so. */
289290
"brk\0"
290291
"cacheflush\0"
291292
"clock_getres\0"
@@ -715,7 +716,6 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
715716
.name = "@process",
716717
.help = "Process control, execution, namespacing operations",
717718
.value =
718-
"arch_prctl\0"
719719
"capget\0" /* Able to query arbitrary processes */
720720
"clone\0"
721721
"clone3\0"

0 commit comments

Comments
 (0)