John Johansen
9c1803d62a
parser: cleanup/fix flagtable display for the warn, dump, and Optimize options
...
This changes the flagtable header from
warn: --./apparmor_parser [Option]
-O: --./apparmor_parser [Option]
dump: --./apparmor_parser [Option]
to
./apparmor_parser: --warn=[Option]
./apparmor_parser: -O [Option]
./apparmor_parser: --dump=[Option]
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/600
Signed-off-by: John Johansen <john.johansen@canonical.com>
2020-09-01 19:42:38 -07:00
John Johansen
6e6f99e0b8
parser: add the ability to print what flags are set in option flag tables
...
Add the ability to show which warnings are enabled by specifying "show"
as an to the --dump, --warn, and --Optimize options
Eg.
--warn=show
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/600
Signed-off-by: John Johansen <john.johansen@canonical.com>
2020-09-01 19:42:38 -07:00
John Johansen
db07b131b5
parser: unify flagtable printing for warn, dump and optimize
...
warn, dump, and optize share common printing of their option flag
tables, refactor and unify.
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/600
Signed-off-by: John Johansen <john.johansen@canonical.com>
2020-09-01 19:42:38 -07:00
John Johansen
77cd2e34a0
Split dfa optimization and dump flag handling into a separate file so that it can be shared with DFA test programs
...
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
Acked-by: Steve Beattie <steve@nxnw.org>
2014-04-23 11:10:41 -07:00