sudo-rs
sudo-rs copied to clipboard
Ignore all relative paths in `secure_path`
Describe the feature you'd like see implemented in sudo-rs
Right now sudo-rs treats . in secure_path/PATH by moving it "to the rear", like ogsudo does on Linux. But on FreeBSD, ogsudo is compiled with an option which makes it ignore . completely.
In fact, we should just ignore all relative paths (not that anybody ever puts these in a PATH).
What problem can be solved with this feature? This isn't a security feature, but it will make sudo-rs misconfiguration slightly harder.
Describe alternatives you've considered
Simply ignore the issue, since secure_path should always be set anyway.
Additional context
There used to be a time where people had . in their paths.
ogsudo cannot really change the default to "ignore ." since somewhere someone will complain about it; since we don't have that large a userbase yet that's not a problem for us.