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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user