Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/procctl.2
Show All 23 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd August 31, 2019 | .Dd October 4, 2019 | ||||
.Dt PROCCTL 2 | .Dt PROCCTL 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm procctl | .Nm procctl | ||||
.Nd control processes | .Nd control processes | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
Show All 25 Lines | |||||
Control processes belonging to the process group with the ID | Control processes belonging to the process group with the ID | ||||
.Fa id . | .Fa id . | ||||
.El | .El | ||||
.Pp | .Pp | ||||
The control request to perform is specified by the | The control request to perform is specified by the | ||||
.Fa cmd | .Fa cmd | ||||
argument. | argument. | ||||
The following commands are supported: | The following commands are supported: | ||||
.Bl -tag -width PROC_TRAPCAP_STATUS | .Bl -tag -width PROC_LOGSIGEXIT_STATUS | ||||
.It Dv PROC_ASLR_CTL | .It Dv PROC_ASLR_CTL | ||||
Controls the Address Space Layout Randomization (ASLR) in the program | Controls the Address Space Layout Randomization (ASLR) in the program | ||||
images created | images created | ||||
by | by | ||||
.Xr execve 2 | .Xr execve 2 | ||||
in the specified process or its descendants that did not changed | in the specified process or its descendants that did not changed | ||||
the control nor modified it by other means. | the control nor modified it by other means. | ||||
The | The | ||||
Show All 24 Lines | |||||
.It Dv PROC_ASLR_FORCE_DISABLE | .It Dv PROC_ASLR_FORCE_DISABLE | ||||
.It Dv PROC_ASLR_NOFORCE | .It Dv PROC_ASLR_NOFORCE | ||||
.El | .El | ||||
.Pp | .Pp | ||||
If the currently executed image in the process itself has ASLR enabled, | If the currently executed image in the process itself has ASLR enabled, | ||||
the | the | ||||
.Dv PROC_ASLR_ACTIVE | .Dv PROC_ASLR_ACTIVE | ||||
flag is or-ed with the value listed above. | flag is or-ed with the value listed above. | ||||
.It Dv PROC_LOGSIGEXIT_CTL | |||||
Controls the logging of exits due to signals that would normally cause a core | |||||
dump. | |||||
The | |||||
.Va arg | |||||
parameter must point to an integer variable holding one of the following values: | |||||
.Bl -tag -width PROC_LOGSIGEXIT_FORCE_DISABLE | |||||
.It Dv PROC_LOGSIGEXIT_FORCE_ENABLE | |||||
Enables logging of exits due to signals that would normally cause a core dump. | |||||
Logging is done via | |||||
.Xr log 9 | |||||
with a log level of | |||||
.Dv LOG_INFO . | |||||
jilles: Perhaps make this "signals that would normally cause a core dump"? | |||||
.It Dv PROC_LOGSIGEXIT_FORCE_DISABLE | |||||
Disables the logging of exits due to signals that would normally cause a core | |||||
dump. | |||||
Not Done Inline ActionsOf course this uses log(9) but the syslog facility is "kern", right? jilles: Of course this uses log(9) but the syslog facility is "kern", right? | |||||
.It Dv PROC_LOGSIGEXIT_NOFORCE | |||||
The logging behavior is delegated to the | |||||
.Xr sysctl 3 | |||||
MIB variable | |||||
.Va kern.logsigexit . | |||||
.El | |||||
.It Dv PROC_LOGSIGEXIT_STATUS | |||||
Returns the current status of logging for the target process. | |||||
The | |||||
.Va arg | |||||
parameter must point to an integer variable, where one of the following values | |||||
is written: | |||||
.Bl -tag -width PROC_LOGSIGEXIT_FORCE_DISABLE | |||||
.It Dv PROC_LOGSIGEXIT_FORCE_ENABLE | |||||
.It Dv PROC_LOGSIGEXIT_FORCE_DISABLE | |||||
.It Dv PROC_LOGSIGEXIT_NOFORCE | |||||
.El | |||||
.It Dv PROC_PROTMAX_CTL | .It Dv PROC_PROTMAX_CTL | ||||
Controls implicit application of PROT_MAX protection equal to the | Controls implicit application of PROT_MAX protection equal to the | ||||
.Fa prot | .Fa prot | ||||
argument of the | argument of the | ||||
.Xr mmap 2 | .Xr mmap 2 | ||||
syscall, in the target process. | syscall, in the target process. | ||||
The | The | ||||
.Va arg | .Va arg | ||||
▲ Show 20 Lines • Show All 582 Lines • Show Last 20 Lines |
Perhaps make this "signals that would normally cause a core dump"?