Skip to content

Support for opendoas in privileges_linux.go #13

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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