permission

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscalateIfNeeded

func EscalateIfNeeded() error

EscalateIfNeeded checks if the program is running as root, and re-runs the program with sudo if it is not.

If the program is already running with root privileges, the program will continue as normal.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL