1 .\" $NetBSD: paxctl.8,v 1.10 2008/08/11 10:58:02 christos Exp $
3 .\" Copyright 2006 Elad Efrat <elad@NetBSD.org>
4 .\" Copyright 2008 Christos Zoulas <christos@NetBSD.org>
5 .\" All rights reserved.
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. The name of the author may not be used to endorse or promote products
13 .\" derived from this software without specific prior written permission.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 .Dd September 17, 2009
31 .Nd list and modify PaX flags associated with an ELF program
39 utility is used to list and manipulate PaX flags associated with an ELF
41 The PaX flags signify to the loader the privilege protections to be applied
42 to mapped memory pages, and fuller explanations of the specific protections
47 Each flag can be prefixed either with a
51 sign to add or remove the flag, respectively.
53 The following flags are available:
56 Explicitly disable PaX ASLR (Address Space Layout Randomization) for
59 Explicitly enable PaX ASLR for
62 Explicitly disable PaX Segvguard for
65 Explicitly enable PaX Segvguard for
68 Explicitly disable PaX MPROTECT
75 Explicitly enable PaX MPROTECT
83 To view existing flags on a file, execute
97 utility first appeared in
102 utility is modeled after a tool of the same name available for Linux from the
105 .An Elad Efrat Aq elad@NetBSD.org
106 .An Christos Zoulas Aq christos@NetBSD.org
110 utility currently uses
113 sections to mark executables as PaX Segvguard enabled.
114 This will be done using
116 in the future so that we can control who does the marking and
117 not altering the binary file signature.