mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
Error out on unhandled parts when parsing a profile
... (using `%option nodefault`) instead of echoing the unknown parts to stdout, and ignoring the error. This will cause the parser to error out with flex scanner jammed and $?=2 if a profile contains unknown/invalid parts. That's not really a helpful error message, but still better than ignoring errors. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/569 Signed-off-by: Christian Boltz <apparmor@cboltz.de> Acked-by: John Johansen <john.johansen@canonical.com> Acked-by: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
parent
8da6cd9f6f
commit
c01ed1d57b
@ -25,6 +25,7 @@
|
|||||||
%option noyy_top_state
|
%option noyy_top_state
|
||||||
%option nounput
|
%option nounput
|
||||||
%option stack
|
%option stack
|
||||||
|
%option nodefault
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user