Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/procctl.2
Show First 20 Lines • Show All 448 Lines • ▼ Show 20 Lines | |||||
.Va si_errno | .Va si_errno | ||||
member of the | member of the | ||||
.Fa siginfo | .Fa siginfo | ||||
signal handler parameter is set to the syscall error value, | signal handler parameter is set to the syscall error value, | ||||
and the | and the | ||||
.Va si_code | .Va si_code | ||||
member is set to | member is set to | ||||
.Dv TRAP_CAP . | .Dv TRAP_CAP . | ||||
The system call number is stored in the | |||||
.Va si_syscall | |||||
field of the | |||||
.Fa siginfo | |||||
signal handler parameter. | |||||
The other system call parameters can be read from the | |||||
.Fa ucontext_t | |||||
but the system call number is typically stored in the register | |||||
that also contains the return value and so is unavailable in the | |||||
signal handler. | |||||
.Pp | .Pp | ||||
See | See | ||||
.Xr capsicum 4 | .Xr capsicum 4 | ||||
for more information about the capability mode. | for more information about the capability mode. | ||||
.It Dv PROC_TRAPCAP_STATUS | .It Dv PROC_TRAPCAP_STATUS | ||||
Return the current status of signalling capability mode access | Return the current status of signalling capability mode access | ||||
violations for the specified process. | violations for the specified process. | ||||
The integer value pointed to by the | The integer value pointed to by the | ||||
▲ Show 20 Lines • Show All 282 Lines • Show Last 20 Lines |