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