Open
Description
There are some well-known anti-patterns in sudo, that the man page warns about; for instance using the negation operator with commands in rules like:
user machine = (ALL:ALL) ALL,!/bin/ls
We can detect those after parsing, during the semantical analysis (where also already complain about alias definitions that appear to be cyclical, etc), and emit a diagnostic about them (while still supporting said behaviour)
This has some subtasks:
- Inventorise all the disrecommended sudoer-practices (either from the manpage or the wider internet)
- Implement them during the analysis phase