1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00
freebsd/sys/i386
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
..
acpica
bios
cloudabi32 Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
conf pccard: remove pccard device from all kernels 2021-07-13 20:39:31 -06:00
i386 Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
include Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
linux Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
pci
Makefile