2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

Update parser to allow for multiple debug dump options via -D or --dump.

This will allow turning on and off various debug dumps as needed.
Multiple dump options can be specified as needed by using multiple
options.
  eg. apparmor_parser -D variables
      apparmor_parser -D dfa-tree -D dfa-simple-tree


The help option has also been updated to take an optional argument
to display help about give parameters, currently only dump is supported.

  eg.  apparmor_parser -h       # standard help
       apparmor_parser -h=dump  # dump info about --dump options

Also Enable the dfa expression tree dumps
This commit is contained in:
John Johansen
2010-01-07 16:21:02 -08:00
parent 2f9259a215
commit 17a67d7227
5 changed files with 73 additions and 24 deletions

View File

@@ -168,6 +168,7 @@ struct var_string {
#define FLAG_CHANGEHAT_1_5 3
extern int flag_changehat_version;
extern int read_implies_exec;
extern dfaflags_t dfaflags;
#ifdef DEBUG
#define PDEBUG(fmt, args...) printf("parser: " fmt, ## args)