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/tcb.c | |
| parent | 22eeabc6c63e220d628417ea525c8838f3fae913 (diff) | |
| download | kmi-6be4e656cbf575dbcba95de4e99183586aa88ffe.tar.gz kmi-6be4e656cbf575dbcba95de4e99183586aa88ffe.zip | |
create impl and CAP_PROC checking
Diffstat (limited to 'common/tcb.c')
| -rw-r--r-- | common/tcb.c | 6 |
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); } |
