Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for opendoas in privileges_linux.go #13

Open
humaidq-tii opened this issue May 9, 2022 · 1 comment
Open

Support for opendoas in privileges_linux.go #13

humaidq-tii opened this issue May 9, 2022 · 1 comment

Comments

@humaidq-tii
Copy link

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

@joonas-fi
Copy link
Member

I never heard of doas before, I like the idea of it :)

I installed it on my system. Will investigate, when I get the time, what it would take to support doas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants