From 519ffa076c27a9d416ddbc33e3725c3afe932983 Mon Sep 17 00:00:00 2001 From: Dylan Reid Date: Fri, 21 Oct 2016 16:05:01 -0700 Subject: [PATCH] Add setresuid/setresgid for linux Signed-off-by: Dylan Reid --- src/unix/notbsd/linux/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index fbe0e67379313..ca9420e53ffd7 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -658,6 +658,8 @@ extern { riovcnt: ::c_ulong, flags: ::c_ulong) -> isize; pub fn reboot(how_to: ::c_int) -> ::c_int; + pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int; + pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int; // Not available now on Android pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char,