prevent_root_execution

Function prevent_root_execution 

Source
pub fn prevent_root_execution()
Expand description

Prevents execution of the application with root privileges on Unix systems.

This function checks if the current process is running with root privileges and terminates the program with an error message unless explicitly allowed via the ZED_ALLOW_ROOT environment variable.