apparmor-util: drop 'sym_' prefix from cleanup functions

This commit is contained in:
Yu Watanabe
2025-10-25 11:21:12 +09:00
parent 78c86080ec
commit afb9b7c581
2 changed files with 4 additions and 4 deletions

View 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;

View 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