With LOADER_VERIEXEC_VECTX, file_loadraw() derives its severity from
severity_guess(), which returns VE_WANT for anything without a
recognized suffix. Add some types that are also worth escalating:
- dtb/dtbo: the device tree describes memory, reserved regions and IOMMUs, and is the direct analogue of the acpi_dsdt override that is already on the list.
- firmware: device firmware can DMA into the kernel in the absence of an IOMMU.
- ram_blacklist: the list of physical pages that the kernel won't use, which shapes its view of memory much like the device tree does.
- The kernel type: the multiboot path loads the FreeBSD kernel as a raw file for Xen to parse later, and severity_guess() hands /boot/kernel/kernel a VE_WANT since it has no suffix.
- The module types, so that load -t "elf module" cannot be used to sneak a module in at VE_WANT.
Ideally we would fail-closed here, but we maintain the current position
for now until we can discuss it further.
Sponsored by: The FreeBSD Foundation
Sponsored by: Klara, Inc.