mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 06:45:38 +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=$?
|
rc=$?
|
||||||
if [ "$rc" -ne 0 ] ; then
|
if [ "$rc" -ne 0 ] ; then
|
||||||
retval=$rc
|
retval=$rc
|
||||||
|
aa_log_failure_msg "Unloading profile '$profile' failed"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
return "$retval"
|
return "$retval"
|
||||||
|
Reference in New Issue
Block a user