diff --git a/parser/rc.apparmor.functions b/parser/rc.apparmor.functions index 4215de833..2e017e601 100644 --- a/parser/rc.apparmor.functions +++ b/parser/rc.apparmor.functions @@ -253,7 +253,7 @@ remove_profiles() { retval=0 # We filter child profiles as removing the parent will remove # the children - sed -e "s/ (\(enforce\|complain\|unconfined\))$//" "$SFS_MOUNTPOINT/profiles" | \ + sed -e "s/ (\(enforce\|complain\|prompt\|kill\|unconfined\))$//" "$SFS_MOUNTPOINT/profiles" | \ LC_COLLATE=C sort | grep -v // | { while read -r profile ; do printf "%s" "$profile" > "$SFS_MOUNTPOINT/.remove" diff --git a/utils/aa-remove-unknown b/utils/aa-remove-unknown index 352d8c265..0011a9081 100755 --- a/utils/aa-remove-unknown +++ b/utils/aa-remove-unknown @@ -89,7 +89,7 @@ LOADED_PROFILES=$("$PARSER" -N $PROFILE_DIRS) || { echo "$LOADED_PROFILES" | awk ' BEGIN { while (getline < "'${PROFILES}'" ) { - sub(/ \((enforce|complain|unconfined)\)$/, "", $0); + sub(/ \((enforce|complain|prompt|kill|unconfined)\)$/, "", $0); if (match($0, /^libvirt-[0-9a-f\-]+$/) == 0) arr[$0] = $0 }