From f9e23e6e41068d63d42f950941c3d2fc155ef21c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 18 Jul 2024 17:39:15 +0300 Subject: add ipc_tail() + ipc_kick() does a forward and a tail at the same time The idea with ipc_tail() is to allow 'trusted' calls, so for example a process is not allowed to willy-nilly open a file, as it has to go via init(), making the eid 1. This way the receiver can know that the request has gone through init() and can open up a new connection (file, whatever) after which requests from that pid/tid are allowed without init() intervention --- src/uapi/dispatch.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/uapi/dispatch.c') diff --git a/src/uapi/dispatch.c b/src/uapi/dispatch.c index bbebd9c..5e29922 100644 --- a/src/uapi/dispatch.c +++ b/src/uapi/dispatch.c @@ -62,6 +62,7 @@ void handle_syscall(sys_arg_t syscall, sys_arg_t a, sys_arg_t b, case SYS_FREE_TIMER: sys_free_timer(t, a, b, c, d, e); break; case SYS_IPC_REQ: sys_ipc_req(t, a, b, c, d, e); break; case SYS_IPC_FWD: sys_ipc_fwd(t, a, b, c, d, e); break; + case SYS_IPC_TAIL: sys_ipc_tail(t, a, b, c, d, e); break; case SYS_IPC_KICK: sys_ipc_kick(t, a, b, c, d, e); break; case SYS_IPC_RESP: sys_ipc_resp(t, a, b, c, d, e); break; case SYS_IPC_GHOST: sys_ipc_ghost(t, a, b, c, d, e); break; -- cgit v1.3