29 lines
934 B
Diff
29 lines
934 B
Diff
|
diff --git a/utils/apparmor/logparser.py b/utils/apparmor/logparser.py
|
||
|
index f0961d93..50e842b2 100644
|
||
|
--- a/utils/apparmor/logparser.py
|
||
|
+++ b/utils/apparmor/logparser.py
|
||
|
@@ -13,7 +13,6 @@
|
||
|
#
|
||
|
# ----------------------------------------------------------------------
|
||
|
import ctypes
|
||
|
-import os
|
||
|
import re
|
||
|
import sys
|
||
|
import time
|
||
|
@@ -449,14 +448,7 @@ class ReadLog:
|
||
|
# Check cache of profiles
|
||
|
if self.active_profiles.filename_from_profile_name(program):
|
||
|
return True
|
||
|
- # Check the disk for profile
|
||
|
- prof_path = self.get_profile_filename(program)
|
||
|
- #print(prof_path)
|
||
|
- if os.path.isfile(prof_path):
|
||
|
- # Add to cache of profile
|
||
|
- raise AppArmorBug('This should never happen, please open a bugreport!')
|
||
|
- # self.active_profiles[program] = prof_path
|
||
|
- # return True
|
||
|
+
|
||
|
return False
|
||
|
|
||
|
def get_profile_filename(self, profile):
|