mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
commit patch provided by arekm
- remove bashism from initscript - fix segfault in apparmor_parser on x86-64
This commit is contained in:
@@ -374,8 +374,8 @@ 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";
|
||||
if ( echo "${profile}" | grep -q "^/" ] ; then
|
||||
profile="profile_$profile";
|
||||
fi
|
||||
echo "\"$profile\" { }" | $PARSER -R >/dev/null
|
||||
rc=$?
|
||||
|
Reference in New Issue
Block a user