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

Incorrect ordering of paths in safepath #117

Open
TheDcoder opened this issue Jun 6, 2023 · 2 comments · May be fixed by #119
Open

Incorrect ordering of paths in safepath #117

TheDcoder opened this issue Jun 6, 2023 · 2 comments · May be fixed by #119

Comments

@TheDcoder
Copy link

Hello,

Please fix safepath so that /usr/local/* paths come before their /usr/* counterparts, this is the de-facto standard in all other applications.

This prevents use-cases where executables in /usr/local/bin are supposed to override those in /usr/bin.

Thanks :)

@TheDcoder
Copy link
Author

Looks like this is a remnant from OpenBSD's implementation where /usr/local does come after /usr since all the ports are installed into /usr/local... or so I have been told by someone on IRC, I don't use BSD.

This should be corrected for the Linux version of OpenDoas.

@TheDcoder
Copy link
Author

For anyone experiencing the issue, you can work around it like this:

# Default wheel privileges
permit setenv {PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin} :wheel
# setenv required: https://github.com/Duncaen/OpenDoas/issues/117

@TheDcoder TheDcoder linked a pull request Jun 15, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant