[sudo-users] JSON import to sudoers

Todd C. Miller Todd.Miller at courtesan.com
Tue Nov 18 11:10:15 MST 2014


The way the JSON export works is that it traverses the parse tree
generated by the sudoers parser and writes JSON-formatted output.
The natural way to do this is to parse the JSON input into the same
parse tree used by sudoers and then write sudoers-format output
functions.

Once we can parse JSON input into the parse tree that sudo expects,
this begs the question as to whether it makes sense to just allow
sudo to read a sudoers.json file directly.

 - todd


More information about the sudo-users mailing list