aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_msdosfs/dir.c
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@FreeBSD.org>2019-04-03 03:57:37 +0000
committerMarcin Wojtas <mw@FreeBSD.org>2019-04-03 03:57:37 +0000
commitb0fefb25c558179e9f9c7f0d375c6a03fb567eb9 (patch)
tree13fe5d34ad171509d10ef5952b6e6ad4161c70a5 /sbin/fsck_msdosfs/dir.c
parent81dd9c5e69a2709ae3317dd383093e1c8a970d9e (diff)
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
Notes
Notes: svn path=/head/; revision=345830
Diffstat (limited to 'sbin/fsck_msdosfs/dir.c')
0 files changed, 0 insertions, 0 deletions