mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00:00
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 commitc9148a304c
)be02f008
remove_profiles(): Fix returning $retval
This commit is contained in:
@@ -409,14 +409,16 @@ remove_profiles() {
|
|||||||
# We filter child profiles as removing the parent will remove
|
# We filter child profiles as removing the parent will remove
|
||||||
# the children
|
# the children
|
||||||
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | \
|
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | \
|
||||||
LC_COLLATE=C sort | grep -v // | while read profile ; do
|
LC_COLLATE=C sort | grep -v // | {
|
||||||
echo -n "$profile" > "$SFS_MOUNTPOINT/.remove"
|
while read profile ; do
|
||||||
rc=$?
|
echo -n "$profile" > "$SFS_MOUNTPOINT/.remove"
|
||||||
if [ ${rc} -ne 0 ] ; then
|
rc=$?
|
||||||
retval=${rc}
|
if [ ${rc} -ne 0 ] ; then
|
||||||
fi
|
retval=${rc}
|
||||||
done
|
fi
|
||||||
return ${retval}
|
done
|
||||||
|
return ${retval}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apparmor_stop() {
|
apparmor_stop() {
|
||||||
|
Reference in New Issue
Block a user