Function
set_thread_res_uid
(ruid: R, euid: E, suid: S)
Source from the content-addressed store, hash-verified
| 106 | /// [linux_notes]: https://man7.org/linux/man-pages/man2/setresuid.2.html#NOTES |
| 107 | #[inline] |
| 108 | pub fn set_thread_res_uid<R, E, S>(ruid: R, euid: E, suid: S) -> io::Result<()> |
| 109 | where |
| 110 | R: Into<Option<Uid>>, |
| 111 | E: Into<Option<Uid>>, |
| 112 | S: Into<Option<Uid>>, |
| 113 | { |
| 114 | backend::thread::syscalls::setresuid_thread(ruid.into(), euid.into(), suid.into()) |
| 115 | } |
| 116 | |
| 117 | /// `setgid(gid)`—Sets the effective group ID of the current thread. |
| 118 | /// |