1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00
freebsd/stand/common
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
..
bcache.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
boot.c stand: Use modern function definitions 2024-01-28 13:04:31 -07:00
bootstrap.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
commands.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
console.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
dev_net.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
dev_net.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
devopen.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
disk.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
disk.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
gfx_fb_stub.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
gfx_fb.c loader: Move build_font_module to gfx_fb.c 2024-02-02 14:01:04 -07:00
gfx_fb.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
help.common
install.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
interp_backslash.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
interp_forth.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
interp_lua.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
interp_parse.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
interp_simple.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
interp.c libsecureboot do not report expected unverified files 2024-02-12 14:35:01 -08:00
isapnp.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
isapnp.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
load_elf32_obj.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
load_elf32.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
load_elf64_obj.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
load_elf64.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
load_elf_obj.c Stop #defining FREEBSD_ELF 2023-12-12 15:30:00 -08:00
load_elf.c Stop #defining FREEBSD_ELF 2023-12-12 15:30:00 -08:00
ls.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
md.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
merge_help.awk Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
metadata.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
misc.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
modinfo.c kboot: Add md_addr to metadata 2022-12-04 13:52:22 -07:00
modinfo.h stand: update prototypes for md_load and md_load64 2022-12-05 16:59:58 -07:00
module.c loader: Move build_font_module to gfx_fb.c 2024-02-02 14:01:04 -07:00
newvers.sh stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
nvstore.c stand: Separate base and cli parts of nvstore 2023-01-13 14:22:38 -07:00
part.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
part.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
paths.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
pnp.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
rbx.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
readin.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
reloc_elf32.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
reloc_elf64.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
reloc_elf.c Stop #defining FREEBSD_ELF 2023-12-12 15:30:00 -08:00
self_reloc.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tslog.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vdisk.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
zfs_cmd.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00