95 lines
3.4 KiB
Groff
95 lines
3.4 KiB
Groff
.\" $NetBSD: veriexecctl.8,v 1.3 2003/01/19 21:25:38 atatat Exp $
|
|
.\"
|
|
.\" Copyright (c) 1999
|
|
.\" Brett Lymn - blymn@baea.com.au, brett_lymn@yahoo.com.au
|
|
.\"
|
|
.\" This code is donated to The NetBSD Foundation by the author.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 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.
|
|
.\" 3. The name of the Author may not be used to endorse or promote
|
|
.\" products 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.
|
|
.\"
|
|
.\" $Id: veriexecctl.8,v 1.3 2003/01/19 21:25:38 atatat Exp $
|
|
.\"
|
|
.Dd October 29, 2002
|
|
.Dt VERIEXECCTL 8
|
|
.Os
|
|
.Sh NAME
|
|
.Nm veriexecctl
|
|
.Nd load verified exec fingerprints
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Ar fingerprints
|
|
.Sh DESCRIPTION
|
|
The
|
|
.Nm
|
|
command loads the in-kernel fingerprint table from the fingerprints
|
|
given in the
|
|
.Ar fingerprints
|
|
file.
|
|
Once loaded the kernel can then validate executed programs
|
|
or files against the loaded fingerprints and report when fingerprints
|
|
do not match.
|
|
.Pp
|
|
The
|
|
.Ar fingerprints
|
|
file contains lines of fields (separated by one or more whitespace
|
|
characters) of the form:
|
|
.Dl path fingerprint type options
|
|
Where path is the full path to the executable and fingerprint is a
|
|
hexadecimal representation of the fingerprint for the executable.
|
|
Type is the type of fingerprint used, currently this may be either
|
|
md5 or sha1.
|
|
Other fingerprints may be available depending on kernel support.
|
|
Options are the associated options for the executable.
|
|
Currently there are two valid options:
|
|
.Bl -tag -width INDIRECT -compact
|
|
.It Pa INDIRECT
|
|
If this option is set then the executable cannot be invoked directly, it
|
|
can only be used as an interpreter in shell scripts.
|
|
.It Pa FILE
|
|
Indicates that the fingerprint is associated with a file, not an
|
|
executable.
|
|
Files have their fingerprints verified during
|
|
.Xr open 2
|
|
and are automatically made read only.
|
|
.El
|
|
There must be only one executable/fingerprint pair per line.
|
|
Comments are indicated by the first character of a line being a
|
|
.Sq \&#
|
|
character.
|
|
.Sh FILES
|
|
.Bl -tag -width /dev/veriexec -compact
|
|
.It Pa /dev/veriexec
|
|
verified executable device node
|
|
.El
|
|
.Sh HISTORY
|
|
.Nm
|
|
first appeared in
|
|
.Nx 2.0 .
|
|
.Sh NOTES
|
|
.Nm
|
|
requires the kernel to have been configured with the
|
|
.Dv VERIFIED_EXEC
|
|
option and the verifiedexec pseudo-device.
|