diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-09 01:07:03 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-09 01:07:39 -0400 |
commit | 524b56b5e28875b48613b812be92476573bb8325 (patch) | |
tree | 6064c42485aabc5e5400ab0218fd30dc736eb4bc /sys/include | |
parent | ee2e8661148b7e9fe1413a714fdf8779f867afc0 (diff) |
kernel: cred: Introduce SYS_setuid syscall
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/syscall.h | 1 | ||||
-rw-r--r-- | sys/include/sys/ucred.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h index 3650e7a..05288f4 100644 --- a/sys/include/sys/syscall.h +++ b/sys/include/sys/syscall.h @@ -56,6 +56,7 @@ #define SYS_inject 15 #define SYS_getpid 16 #define SYS_getppid 17 +#define SYS_setuid 18 #if defined(_KERNEL) /* Syscall return value and arg type */ diff --git a/sys/include/sys/ucred.h b/sys/include/sys/ucred.h index ef66a18..b44a7fe 100644 --- a/sys/include/sys/ucred.h +++ b/sys/include/sys/ucred.h @@ -33,6 +33,7 @@ #include <sys/types.h> #if defined(_KERNEL) #include <sys/spinlock.h> +#include <sys/syscall.h> #endif /* @@ -47,4 +48,8 @@ struct ucred { }; int setuid(uid_t new); + +#if defined(_KERNEL) +scret_t sys_setuid(struct syscall_args *scargs); +#endif #endif /* !_SYS_UCRED_H_ */ |