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:
parent
9cbd404ceb
commit
077e863517
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue