2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

aa-teardown: print out which profile removal failed

This is a follow-up of https://gitlab.com/apparmor/apparmor/-/merge_requests/1242
to make it easier to identify failures.
This commit is contained in:
Christian Boltz
2024-06-08 23:35:02 +02:00
parent 1ec42d8bec
commit bc4ddd5f57

View File

@@ -260,6 +260,7 @@ remove_profiles() {
rc=$?
if [ "$rc" -ne 0 ] ; then
retval=$rc
aa_log_failure_msg "Unloading profile '$profile' failed"
fi
done
return "$retval"