Skip to content

Commit cf6d1dc

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 #22033. (cherry picked from commit 5f02870) (cherry picked from commit d08f6ff)
1 parent fa977f3 commit cf6d1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/seccomp-util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
283283
.name = "@default",
284284
.help = "System calls that are always permitted",
285285
.value =
286+
"arch_prctl\0" /* Used during platform-specific initialization by ld-linux.so. */
286287
"brk\0"
287288
"cacheflush\0"
288289
"clock_getres\0"
@@ -712,7 +713,6 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
712713
.name = "@process",
713714
.help = "Process control, execution, namespacing operations",
714715
.value =
715-
"arch_prctl\0"
716716
"capget\0" /* Able to query arbitrary processes */
717717
"clone\0"
718718
"clone3\0"

0 commit comments

Comments
 (0)