There is no support for the doas command, which is a secure alternative to sudo.
opendoas sets the DOAS_USER environment variables (e.g. DOAS_USER="humaid").
An alternate check should be added somewhere here, but the UID has to be fetched.
|
if os.Getenv("SUDO_UID") == "" { // not running under sudo |
There is no support for the
doascommand, which is a secure alternative tosudo.opendoas sets the
DOAS_USERenvironment variables (e.g.DOAS_USER="humaid").An alternate check should be added somewhere here, but the UID has to be fetched.
gokit/os/user/userutil/privileges_linux.go
Line 226 in 27b5c49