[sudo-users] Sudoers EBNF Spec
three18ti at gmail.com
Thu Oct 17 10:35:55 MDT 2013
What about the visudo source...? Just thinking out loud, but it is the tool
designed to check the syntax of the sudoers file.
I basically stripped out the markup from the manual then began describing
the individual atoms (I think there's a typo where user_name on the LHS is
written as user name don't quote me on that... still trying to get through
the grammar). I wrote an iterator  to parse the multiline configuration
descriptions; I wrapped the method in a moose class with a filename
attribute. Happy to share examples when I'm back at a keyboard.
Thanks for your input.
On Oct 17, 2013 10:17 AM, "Tim Bradshaw" <tfb at tfeb.org> wrote:
> On 17 Oct 2013, at 12:20, Jon wrote:
> > However, it seems like the grammar is incomplete in the manual. For
> > instance, it seems like the specification for all of the special
> > and wildcards.
> > Is there a full grammar specification posted somewhere? (Or is that the
> > full specification?)
> I'm trying to do something similar. I think the description probably is
> incomplete. However there are lex and yacc files in the source which (I
> hope!) do definitively describe the grammar. Unfortunately those files are
> sufficiently entangled with the sources that I decided I wasn't
> willing/able to construct a standalone parser.
More information about the sudo-users