Function arti_client::util::running_as_setuid

source ยท
pub(crate) fn running_as_setuid() -> bool
Expand description

Return true if we are running with elevated privileges via setuid, setgid, or a similar mechanism.

We detect this by checking whether there is any difference between our real, effective, and saved user IDs; and then by doing the same check for our group IDs.

On non-unix platforms, this function always returns false.