commit | df45dcdf3db2d02930bbd095f6e9bc4f3eafdf3f | [log] [tgz] |
---|---|---|
author | Dan Walsh <dwalsh@redhat.com> | Wed Jan 18 16:41:36 2012 -0500 |
committer | Eric Paris <eparis@redhat.com> | Wed Mar 28 14:52:12 2012 -0400 |
tree | 522f055b9d4ac8207baf93b1feab5681b62be41f | |
parent | 137604222aff76aab24253853e7add87366a4e1c [diff] |
sepolgen: audit.py Dont crash if empty data is passed to sepolgen If you pass output from a log file that does not include any avc's audit2allow will crash. This patch fixes this problem. ausearch -m avc -ts recent | audit2allow If there was no AVC's recently, we do not want the python to crash. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>