Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178017625
D62097.1795767438.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62097.1795767438.diff
View Options
diff --git a/share/man/man7/secureboot.7 b/share/man/man7/secureboot.7
--- a/share/man/man7/secureboot.7
+++ b/share/man/man7/secureboot.7
@@ -114,6 +114,20 @@
.Xr veriexec 8
support, in which case the image must verify.
On i386, chaining from a device rather than a file is denied.
+.It
+Commands that could be used to weaken the boot are denied:
+.Ic efi-set
+and
+.Ic efi-unset ;
+.Ic cache_flags
+on arm64; and the
+.Ic grab_faults ,
+.Ic ungrab_faults ,
+and
+.Ic fault
+debugging aids on amd64.
+Commands must be marked as safe for lockdown, so new commands are denied unless
+they are considered and annotated as such.
.El
.Pp
Independent of secureboot, if the loader is built with
diff --git a/stand/common/bootstrap.h b/stand/common/bootstrap.h
--- a/stand/common/bootstrap.h
+++ b/stand/common/bootstrap.h
@@ -328,7 +328,7 @@
static inline bool
command_permitted(const struct bootblk_command *cmd)
{
- return (true);
+ return ((cmd->c_flags & CMDF_LOCKDOWN) != 0 || !loader_in_lockdown());
}
#define COMMAND_SET_FLAGS(tag, key, desc, func, flags) \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 27, 8:17 AM (23 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42034993
Default Alt Text
D62097.1795767438.diff (1 KB)
Attached To
Mode
D62097: loader: start enforcing command restrictions in lockdown
Attached
Detach File
Event Timeline