From 0da12fe7cb099b13209f8081ba6688a6fa1a5be3 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Thu, 7 Nov 2024 19:32:49 +0100 Subject: [PATCH] Use extra_profiles.profile_exists() ... instead of accessing the internal storage directly. --- utils/apparmor/aa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/apparmor/aa.py b/utils/apparmor/aa.py index 2d3837a1b..e5905018f 100644 --- a/utils/apparmor/aa.py +++ b/utils/apparmor/aa.py @@ -432,7 +432,7 @@ def create_new_profile(localfile, is_stub=False): def get_profile(prof_name): """search for inactive/extra profile, and ask if it should be used""" - if not extra_profiles.profiles.get(prof_name, False): + if not extra_profiles.profile_exists(prof_name): return None # no inactive profile found # TODO: search based on the attachment, not (only?) based on the profile name