-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6wTI8ACgkQrlYvE4MpobP7RgCgjoo1TthwHBh0W4g1I5pQd2xl jEgAnipfEO/Im2ROrTnzHvpf6M4H25na =847I -----END PGP SIGNATURE-----
>From 1492548d0e4392138d9e683b60036a8fa64369ad Mon Sep 17 00:00:00 2001 From: Dan Walsh <dwalsh@xxxxxxxxxx> Date: Thu, 13 Oct 2011 13:28:35 -0400 Subject: [PATCH 51/63] sepolgen: Return name field in avc data Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- sepolgen/src/sepolgen/audit.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/sepolgen/src/sepolgen/audit.py b/sepolgen/src/sepolgen/audit.py index e23725f..1b0a8e5 100644 --- a/sepolgen/src/sepolgen/audit.py +++ b/sepolgen/src/sepolgen/audit.py @@ -179,6 +179,7 @@ class AVCMessage(AuditMessage): self.comm = "" self.exe = "" self.path = "" + self.name = "" self.accesses = [] self.denial = True self.type = audit2why.TERULE @@ -239,6 +240,8 @@ class AVCMessage(AuditMessage): self.comm = fields[1][1:-1] elif fields[0] == "exe": self.exe = fields[1][1:-1] + elif fields[0] == "name": + self.name = fields[1][1:-1] if not found_src or not found_tgt or not found_class or not found_access: raise ValueError("AVC message in invalid format [%s]\n" % self.message) -- 1.7.7