freebsd-src/stand
Simon J. Gerraty f616d61ab6 libsecureboot do not report expected unverified files
By default only report unverified files at severity VE_WANT
and above.  This inlcudes *.conf but not *.hints, *.cookie
or *.tgz which get VE_TRY as their severity.

If Verbose is set to 0, then VerifyFlags should default to 0 too.
Thus the combination of

	module_verbose=0
	VE_VEBOSE=0

is sufficient to make the loader almost totally silent.

When verify_prep has to find_manifest and it is verified ok
return VE_NOT_CHECKED to verify_file so that it can skip
repeating verify_fd

Also add better debugging output for is_verified and add_verify_status.

vectx handle compressed modules

When verifying a compressed module (.ko.gz or .ko.bz2)
stat() reports the size as -1 (unknown).
vectx_lseek needs to spot this during closing - and just read until
EOF is hit.

Note: because of the way libsa's open() works, verify_prep will see
the path to be verified as module.ko not module.ko.bz2 etc.  This is
actually ok, because we need a separate module.ko.bz2 entry so that
the package can be verified, and the hash for module.ko is of the
uncompressed file which is what vectx will see.

Re-work local.trust.mk so site.trust.mk need only set
VE_SIGN_URL_LIST (if using the mentioned signing server)

interp.c: restrict interactive input

Apply the same restrictions to interactive input as for
unverified conf and hints files.

Use version.veriexec when LOADER_VERIEXEC is yes

Reviewed by:	kevans
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D43810
2024-02-12 14:35:01 -08:00
..
arm64 stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
common libsecureboot do not report expected unverified files 2024-02-12 14:35:01 -08:00
defaults stand/lua: always allow overriding with local config files 2024-02-02 12:04:57 -07:00
efi libsecureboot do not report expected unverified files 2024-02-12 14:35:01 -08:00
fdt stand: Use modern function definitions 2024-01-28 13:04:31 -07:00
ficl loader: add target for dirdeps build 2023-11-02 19:35:08 -04:00
ficl32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fonts Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
forth stand: Retire setting hw.ata.wc: it doesn't exist. 2023-11-24 11:28:44 -07:00
i386 stand: Add 1440p to the list of known resolutions. 2024-01-23 15:20:27 +01:00
images Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
kboot kboot: update copyright on these files. 2024-01-28 13:04:32 -07:00
kshim Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
liblua loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
liblua32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libofw stand: Use modern function definitions 2024-01-28 13:04:31 -07:00
libsa libsa: Move hash functions up a level 2024-02-02 14:01:03 -07:00
libsa32 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua loader: Document the lua loader table. 2024-02-10 11:49:09 -07:00
man loader.efi.8: Fix a typo 2023-11-22 13:25:34 +01:00
powerpc stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uboot stand: Use modern function definitions 2024-01-28 13:04:31 -07:00
usb Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
userboot stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
defs.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fdt.mk stand: Rename LIBFDT to LIBSAFDT 2023-11-07 09:57:32 -05:00
ficl.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
loader.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
lua.mk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.amd64 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
veriexec.mk libsecureboot do not report expected unverified files 2024-02-12 14:35:01 -08:00