aboutsummaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorMarvin Borner2021-04-06 22:20:58 +0200
committerMarvin Borner2021-04-06 22:35:13 +0200
commit64ec8aa157e5d5d09372def37cbab00628e1e5f5 (patch)
tree13d0c864780a62506d40266fa6f2ab9571cbd216 /run
parent9326d3970fe6eedbcb042ac68aca3074aacef32f (diff)
Made exec syscall relative using app name
My plan is to implement a mobile-OS-like sandboxing using manifests and permission middlewares. Let's see if I can manage to do this without sacrificing too much performance. I'm also wondering whether I should implement open/close syscalls which would result in a cleaner block/unblock mechanism. I need to think. Hmmm.. Naa
Diffstat (limited to 'run')
-rwxr-xr-xrun6
1 files changed, 3 insertions, 3 deletions
diff --git a/run b/run
index af67dbc..a232762 100755
--- a/run
+++ b/run
@@ -178,7 +178,7 @@ make_build() {
fi
$SUDO cp -r disk/* mnt/
$SUDO chmod -R 0 mnt/conf/
- $SUDO cp -r build/apps/ mnt/bin/
+ $SUDO cp -r build/apps/ mnt/apps/
$SUDO cp build/load.bin mnt/
$SUDO umount mnt/
rm -rf mnt/
@@ -210,7 +210,7 @@ make_disasm() {
echo "Usage: './run disasm {kernel, wm, ...} [-S]'"
exit 1
fi
- objdump -drwC "$2" -Mintel build/apps/"$1" | less -R
+ objdump -drwC "$2" -Mintel build/apps/"$1"/exec | less -R
#hexdump -C build/kernel.bin | less -R
}
@@ -220,7 +220,7 @@ make_addr() {
echo "Usage: './run addr kernel 0x50042'"
exit 1
fi
- addr2line -e build/apps/"$1" -f -p "$2"
+ addr2line -e build/apps/"$1"/exec -f -p "$2"
}
make_cloc() {