Skip to content

Support for opendoas in privileges_linux.go #13

Open
@humaidq-tii

Description

@humaidq-tii

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions