From d92e16e6dc288aeb7525c6d57ac276e3aab25b2c Mon Sep 17 00:00:00 2001 From: tachyonicbytes <97369296+tachyonicbytes@users.noreply.github.com> Date: Wed, 16 Nov 2022 11:14:27 +0200 Subject: [PATCH] Stubbed Setuid and friends. Stubbed Exec (#3290) Co-authored-by: TachyonicBytes --- src/syscall/syscall_linux.go | 8 ++++++++ src/syscall/syscall_unix.go | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 src/syscall/syscall_linux.go create mode 100644 src/syscall/syscall_unix.go diff --git a/src/syscall/syscall_linux.go b/src/syscall/syscall_linux.go new file mode 100644 index 00000000..58778f4b --- /dev/null +++ b/src/syscall/syscall_linux.go @@ -0,0 +1,8 @@ +package syscall + +func Setuid(code int) (err error) +func Setgid(code int) (err error) +func Setreuid(ruid, euid int) (err error) +func Setregid(rgid, egid int) (err error) +func Setresuid(ruid, euid, suid int) (err error) +func Setresgid(rgid, egid, sgid int) (err error) diff --git a/src/syscall/syscall_unix.go b/src/syscall/syscall_unix.go new file mode 100644 index 00000000..0cd8f286 --- /dev/null +++ b/src/syscall/syscall_unix.go @@ -0,0 +1,3 @@ +package syscall + +func Exec(argv0 string, argv []string, envv []string) (err error)