mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01: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:
parent
e0faaa4c4b
commit
c461e09e70
1 changed files with 10 additions and 8 deletions
|
@ -403,14 +403,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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue