diff --git a/parser/Makefile b/parser/Makefile index f4cfb2ed0..a4557ebd8 100644 --- a/parser/Makefile +++ b/parser/Makefile @@ -252,6 +252,9 @@ install-slackware: .PHONY: install-debian install-debian: +.PHONY: install-unknown +install-unknown: + INSTALLDEPS=$(TOOLS) ifdef DISTRO INSTALLDEPS+=install-$(DISTRO) diff --git a/parser/parser_yacc.y b/parser/parser_yacc.y index e6a042353..aa986891c 100644 --- a/parser/parser_yacc.y +++ b/parser/parser_yacc.y @@ -544,7 +544,7 @@ rules: rules opt_audit_flag TOK_DENY network_rule free(entry); } - $$ = $1 + $$ = $1; } rules: rules opt_audit_flag network_rule @@ -582,7 +582,7 @@ rules: rules opt_audit_flag network_rule free(entry); } - $$ = $1 + $$ = $1; } rules: rules change_profile diff --git a/parser/rc.apparmor.functions b/parser/rc.apparmor.functions index eef694194..3832465c7 100644 --- a/parser/rc.apparmor.functions +++ b/parser/rc.apparmor.functions @@ -68,7 +68,7 @@ else fi # SUBDOMAIN_DIR and APPARMOR_DIR might be defined in subdomain.conf|apparmor.conf -if [ -d "${APPAMROR_DIR}" ] ; then +if [ -d "${APPARMOR_DIR}" ] ; then PROFILE_DIR=${APPARMOR_DIR} elif [ -d "${SUBDOMAIN_DIR}" ] ; then PROFILE_DIR=${SUBDOMAIN_DIR} @@ -115,7 +115,7 @@ is_apparmor_present() { grep -qE "^($modules)[[:space:]]" /proc/modules if [ $? -ne 0 ] ; then - ls /sys/module/apparmor | grep -qE "^($modules)" + ls /sys/module/apparmor 2>/dev/null | grep -qE "^($modules)" fi return $?