mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-04 08:15:21 +00:00
fix initscript removal of profiles without attachment specification
This commit is contained in:
@@ -374,6 +374,9 @@ remove_profiles() {
|
|||||||
|
|
||||||
retval=0
|
retval=0
|
||||||
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | while read profile ; do
|
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | while read profile ; do
|
||||||
|
if [ ${profile:0:1} eq "/" ] ; then
|
||||||
|
$profile = "profile_$profile";
|
||||||
|
fi
|
||||||
echo "\"$profile\" { }" | $PARSER -R >/dev/null
|
echo "\"$profile\" { }" | $PARSER -R >/dev/null
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ ${rc} -ne 0 ] ; then
|
if [ ${rc} -ne 0 ] ; then
|
||||||
|
Reference in New Issue
Block a user