1 .\" Copyright (c) 2019 The FreeBSD Foundation, Inc.
2 .\" All rights reserved.
4 .\" This documentation was written by
5 .\" Konstantin Belousov <kib@FreeBSD.org> under sponsorship
6 .\" from the FreeBSD Foundation.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 .Nd Control some process execution aspects
40 .Fl p Ar pid | command
44 command modifies the execution parameter of existing process
47 argument, or starts execution of the new program
49 with the execution parameter set for it.
51 Which execution parameter is changed, selected by the mandatory
57 .Bl -tag -width trapcap
59 Control the Address Space Layout Randomization.
60 Only applicable to the new process spawned.
62 Control the permission for debuggers to attach.
63 Note that process is only allowed to enable tracing for itself,
64 not for any other process.
66 Controls the signalling of capability mode access violations.
68 Controls the implicit PROT_MAX application for
71 Controls disabling the setuid and sgid bits for
74 Controls the write exclusive execute mode for mappings.
76 Controls the KPTI enable, AMD64 only.
78 Control limiting usermode process address space to 48 bits of address,
79 AMD64 only, on machines capable of 57-bit addressing.
84 specifies if the selected
86 should be enabled or disabled.
91 with the default value being
96 for detailed description of each mode effects and interaction with other
97 process control facilities.
101 switch makes the utility query and print the current setting for
105 requires the query target process specification with
112 To disable debuggers attachment to the process 1020, execute
113 .Dl "proccontrol -m trace -s disable -p 1020"
117 program in a mode where capability access violations cause
120 .Dl "proccontrol -m trapcap uniq"
122 To query the current ASLR enablement mode for the running
124 .Dl "proccontrol -m aslr -q -p 1020"
139 command and this manual page were written by
140 .An Konstantin Belousov Aq Mt kib@freebsd.org
141 under sponsorship from The FreeBSD Foundation.