diff options
Diffstat (limited to 'internal/syscallcompat/thread_credentials_linux_other.go')
-rw-r--r-- | internal/syscallcompat/thread_credentials_linux_other.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/syscallcompat/thread_credentials_linux_other.go b/internal/syscallcompat/thread_credentials_linux_other.go index ba385b6..ab11c71 100644 --- a/internal/syscallcompat/thread_credentials_linux_other.go +++ b/internal/syscallcompat/thread_credentials_linux_other.go @@ -10,6 +10,7 @@ import ( // See thread_credentials_linux.go for docs +// Setreuid is like setreuid(2) but affects only the current thread func Setreuid(ruid int, euid int) (err error) { _, _, e1 := unix.RawSyscall(unix.SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) if e1 != 0 { @@ -18,6 +19,7 @@ func Setreuid(ruid int, euid int) (err error) { return } +// Setreuid is like setregid(2) but affects only the current thread func Setregid(rgid int, egid int) (err error) { _, _, e1 := unix.RawSyscall(unix.SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) if e1 != 0 { |