mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 14:55:10 +00:00
Simplify profiles_names_list()
... which is used by aa-remove-unknown. apparmor_parser can read a whole directory, therefore we don't need to do the directory listing, excluding *.rpmnew etc. ourself. Related to https://gitlab.com/apparmor/apparmor/-/issues/148
This commit is contained in:
@@ -215,14 +215,10 @@ profiles_names_list() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for profile in "$profile_dir"/*; do
|
LIST_ADD=$("$PARSER" -N "$profile_dir" )
|
||||||
if skip_profile "$profile" && [ -f "$profile" ] ; then
|
if [ $? -eq 0 ]; then
|
||||||
LIST_ADD=$("$PARSER" -N "$profile" )
|
echo "$LIST_ADD"
|
||||||
if [ $? -eq 0 ]; then
|
fi
|
||||||
echo "$LIST_ADD"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user