freebsd-dev/share/mk
Marcin Wojtas b0fefb25c5 Create kernel module to parse Veriexec manifest based on envs
The current approach of injecting manifest into mac_veriexec is to
verify the integrity of it in userspace (veriexec (8)) and pass its
entries into kernel using a char device (/dev/veriexec).
This requires verifying root partition integrity in loader,
for example by using memory disk and checking its hash.
Otherwise if rootfs is compromised an attacker could inject their own data.

This patch introduces an option to parse manifest in kernel based on envs.
The loader sets manifest path and digest.
EVENTHANDLER is used to launch the module right after the rootfs is mounted.
It has to be done this way, since one might want to verify integrity of the init file.
This means that manifest is required to be present on the root partition.
Note that the envs have to be set right before boot to make sure that no one can spoof them.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: sjg
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D19281
2019-04-03 03:57:37 +00:00
..
atf.test.mk
auto.obj.mk
bsd.arch.inc.mk
bsd.clang-analyze.mk
bsd.compiler.mk
bsd.confs.mk Fix STAGE_DIR.* to handle indirect *DIR variables. 2019-01-15 23:37:49 +00:00
bsd.cpu.mk Catch up with Clang 8.0. 2019-03-21 21:45:02 +00:00
bsd.crunchgen.mk
bsd.dep.mk
bsd.dirs.mk
bsd.doc.mk
bsd.dtb.mk
bsd.endian.mk
bsd.files.mk Fix STAGE_DIR.* to handle indirect *DIR variables. 2019-01-15 23:37:49 +00:00
bsd.incs.mk
bsd.info.mk
bsd.init.mk
bsd.kmod.mk
bsd.lib.mk Add WITH_PIE knob to build Position Independent Executables 2019-02-15 22:22:38 +00:00
bsd.libnames.mk Make libifconfig INTERNALLIB 2019-02-25 18:22:20 +00:00
bsd.linker.mk retire LINKER_FEATURES filter flag 2018-11-12 20:44:22 +00:00
bsd.links.mk
bsd.man.mk
bsd.mkopt.mk
bsd.nls.mk
bsd.obj.mk
bsd.opts.mk Add WITH_PIE knob to build Position Independent Executables 2019-02-15 22:22:38 +00:00
bsd.own.mk
bsd.port.mk
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.prog.mk Fixup bsd.prog.mk after r344182 2019-02-15 23:41:54 +00:00
bsd.progs.mk Allow programs to set NO_SHARED on a per-PROG basis 2019-03-30 17:23:15 +00:00
bsd.README Document GTESTS variable in googletest.test.mk 2019-02-20 01:12:59 +00:00
bsd.snmpmod.mk
bsd.subdir.mk
bsd.suffixes-posix.mk
bsd.suffixes.mk
bsd.symver.mk
bsd.sys.mk Standardize -std=c++* as CXXSTD` 2019-03-29 18:45:27 +00:00
bsd.test.mk Add googletest.test.mk and integrate into bsd.test.mk 2019-02-20 01:09:03 +00:00
dirdeps-options.mk Use .undef per variable 2019-01-15 23:35:53 +00:00
dirdeps.mk
gendirdeps.mk
googletest.test.inc.mk Standardize -std=c++* as CXXSTD` 2019-03-29 18:45:27 +00:00
googletest.test.mk Fix a typo 2019-02-21 03:36:09 +00:00
host-target.mk
install-new.mk
local.autodep.mk
local.dirdeps.mk
local.gendirdeps.mk
local.init.mk
local.meta.sys.mk
local.sys.env.mk
local.sys.mk
Makefile Correct gmock/gtest expectations w.r.t. C++11/RTTI 2019-02-20 20:09:59 +00:00
meta2deps.py
meta2deps.sh
meta.autodep.mk
meta.stage.mk
meta.subdir.mk
meta.sys.mk
netbsd-tests.test.mk
plain.test.mk
src.init.mk
src.libnames.mk MFhead@r344786 2019-03-05 01:00:38 +00:00
src.opts.mk Create kernel module to parse Veriexec manifest based on envs 2019-04-03 03:57:37 +00:00
src.sys.env.mk
src.sys.mk
src.sys.obj.mk
stage-install.sh
suite.test.mk Clean up all directories created by make hier 2019-02-06 21:24:44 +00:00
sys.dependfile.mk
sys.mk
tap.test.mk
version_gen.awk