sepolgen: Return name field in avc data

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2011-10-13 13:28:35 -04:00 committed by Eric Paris
parent 9cbd404ceb
commit 077e863517
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,7 @@ class AVCMessage(AuditMessage):
self.comm = ""
self.exe = ""
self.path = ""
self.name = ""
self.accesses = []
self.denial = True
@ -223,6 +224,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)