]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This application (veriexecctl) handles reading a fingerprints file
authorstevek <stevek@FreeBSD.org>
Wed, 20 Jun 2018 01:08:54 +0000 (01:08 +0000)
committerstevek <stevek@FreeBSD.org>
Wed, 20 Jun 2018 01:08:54 +0000 (01:08 +0000)
commit54257bb67297726411c863289badb65ee1992e14
tree6c571c253fc0de16feb6265d15dd5c055667adb7
parentfa4fef13c6405fd8b34a957318db1db88b2d3a19
This application (veriexecctl) handles reading a fingerprints file
containing paths, fingerprints, and optional option flags which in turn
get pushed into the MAC/veriexec meta-data store via the veriexec device.

The format of the fingerprints file is as follows:
path type fingerprint options

The type of fingerprint supported depends on what MAC/veriexec fingerprint
modules have been loaded into the system. The veriexecctl application is
able to determine which ones are available by consulting the
security.mac.veriexec.algorithms sysctl.

The following options are currently supported in MAC/veriexec and by the
veriexecctl application:

indirect
  If this option is set then the executable cannot be invoked directly, it
  can only be used as an interpreter in shell scripts.
file
  Indicates that the fingerprint is associated with a file, not an
  executable. Files have their fingerprints verified during open(2) and are
  automatically made read only. This option may be used to verify shared
  libraries have not been tampered with.
no_ptrace
  If this option is set then the executable cannot be traced with the
  ptrace(2) process tracing and debugging call.
trusted
  If this option is set then the executable is allowed to write to the
  mem(4) devices. By default, when verified execution is enforced, no
  process is allowed to write to the mem(4) devices.

The options are not case sensitive.

Reviewed by: jtl, wblock
Obtained from: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D8575
sbin/veriexecctl/Makefile [new file with mode: 0644]
sbin/veriexecctl/veriexecctl.8 [new file with mode: 0644]
sbin/veriexecctl/veriexecctl.c [new file with mode: 0644]
sbin/veriexecctl/veriexecctl_conf.l [new file with mode: 0644]
sbin/veriexecctl/veriexecctl_parse.y [new file with mode: 0644]