pub(crate) fn is_running_as_root() -> boolExpand description
Checks if the current process is running with root (UID 0) privileges.
This function inspects the Effective User ID (EUID) of the process. On Unix-like systems, if the EUID is 0, the process has root privileges.
§Returns
true if the process has root privileges, false otherwise.
§Panics
This function may panic if the underlying system call geteuid fails,
which is highly unlikely in normal operation.