freebsd-dev/sys/mips
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
..
atheros [ar71xx] During reset, don't spin, just keep trying 2021-05-22 15:53:00 -07:00
beri Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
broadcom [mips/broadcom] set sysctl "hw.model" by SoC ChipCommon ID 2021-05-28 23:35:37 +03:00
cavium Fix octeon_pmc post-r334827 2020-11-18 17:37:01 +00:00
conf pccard: remove pccard device from all kernels 2021-07-13 20:39:31 -06:00
include Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
ingenic Fix some common typos in comments 2021-03-13 18:26:15 +01:00
malta mips: fix build w/ TICK_USE_MALTA_RTC defined 2020-12-25 19:47:45 +01:00
mediatek mtk: Add printing of CPU model 2021-06-11 14:28:54 -06:00
mips Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
nlm crypto: Add a new type of crypto buffer for a single mbuf. 2021-05-25 16:59:18 -07:00