2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-01 06:45:38 +00:00

Fix aa-teardown for unconfined profiles

Fixes: https://bugzilla.opensuse.org/show_bug.cgi?id=1225457
This commit is contained in:
Christian Boltz
2024-05-28 21:13:47 +02:00
parent 38dfa14c60
commit f497afbe13

View File

@@ -253,7 +253,7 @@ remove_profiles() {
retval=0 retval=0
# We filter child profiles as removing the parent will remove # We filter child profiles as removing the parent will remove
# the children # the children
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | \ sed -e "s/ (\(enforce\|complain\|unconfined\))$//" "$SFS_MOUNTPOINT/profiles" | \
LC_COLLATE=C sort | grep -v // | { LC_COLLATE=C sort | grep -v // | {
while read -r profile ; do while read -r profile ; do
printf "%s" "$profile" > "$SFS_MOUNTPOINT/.remove" printf "%s" "$profile" > "$SFS_MOUNTPOINT/.remove"