mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +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
|
||||
# the children
|
||||
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | \
|
||||
LC_COLLATE=C sort | grep -v // | while read profile ; do
|
||||
echo -n "$profile" > "$SFS_MOUNTPOINT/.remove"
|
||||
rc=$?
|
||||
if [ ${rc} -ne 0 ] ; then
|
||||
retval=${rc}
|
||||
fi
|
||||
done
|
||||
return ${retval}
|
||||
LC_COLLATE=C sort | grep -v // | {
|
||||
while read profile ; do
|
||||
echo -n "$profile" > "$SFS_MOUNTPOINT/.remove"
|
||||
rc=$?
|
||||
if [ ${rc} -ne 0 ] ; then
|
||||
retval=${rc}
|
||||
fi
|
||||
done
|
||||
return ${retval}
|
||||
}
|
||||
}
|
||||
|
||||
apparmor_stop() {
|
||||
|
Reference in New Issue
Block a user