mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
Drop 'log' parameter from ReadLog
This parameter is always [], so we can simplify the ReadLog __init__() parameters. Note that some tests handed over '' instead of []. This was a bug, but didn't matter because those tests only use a small portion of ReadLog. Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
@@ -72,7 +72,7 @@ class NetworkTestParseInvalid(NetworkTest):
|
||||
|
||||
class NetworkTestParseFromLog(NetworkTest):
|
||||
def test_net_from_log(self):
|
||||
parser = ReadLog('', '', '', '', '')
|
||||
parser = ReadLog('', '', '', '')
|
||||
event = 'type=AVC msg=audit(1428699242.551:386): apparmor="DENIED" operation="create" profile="/bin/ping" pid=10589 comm="ping" family="inet" sock_type="raw" protocol=1'
|
||||
|
||||
parsed_event = parser.parse_event(event)
|
||||
|
Reference in New Issue
Block a user