2 .\" Copyright (c) 2018, Juniper Networks, Inc.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
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.
13 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
14 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
15 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
16 .\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
17 .\" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18 .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
19 .\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 .\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 .Nd manipulate state of mac_veriexec
47 is a utility to query or manipulate the state of
50 The first form is for loading a
53 first verifies a digital signature of the
55 and if successful, parses it and feeds its content to kernel.
68 is used to test whether
81 .Bl -tag -width enforce
83 set automatically when first
88 will begin checking files.
89 This state can only be entered from the
102 prevent loading of any more manifests.
105 When setting or querying the state, it is sufficient to provide
106 a unique prefix of the desired state.
116 is the minimum required to avoid confusion with
119 The manifest contains a mapping of relative pathnames to fingerprints
122 .Bd -literal -offset indent
123 sbin/veriexec sha256=f22136...c0ff71 no_ptrace
124 usr/bin/python sha256=5944d9...876525 indirect
125 sbin/somedaemon sha256=77fc2f...63f5687 label=mod1/val1,mod2/val2
127 The supported flags are:
128 .Bl -tag -width indirect
130 the executable cannot be run directly,
131 but can be used as an interpreter for example via:
132 .Bd -literal -offset indent
136 do not allow running executable under a debugger.
137 Useful for any application critical to the security state of system.
142 argument allows associating a
149 (if it supports labels)
150 pay any attention to the content of the label
151 they are provided for the use of other
155 The Verified Exec system first appeared in
157 This utility derrives from the one found in Junos.
158 The key difference is the requirement that manifest files