aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-04-06 22:20:58 +0200
committerMarvin Borner2021-04-06 22:35:13 +0200
commit64ec8aa157e5d5d09372def37cbab00628e1e5f5 (patch)
tree13d0c864780a62506d40266fa6f2ab9571cbd216 /kernel/inc
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 'kernel/inc')
-rw-r--r--kernel/inc/load.h2
-rw-r--r--kernel/inc/proc.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/kernel/inc/load.h b/kernel/inc/load.h
index af59cce..9e62369 100644
--- a/kernel/inc/load.h
+++ b/kernel/inc/load.h
@@ -161,6 +161,6 @@ struct PACKED elf_symbol {
u16 shndx;
};
-res elf_load(const char *path, struct proc *proc) NONNULL;
+res elf_load(const char *name, struct proc *proc) NONNULL;
#endif
diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h
index d20a1b0..dcc2eeb 100644
--- a/kernel/inc/proc.h
+++ b/kernel/inc/proc.h
@@ -53,7 +53,8 @@ struct stream {
struct proc {
u32 pid;
u32 entry;
- char name[32];
+ char name[64];
+ char dir[64];
struct stream streams[4];
struct page_dir *page_dir;
struct regs regs;