From 6be4e656cbf575dbcba95de4e99183586aa88ffe Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 22 Oct 2022 18:39:57 +0300 Subject: create impl and CAP_PROC checking --- common/proc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common/proc.c') 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); -- cgit v1.3