534adb302f
- add profile_filename_cornercase.diff: drop check that lets aa-logprof error out in a corner-case (log event for a non-existing profile while a profile file with the default filename for that non-existing profile exists) (boo#1120472) OBS-URL: https://build.opensuse.org/request/show/662541 OBS-URL: https://build.opensuse.org/package/show/security:apparmor/apparmor?expand=0&rev=227
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):
|