opnsense-src/sys/arm64/linux
David Chisnall cf98bc28d3 Pass the syscall number to capsicum permission-denied signals
The syscall number is stored in the same register as the syscall return
on amd64 (and possibly other architectures) and so it is impossible to
recover in the signal handler after the call has returned.  This small
tweak delivers it in the `si_value` field of the signal, which is
sufficient to catch capability violations and emulate them with a call
to a more-privileged process in the signal handler.

This reapplies 3a522ba1bc with a fix for
the static assertion failure on i386.

Approved by:	markj (mentor)

Reviewed by:	kib, bcr (manpages)

Differential Revision: https://reviews.freebsd.org/D29185
2021-07-16 18:06:44 +01:00
..
linux.h linux(4): implement coredumps on arm64 2021-07-03 08:06:31 +01:00
linux_dummy_machdep.c linux: deduplicate DUMMY() entries 2021-05-29 17:51:36 +00:00
linux_genassym.c linuxulator: add stub arm64 linux_genassym.c 2019-09-11 17:29:44 +00:00
linux_locore.asm linux: fix architecture returned for uname on aarch64 2021-05-28 23:02:02 +00:00
linux_machdep.c linux(4): implement coredumps on arm64 2021-07-03 08:06:31 +01:00
linux_proto.h linux(4): Regen for futex system call. 2021-06-10 14:16:40 +03:00
linux_ptrace.c Introduce arm64 linuxulator stubs 2018-06-18 19:34:34 +00:00
linux_support.s Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
linux_syscall.h Regen after 6d926e850d. 2021-05-28 09:04:17 +01:00
linux_syscalls.c Regen after 6d926e850d. 2021-05-28 09:04:17 +01:00
linux_sysent.c Regen after 6d926e850d. 2021-05-28 09:04:17 +01:00
linux_systrace_args.c linux(4): Regen for futex system call. 2021-06-10 14:16:40 +03:00
linux_sysvec.c Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
linux_vdso.lds.s Add stub arm64 linuxulator VDSO ldscript 2018-06-28 20:36:21 +00:00
Makefile sysent targets: further cleanup and deduplication 2020-01-18 20:37:45 +00:00
syscalls.conf
syscalls.master linux(4): Change Linux futex syscall definition to match Linux actual one. 2021-06-10 14:00:00 +03:00