一些安全性的增强

This commit is contained in:
zhangzheng
2023-12-02 09:49:15 +08:00
parent bc9055d784
commit 6f618a296f
12 changed files with 78 additions and 43 deletions

View File

@@ -225,7 +225,7 @@ void task_init(task_t *task, ram_limit_t *ram, int is_knl)
mm_space_init(&task->mm_space, is_knl);
ref_counter_init(&task->ref_cn);
ref_counter_inc(&task->ref_cn);
task->pid = 0;
task->pid = -1;
task->lim = ram;
task->kobj.invoke_func = task_syscall_func;
task->kobj.put_func = task_put;