]> granicus.if.org Git - sudo/commit
Fix a parser bug that was exposed when mixing different runas specs
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 29 Mar 1999 00:05:15 +0000 (00:05 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 29 Mar 1999 00:05:15 +0000 (00:05 +0000)
commit217710df3602a726d935ee051e97f7309a55d600
treeb5b06d44cc15d82752ccdff9341235cc3d936852
parentbd76c13333b1d40cfe163b74d7a5e9cc852eb618
Fix a parser bug that was exposed when mixing different runas specs
and ! commands.  For example:
    millert        ALL=(daemon) /usr/bin/whoami,!/bin/ls
would allow millert to run whoami as root as well as daemon when it should
just allow daemon.  The problem was that comma-separated commands in
a list shared the same entry on the matching stack.  Now they get
their own entry iff there is a full match.  It may be better to just make
the runas spec persistent across all commands in a list like the user
and host entries of the matching stack.  However, since that is a
fairly major change it should gets its own minor rev increase.
CHANGES
INSTALL
parse.yacc