diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-10-22 18:39:57 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-10-22 18:39:57 +0300 |
| commit | 6be4e656cbf575dbcba95de4e99183586aa88ffe (patch) | |
| tree | c3fde91dd1d00d199804e7901df79e4de91d9cc7 /common/proc.c | |
| parent | 22eeabc6c63e220d628417ea525c8838f3fae913 (diff) | |
| download | kmi-6be4e656cbf575dbcba95de4e99183586aa88ffe.tar.gz kmi-6be4e656cbf575dbcba95de4e99183586aa88ffe.zip | |
create impl and CAP_PROC checking
Diffstat (limited to 'common/proc.c')
| -rw-r--r-- | common/proc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/proc.c b/common/proc.c index 270ec0c..137a2fe 100644 --- a/common/proc.c +++ b/common/proc.c @@ -39,6 +39,9 @@ stat_t init_proc(void *fdt) /* set current tcb */ use_tcb(t); + /* init process has all capabilities */ + set_caps(t->caps, 0, CAP_CAPS | CAP_PROC | CAP_CALL); + /* allocate stacks after ELF file to make sure nothing of importance * clashes */ return prepare_proc(t, get_init_base(fdt), 0); |
