/** * aa_destroy_aafs - cleanup and free aafs * * releases dentries allocated by aa_create_aafs */ void __init aa_destroy_aafs(void) { if (aa_fs_dentry) { aafs_remove(".remove"); aafs_remove(".replace"); aafs_remove(".load"); securityfs_remove(aa_fs_dentry); aa_fs_dentry = NULL; } }
/** * aa_destroy_aafs - cleanup and free aafs * * releases dentries allocated by aa_create_aafs */ void __init aa_destroy_aafs(void) { if (aa_fs_dentry) { aafs_remove(".remove"); aafs_remove(".replace"); aafs_remove(".load"); #ifdef CONFIG_SECURITY_APPARMOR_COMPAT_24 aafs_remove("profiles"); aafs_remove("matching"); aafs_remove("features"); #endif securityfs_remove(aa_fs_dentry); aa_fs_dentry = NULL; } }