tools: make moon.sym readable only by root

We don't want everyone peeking at kernel symbols.
This commit is contained in:
apio 2022-11-09 09:11:00 +01:00
parent bb26996cb7
commit 99429baed2

View File

@ -6,4 +6,6 @@ source $(dirname $0)/env.sh
cd $LUNA_ROOT
nm -C -n initrd/boot/moon | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > initrd/sys/moon.sym
nm -C -n initrd/boot/moon | grep -vE \\.Lubsan_data | awk '{ if ($2 != "a") print; }' | uniq > initrd/sys/moon.sym
chmod 400 initrd/sys/moon.sym