Bugzilla – Bug 437
Syntax Error on LOG_INPUT/LOG_OUTPUT Tags
Last modified: 2011-01-15 12:21:30 MST
After compiling Sudo 1.7.4p4 on AIX, both visudo and sudo throw syntax errors when using any of the new I/O logging command tags (LOG_INPUT, LOG_OUTPUT, NOLOG_INPUT, NOLOG_OUTPUT). Here is an example of the usage... testuser ALL = LOG_INPUT: /usr/bin/su - When this entry appears in the sudoers file, visudo displays the following when attempting to save the file... >>> /etc/sudoers: syntax error near line 227 <<< What now? It appears that the I/O logging is working otherwise. If it is configured with "Defaults log_input", it captures the session input as expected.
Created attachment 292 [details] Replacement toke.c for sudo 1.7.4p4 The lexer is missing support for LOG_INPUT/LOG_OUTPUT. If you build the attached toke.c instead it should work as documented.
Thanks. Looks like that did the trick.
Fixed in sudo 1.7.4p5