Add setfsgid()/setfsuid() on linux
This commit is contained in:
parent
15950baa0a
commit
28d0afa657
@ -162,6 +162,7 @@ fn main() {
|
||||
cfg.header("sys/ipc.h");
|
||||
cfg.header("sys/msg.h");
|
||||
cfg.header("sys/shm.h");
|
||||
cfg.header("sys/fsuid.h");
|
||||
cfg.header("pty.h");
|
||||
cfg.header("shadow.h");
|
||||
}
|
||||
|
@ -714,6 +714,8 @@ extern {
|
||||
riovcnt: ::c_ulong,
|
||||
flags: ::c_ulong) -> isize;
|
||||
pub fn reboot(how_to: ::c_int) -> ::c_int;
|
||||
pub fn setfsgid(gid: ::gid_t) -> ::c_int;
|
||||
pub fn setfsuid(uid: ::uid_t) -> ::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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user