summaryrefslogtreecommitdiff
path: root/sys/kern/kern_syscall.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-09 01:07:03 -0400
committerIan Moffett <ian@osmora.org>2025-07-09 01:07:39 -0400
commit524b56b5e28875b48613b812be92476573bb8325 (patch)
tree6064c42485aabc5e5400ab0218fd30dc736eb4bc /sys/kern/kern_syscall.c
parentee2e8661148b7e9fe1413a714fdf8779f867afc0 (diff)
kernel: cred: Introduce SYS_setuid syscall
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syscall.c')
-rw-r--r--sys/kern/kern_syscall.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_syscall.c b/sys/kern/kern_syscall.c
index 739dd7f..276c7c7 100644
--- a/sys/kern/kern_syscall.c
+++ b/sys/kern/kern_syscall.c
@@ -31,6 +31,7 @@
#include <sys/sysctl.h>
#include <sys/reboot.h>
#include <sys/types.h>
+#include <sys/ucred.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/proc.h>
@@ -55,7 +56,8 @@ scret_t(*g_sctab[])(struct syscall_args *) = {
sys_sleep, /* SYS_sleep */
sys_inject, /* SYS_inject */
sys_getpid, /* SYS_getpid */
- sys_getppid /* SYS_getppid */
+ sys_getppid, /* SYS_getppid */
+ sys_setuid, /* SYS_setuid */
};
const size_t MAX_SYSCALLS = NELEM(g_sctab);