Hide Forgot
Description of problem: Audit2allow crashes with errors when executed and no problems found. Version-Release number of selected component (if applicable): How reproducible: ausearch -m avc -ts recent |audit2allow -M mypol Happens every time. Actual results: ausearch -m avc -ts recent |audit2allow -M mypol <no matches> compilation failed: mypol.te:6:ERROR 'syntax error' at token '' on line 6: /usr/bin/checkmodule: error(s) encountered while parsing configuration /usr/bin/checkmodule: loading policy configuration from mypol.te Expected results: If no problems are found audit2allow should exit cleanly.
(In reply to comment #0) > Description of problem: > Audit2allow crashes with errors when executed and no problems found. > > Version-Release number of selected component (if applicable): > policycoreutils-python-2.1.4-13.fc16.i686 > > How reproducible: > ausearch -m avc -ts recent |audit2allow -M mypol > > Happens every time. > > > Actual results: > ausearch -m avc -ts recent |audit2allow -M mypol > <no matches> > compilation failed: > mypol.te:6:ERROR 'syntax error' at token '' on line 6: > > > /usr/bin/checkmodule: error(s) encountered while parsing configuration > /usr/bin/checkmodule: loading policy configuration from mypol.te > > > Expected results: > If no problems are found audit2allow should exit cleanly. Forgot version.
Yes, you are right. This doesn't work. Also for example $ echo "" |audit2allow -M test I think we should exit in these cases. Dan, I sent you a patch for this.
Fixed in policycoreutils-2.1.4-15.fc16
This bug has long since been fixed. Closing.