src/uid_wrapper.c: export uid_wrapper_syscall_{valid,va}()
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Jan 2023 10:42:05 +0000 (11:42 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 17 Jan 2023 13:31:10 +0000 (14:31 +0100)
commitda63f387bf85da1ad95b112fb3ef513399b2254c
tree4ab343ba817db25f4987677848e86435e8e75300
parent759f4317756b4c70cbf1943ff66a4c714a7e5030
src/uid_wrapper.c: export uid_wrapper_syscall_{valid,va}()

We need to hook into syscall() from uid_wrapper as well as
from socket_wrapper() (and maybe others in future).
But the assumption is that only one wrapper will take care
of a single syscall number.

So we provide uid_wrapper_syscall_valid() in order to allow
external consumers (e.g. socket_wrapper.so) to check if
uid_wrapper wants to handle a specified syscall number.

And we provide uid_wrapper_syscall_va() in order to allow
calling into uwrap_syscall().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/uid_wrapper.c