Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/aout.4
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
.Vt pid_t , | .Vt pid_t , | ||||
and allow process id's up to 99999. | and allow process id's up to 99999. | ||||
Such values cannot be represented by old | Such values cannot be represented by old | ||||
.Vt pid_t , | .Vt pid_t , | ||||
mostly causing issues for processes using | mostly causing issues for processes using | ||||
.Xr wait 2 | .Xr wait 2 | ||||
syscalls, for example shells. | syscalls, for example shells. | ||||
Set the sysctl to 30000 to work around the problem. | Set the sysctl to 30000 to work around the problem. | ||||
.It Xo Va kern.elf32.read_exec | |||||
.Xc | |||||
Set to 1 to force any accessible memory mapping performed by 32-bit | |||||
process to allow execution, see | |||||
.Xr mmap 2 . | |||||
Old i386 CPUs did not have a bit in PTE which disallowed execution | |||||
from the page, so many old programs did not specify | |||||
.Va PROT_EXEC | |||||
even for mapping of executable code. | |||||
The sysctl forces | |||||
.Va PROT_EXEC | |||||
if mapping has any access allowed at all. | |||||
The setting is only needed if the host architecture allows | |||||
non-executable mappings. | |||||
.El | .El | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr execve 2 , | .Xr execve 2 , | ||||
.Xr a.out 5 , | .Xr a.out 5 , | ||||
.Xr elf 5 , | .Xr elf 5 , | ||||
.Xr sysctl 8 | .Xr sysctl 8 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
Show All 18 Lines |