Page MenuHomeFreeBSD

D62093.1795752950.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D62093.1795752950.diff

diff --git a/stand/i386/libi386/biosmem.c b/stand/i386/libi386/biosmem.c
--- a/stand/i386/libi386/biosmem.c
+++ b/stand/i386/libi386/biosmem.c
@@ -253,4 +253,5 @@
return (CMD_OK);
}
-COMMAND_SET(biosmem, "biosmem", "show BIOS memory setup", command_biosmem);
+COMMAND_SET_RDONLY(biosmem, "biosmem", "show BIOS memory setup",
+ command_biosmem);
diff --git a/stand/i386/libi386/biossmap.c b/stand/i386/libi386/biossmap.c
--- a/stand/i386/libi386/biossmap.c
+++ b/stand/i386/libi386/biossmap.c
@@ -130,7 +130,7 @@
}
}
-COMMAND_SET(smap, "smap", "show BIOS SMAP", command_smap);
+COMMAND_SET_RDONLY(smap, "smap", "show BIOS SMAP", command_smap);
static int
command_smap(int argc, char *argv[])
diff --git a/stand/i386/libi386/vbe.c b/stand/i386/libi386/vbe.c
--- a/stand/i386/libi386/vbe.c
+++ b/stand/i386/libi386/vbe.c
@@ -1156,7 +1156,8 @@
return (modenum);
}
-COMMAND_SET(vbe, "vbe", "vesa framebuffer mode management", command_vesa);
+COMMAND_SET_FLAGS(vbe, "vbe", "vesa framebuffer mode management", command_vesa,
+ CMDF_LOCKDOWN);
int
command_vesa(int argc, char *argv[])
diff --git a/stand/i386/loader/main.c b/stand/i386/loader/main.c
--- a/stand/i386/loader/main.c
+++ b/stand/i386/loader/main.c
@@ -390,7 +390,8 @@
set_currdev(devformat(&new_currdev.dd));
}
-COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot);
+COMMAND_SET_FLAGS(reboot, "reboot", "reboot the system", command_reboot,
+ CMDF_LOCKDOWN);
static int
command_reboot(int argc, char *argv[])
@@ -413,7 +414,7 @@
__exit(code);
}
-COMMAND_SET(heap, "heap", "show heap usage", command_heap);
+COMMAND_SET_RDONLY(heap, "heap", "show heap usage", command_heap);
static int
command_heap(int argc, char *argv[])

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 27, 4:15 AM (19 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42035001
Default Alt Text
D62093.1795752950.diff (1 KB)

Event Timeline