import hasher from apparmor.common

... instead of indirectly using it via apparmor.aa
This commit is contained in:
Christian Boltz 2021-08-24 22:48:19 +02:00
parent c09e0b6ef3
commit 0ee225b498
Failed to generate hash of commit

View file

@ -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'])