summaryrefslogtreecommitdiff
path: root/Kernel/KSyms.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-02 20:11:08 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-02 20:51:31 +0100
commit8eb20bdfa2f6e00307a5e7b8243c7eaeac2d245d (patch)
treea6872b91d7b753b51c5baac8512945ff6e2bddbb /Kernel/KSyms.cpp
parent51a9e31fb2b330c3f79ae2a5efad972a2cf5bb8f (diff)
downloadserenity-8eb20bdfa2f6e00307a5e7b8243c7eaeac2d245d.zip
Kernel: Move kernel symbols to /res/kernel.map and make it root-only
Let's lock down access to the kernel symbol table, since it trivializes learning where the kernel functions are. Of course, you can just build the same revision yourself locally and learn the information, but we're taking one step at a time here. :^)
Diffstat (limited to 'Kernel/KSyms.cpp')
-rw-r--r--Kernel/KSyms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/KSyms.cpp b/Kernel/KSyms.cpp
index 55464d3274..2ab5f84e70 100644
--- a/Kernel/KSyms.cpp
+++ b/Kernel/KSyms.cpp
@@ -151,7 +151,7 @@ void dump_backtrace()
void load_ksyms()
{
- auto result = VFS::the().open("/kernel.map", 0, 0, VFS::the().root_custody());
+ auto result = VFS::the().open("/res/kernel.map", 0, 0, VFS::the().root_custody());
ASSERT(!result.is_error());
auto description = result.value();
auto buffer = description->read_entire_file();