VERIEXEC(5)
okay so you're reading the veriexec(5) manual page β File Formats Manual energy, and it's literally all about the format for the Veriexec signatures file π
β¨ NAME β¨
veriexec β format for the Veriexec signatures file π
πΈ DESCRIPTION πΈ
Veriexec loads entries to the in-kernel database from a file describing files to be monitored and the type of monitoring. This file is often referred to as the βsignatures databaseβ or βsignatures fileβ β¨
The signatures file can be easily created using veriexecgen(8) π«Ά
π¦ SIGNATURES DATABASE FORMAT π¦
The signatures database has a line based structure, where each line has several fields separated by white-space (space, tabs, etc.) taking the following form:
path type fingerprint flags
The description for each field is as follows:
pathβ The full path to the file. White-space characters can be escaped if prefixed with a\πtypeβ Type of fingerprinting algorithm used for the file.
Requires kernel support for the specified algorithm. List of fingerprinting algorithms supported by the kernel can be obtained by using the following command:
# sysctl kern.veriexec.algorithms
fingerprintβ The fingerprint for the file. Can (usually) be generated using the following command:
% cksum -a <algorithm> <file>
flagsβ Optional listing of entry flags, separated by a comma. These may include:directβ Allow direct execution only.
Execution of a program is said to be βdirectβ when the program is invoked by the user (either in a script, manually typing it, etc.) via the execve(2) syscall. π₯
indirectβ Allow indirect execution only.
Execution of a program is said to be βindirectβ if it is invoked by the kernel to interpret a script (βhash-bangβ). π
fileβ Allow opening the file only, via theopen(2)syscall (no execution is allowed). πuntrustedβ Indicate that the file is located on untrusted storage and its fingerprint evaluation status should not be cached, but rather re-calculated each time it is accessed.
Fingerprints for untrusted files will always be evaluated on load. π
To improve readability of the signatures file, the following aliases are provided:
programβ An alias for βdirectβ.interpreterβ An alias for βindirectβscriptβ An alias for both βdirectβ and βfileβ.libraryβ An alias for both βfileβ and βindirectβ.
If no flags are specified, βdirectβ is assumed. π
Comments begin with a # character and span to the end of the line.
π SEE ALSO π
veriexec(4), security(7), veriexec(8), veriexecctl(8), veriexecgen(8)
π HISTORY π
veriexec first appeared in NetBSD 2.0.
π AUTHORS π
- Brett Lymn
<blymn@NetBSD.org> - Elad Efrat
<elad@NetBSD.org>
sign-off time: this veriexec(5) page is from Debian, dated March 18, 2011 β periodt π
β¨
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 1999 Brett Lymn - blymn@baea.com.au, brett_lymn@yahoo.com.au
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms