Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151333237
D20952.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
969 B
Referenced Files
None
Subscribers
None
D20952.id.diff
View Options
Index: head/stand/efi/loader/main.c
===================================================================
--- head/stand/efi/loader/main.c
+++ head/stand/efi/loader/main.c
@@ -1440,6 +1440,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: head/stand/i386/loader/chain.c
===================================================================
--- head/stand/i386/loader/chain.c
+++ head/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
Wed, Apr 8, 4:20 PM (7 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31107376
Default Alt Text
D20952.id.diff (969 B)
Attached To
Mode
D20952: stand: Verify files loaded in chain command
Attached
Detach File
Event Timeline
Log In to Comment