Skip to content

Commit 519ffa0

Browse files
committed
Add setresuid/setresgid for linux
Signed-off-by: Dylan Reid <[email protected]>
1 parent 836cda9 commit 519ffa0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ extern {
658658
riovcnt: ::c_ulong,
659659
flags: ::c_ulong) -> isize;
660660
pub fn reboot(how_to: ::c_int) -> ::c_int;
661+
pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int;
662+
pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int;
661663

662664
// Not available now on Android
663665
pub fn mkfifoat(dirfd: ::c_int, pathname: *const ::c_char,

0 commit comments

Comments
 (0)