summaryrefslogtreecommitdiff
path: root/Kernel/build-root-filesystem.sh
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/build-root-filesystem.sh
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/build-root-filesystem.sh')
-rwxr-xr-xKernel/build-root-filesystem.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/build-root-filesystem.sh b/Kernel/build-root-filesystem.sh
index 8e713e7a74..b5dceb740f 100755
--- a/Kernel/build-root-filesystem.sh
+++ b/Kernel/build-root-filesystem.sh
@@ -63,7 +63,8 @@ echo "done"
printf "installing base system... "
cp -R ../Base/* mnt/
cp -R ../Root/* mnt/
-cp kernel.map mnt/
+cp kernel.map mnt/res/
+chmod 400 mnt/res/kernel.map
echo "done"
printf "installing users... "