]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
apparmor-util: drop 'sym_' prefix from cleanup functions
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 02:21:12 +0000 (11:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 02:21:12 +0000 (11:21 +0900)
src/core/apparmor-setup.c
src/shared/apparmor-util.h

index 104335a75e103df389ec8fc8ede64ae65c047b92..c7bb9bf158ad253f980765576905417986cab00e 100644 (file)
@@ -14,8 +14,8 @@
 
 int mac_apparmor_setup(void) {
 #if HAVE_APPARMOR
-        _cleanup_(sym_aa_policy_cache_unrefp) aa_policy_cache *policy_cache = NULL;
-        _cleanup_(sym_aa_features_unrefp) aa_features *features = NULL;
+        _cleanup_(aa_policy_cache_unrefp) aa_policy_cache *policy_cache = NULL;
+        _cleanup_(aa_features_unrefp) aa_features *features = NULL;
         _cleanup_free_ char *current_profile = NULL, *cache_dir_path = NULL;
         int r;
 
index 52f8f7834cf713d3a7511d323eefe6dc13157bad..c3f97ceaafc958ea7adc8ad0b4f53c4f76029aa3 100644 (file)
@@ -17,8 +17,8 @@ extern DLSYM_PROTOTYPE(aa_policy_cache_new);
 extern DLSYM_PROTOTYPE(aa_policy_cache_replace_all);
 extern DLSYM_PROTOTYPE(aa_policy_cache_unref);
 
-DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(aa_features*, sym_aa_features_unref, NULL);
-DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(aa_policy_cache*, sym_aa_policy_cache_unref, NULL);
+DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(aa_features*, sym_aa_features_unref, aa_features_unrefp, NULL);
+DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(aa_policy_cache*, sym_aa_policy_cache_unref, aa_policy_cache_unrefp, NULL);
 
 int dlopen_libapparmor(void);
 #else