setuid
os
0.1.0
In os::
kernel::
syscall::
cred
os
::
kernel
::
syscall
::
cred
Function
setuid
Copy item path
Source
pub fn setuid(uid: u32) -> isize
Expand description
设置用户 ID
在单 root 用户系统中,只允许设置为 0(root)