Skip to content

dist/tools/tapsetup: make compatible with doas#20712

Merged
maribu merged 1 commit intoRIOT-OS:masterfrom
maribu:dist/tools/tapsetup/doas
May 30, 2024
Merged

dist/tools/tapsetup: make compatible with doas#20712
maribu merged 1 commit intoRIOT-OS:masterfrom
maribu:dist/tools/tapsetup/doas

Conversation

@maribu
Copy link
Copy Markdown
Member

@maribu maribu commented May 30, 2024

Contribution description

doas doesn't set SUDO_USER, but DOAS_USER. This populates SUDO_USER with DOAS_USER if it is empty, so the script works with both doas and sudo.

Testing procedure

sudo dist/tools/tapsetup/tapsetup should still work on systems where sudo is not the doas-sudo-shim but in fact the real legacy sudo tool.

Issues/PRs references

None

`doas` doesn't set `SUDO_USER`, but `DOAS_USER`. This populates
`SUDO_USER` with `DOAS_USER` if it is empty, so the script works with
both doas and sudo.
@maribu maribu added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: tools Area: Supplementary tools labels May 30, 2024
@benpicco benpicco added the CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs label May 30, 2024
@maribu maribu enabled auto-merge May 30, 2024 09:53
@maribu
Copy link
Copy Markdown
Member Author

maribu commented May 30, 2024

Thx for the quick review :)

@riot-ci
Copy link
Copy Markdown

riot-ci commented May 30, 2024

Murdock results

✔️ PASSED

d05d33f dist/tools/tapsetup: make compatible with doas

Success Failures Total Runtime
1 0 1 01m:14s

Artifacts

@maribu maribu added this pull request to the merge queue May 30, 2024
Merged via the queue into RIOT-OS:master with commit 230df5f May 30, 2024
@mguetschow mguetschow added this to the Release 2024.07 milestone Jun 11, 2024
@maribu maribu deleted the dist/tools/tapsetup/doas branch January 13, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants