Merge branch 'cboltz-subshell' into 'master'

remove_profiles(): Fix returning $retval

See merge request apparmor/apparmor!352

Acked-by: Eric Chiang <ericchiang@google.com> for 2.11..master

(cherry picked from commit c9148a304c)

be02f008 remove_profiles(): Fix returning $retval
This commit is contained in:
Christian Boltz 2019-03-18 17:45:53 +00:00
parent 75236d62e2
commit d4f1f9310b

View file

@ -409,7 +409,8 @@ remove_profiles() {
# We filter child profiles as removing the parent will remove
# the children
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | \
LC_COLLATE=C sort | grep -v // | while read profile ; do
LC_COLLATE=C sort | grep -v // | {
while read profile ; do
echo -n "$profile" > "$SFS_MOUNTPOINT/.remove"
rc=$?
if [ ${rc} -ne 0 ] ; then
@ -418,6 +419,7 @@ remove_profiles() {
done
return ${retval}
}
}
apparmor_stop() {
aa_log_daemon_msg "Unloading AppArmor profiles "