aboutsummaryrefslogtreecommitdiff
path: root/common/tcb.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-10-22 18:39:57 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-10-22 18:39:57 +0300
commit6be4e656cbf575dbcba95de4e99183586aa88ffe (patch)
treec3fde91dd1d00d199804e7901df79e4de91d9cc7 /common/tcb.c
parent22eeabc6c63e220d628417ea525c8838f3fae913 (diff)
downloadkmi-6be4e656cbf575dbcba95de4e99183586aa88ffe.tar.gz
kmi-6be4e656cbf575dbcba95de4e99183586aa88ffe.zip
create impl and CAP_PROC checking
Diffstat (limited to 'common/tcb.c')
-rw-r--r--common/tcb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/tcb.c b/common/tcb.c
index 675aa1f..1c1a623 100644
--- a/common/tcb.c
+++ b/common/tcb.c
@@ -300,6 +300,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);
}