Skip to main content

admin_lock

Function admin_lock 

Source
pub async fn admin_lock() -> Result<AdminLockGuard>
Expand description

Acquires the cross-process advisory lock serializing privileged (sudo) filesystem mutations. Shared beyond this module by other privileged writes (e.g. the self-install binary copy in self_install.rs) that need to serialize against concurrent sudo-driven writes.