mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-28 12:58:07 +00:00
commit patch provided by arekm
- remove bashism from initscript - fix segfault in apparmor_parser on x86-64
This commit is contained in:
parent
8c47189e19
commit
934e00a1de
@ -389,8 +389,7 @@ LT_EQUAL <=
|
|||||||
|
|
||||||
[^\n] {
|
[^\n] {
|
||||||
/* Something we didn't expect */
|
/* Something we didn't expect */
|
||||||
yylval = (YYSTYPE) strdup(yytext);
|
yyerror(_("Found unexpected character: '%s'"), yytext);
|
||||||
yyerror(_("Found unexpected character: '%s'"), yylval);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
@ -374,8 +374,8 @@ remove_profiles() {
|
|||||||
|
|
||||||
retval=0
|
retval=0
|
||||||
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | while read profile ; do
|
sed -e "s/ (\(enforce\|complain\))$//" "$SFS_MOUNTPOINT/profiles" | while read profile ; do
|
||||||
if [ ${profile:0:1} eq "/" ] ; then
|
if ( echo "${profile}" | grep -q "^/" ] ; then
|
||||||
$profile = "profile_$profile";
|
profile="profile_$profile";
|
||||||
fi
|
fi
|
||||||
echo "\"$profile\" { }" | $PARSER -R >/dev/null
|
echo "\"$profile\" { }" | $PARSER -R >/dev/null
|
||||||
rc=$?
|
rc=$?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user