Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169198343
D20952.id59756.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
939 B
Referenced Files
None
Subscribers
None
D20952.id59756.diff
View Options
Index: stand/efi/loader/main.c
===================================================================
--- stand/efi/loader/main.c
+++ stand/efi/loader/main.c
@@ -1439,6 +1439,14 @@
return (CMD_ERROR);
}
+#ifdef LOADER_VERIEXEC
+ if (verify_file(fd, name, 0, VE_MUST) < 0) {
+ sprintf(command_errbuf, "can't verify: %s", name);
+ close(fd);
+ return (CMD_ERROR);
+ }
+#endif
+
if (fstat(fd, &st) < -1) {
command_errmsg = "stat failed";
close(fd);
Index: stand/i386/loader/chain.c
===================================================================
--- stand/i386/loader/chain.c
+++ stand/i386/loader/chain.c
@@ -75,6 +75,14 @@
return (CMD_ERROR);
}
+#ifdef LOADER_VERIEXEC
+ if (verify_file(fd, argv[1], 0, VE_MUST) < 0) {
+ sprintf(command_errbuf, "can't verify: %s", argv[1]);
+ close(fd);
+ return (CMD_ERROR);
+ }
+#endif
+
len = strlen(argv[1]);
if (argv[1][len-1] != ':') {
if (fstat(fd, &st) == -1) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 1, 7:19 PM (14 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37850359
Default Alt Text
D20952.id59756.diff (939 B)
Attached To
Mode
D20952: stand: Verify files loaded in chain command
Attached
Detach File
Event Timeline
Log In to Comment