1 // SPDX-License-Identifier: MIT
2 // SPDX-FileCopyrightText: 2024 Michael Jeanson <mjeanson@efficios.com>
10 * Apply a seccomp policy that blocks access to the rseq syscall and returns
13 static __attribute__((constructor
))
14 void disable_rseq_syscall(void)
18 ctx
= seccomp_init(SCMP_ACT_ALLOW
);
19 seccomp_rule_add(ctx
, SCMP_ACT_ERRNO(ENOSYS
), SCMP_SYS(rseq
), 0);
This page took 0.124977 seconds and 4 git commands to generate.