mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
fix initscript removal of profiles without attachment specification
This commit is contained in:
parent
51558b0b19
commit
10a2b621f4
1 changed files with 3 additions and 0 deletions
|
@ -374,6 +374,9 @@ remove_profiles() {
|
|||
|
||||
retval=0
|
||||
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
|
||||
rc=$?
|
||||
if [ ${rc} -ne 0 ] ; then
|
||||
|
|
Loading…
Add table
Reference in a new issue