Skip to contentSkip to conversation

sepolgen: audit.py Dont crash if empty data is passed

PATCH In review Daniel J Walsh 1 participant 1 message Mar 27, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 17/73 sepolgen: audit.py Dont crash if empty data is passed

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch looks good to me. acked.

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. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9x10EACgkQrlYvE4MpobNJqACgl9Iny1pmGGMKSypaCEJt320m T5cAn3BwldGDPQ7Hpf9FWF/j1IbuIRkx
=NXL5
-----END PGP SIGNATURE-----