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/tcb.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/tcb.c') diff --git a/common/tcb.c b/common/tcb.c index 675aa1f..1c1a623 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -298,6 +298,12 @@ __weak struct tcb *cur_tcb() } struct tcb *cur_proc() +{ + struct tcb *t = cur_tcb(); + return get_tcb(t->pid); +} + +struct tcb *eff_proc() { struct tcb *t = cur_tcb(); return get_tcb(t->eid); -- cgit v1.3