2007-03-05 00:16:46 +03:00
|
|
|
.\" $NetBSD: paxctl.8,v 1.2 2007/03/04 21:16:46 christos Exp $
|
2006-05-16 04:08:24 +04:00
|
|
|
.\"
|
|
|
|
.\" Copyright 2006 Elad Efrat <elad@NetBSD.org>
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2007-01-09 15:49:36 +03:00
|
|
|
.\" 3. The name of the author may not be used to endorse or promote products
|
2006-05-16 04:08:24 +04:00
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 SUCH DAMAGE.
|
|
|
|
.\"
|
2007-03-05 00:16:46 +03:00
|
|
|
.Dd March 4, 2007
|
2007-01-30 22:40:07 +03:00
|
|
|
.Dt PAXCTL 8
|
2006-05-16 04:08:24 +04:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm paxctl
|
|
|
|
.Nd list and modify PaX flags associated with an ELF program
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl l
|
|
|
|
.Ar program
|
|
|
|
.Nm
|
|
|
|
.Ar flags
|
|
|
|
.Ar program
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is used to list and manipulate PaX flags associated with an ELF
|
|
|
|
program.
|
|
|
|
.Pp
|
|
|
|
Each flag can be prefixed either with a
|
|
|
|
.Dq +
|
|
|
|
or a
|
|
|
|
.Dq -
|
|
|
|
sign to add or remove the flag, respectively.
|
|
|
|
.Pp
|
|
|
|
The following flags are available:
|
|
|
|
.Bl -tag -width flag
|
2006-11-22 05:02:51 +03:00
|
|
|
.It g
|
|
|
|
Explicitly disable PaX Segvguard for
|
|
|
|
.Ar program .
|
|
|
|
.It G
|
|
|
|
Explicitly enable PaX Segvguard for
|
|
|
|
.Ar program .
|
2006-05-16 04:08:24 +04:00
|
|
|
.It m
|
|
|
|
Explicitly disable PaX MPROTECT
|
|
|
|
.Xr ( mprotect 2
|
|
|
|
restrictions) for
|
|
|
|
.Ar program .
|
|
|
|
.It M
|
|
|
|
Explicitly enable PaX MPROTECT
|
|
|
|
.Xr ( mprotect 2
|
|
|
|
restrictions) for
|
|
|
|
.Ar program .
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr sysctl 3 ,
|
2006-10-31 04:27:53 +03:00
|
|
|
.Xr options 4 ,
|
|
|
|
.Xr security 8 ,
|
2006-05-16 04:08:24 +04:00
|
|
|
.Xr sysctl 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared in
|
|
|
|
.Nx 4.0 .
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is modeled after a tool of the same name available for Linux from the
|
|
|
|
PaX project.
|
2007-03-05 00:16:46 +03:00
|
|
|
.Sh BUGS
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility currently utilizes
|
|
|
|
.Xr elf 5
|
|
|
|
.Dq note
|
|
|
|
sections to mark executables as PaX Servguard enabled.
|
|
|
|
This will be done using
|
|
|
|
.Xr fileassoc 9
|
|
|
|
in the future so that we can control who does the marking.
|
2006-10-31 04:27:53 +03:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Elad Efrat Aq elad@NetBSD.org
|