mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
import hasher from apparmor.common
... instead of indirectly using it via apparmor.aa
This commit is contained in:
parent
c09e0b6ef3
commit
0ee225b498
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ from common_test import AATest, setup_all_loops, setup_aa, read_file
|
|||
|
||||
import os
|
||||
import sys
|
||||
from apparmor.common import open_file_read, split_name
|
||||
from apparmor.common import hasher, open_file_read, split_name
|
||||
|
||||
import apparmor.aa
|
||||
from apparmor.logparser import ReadLog
|
||||
|
@ -225,7 +225,7 @@ def logfile_to_profile(logfile):
|
|||
|
||||
# cleanup apparmor.aa storage
|
||||
apparmor.aa.log = dict()
|
||||
apparmor.aa.aa = apparmor.aa.hasher()
|
||||
apparmor.aa.aa = hasher()
|
||||
|
||||
profile, hat = split_name(parsed_event['profile'])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue