Skip to content

sudo --list does not unfold recursive aliases #979

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

Closed
squell opened this issue Feb 4, 2025 · 0 comments · Fixed by #978
Closed

sudo --list does not unfold recursive aliases #979

squell opened this issue Feb 4, 2025 · 0 comments · Fixed by #978
Labels
bug Something isn't working

Comments

@squell
Copy link
Member

squell commented Feb 4, 2025

sudo-rs has a clever mechanism which doesn't unfold the aliases in-memory, but sudo --list is unaware of this:

Suppose we have Cmnd_Alias FOO=/bin/fsck and Cmnd_Alias BAR=FOO, and ALL ALL = BAR in /etc/sudoers, then:

$ sudo-rs --list
User marc may run the following commands on xyzzy:
    (root) FOO

$ ogsudo --list
...
User marc may run the following commands on xyzzy:
    (root) /sbin/fsck
@squell squell added the bug Something isn't working label Feb 4, 2025
@squell squell linked a pull request Feb 4, 2025 that will close this issue
@bjorn3 bjorn3 closed this as completed in 2c100ac Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant