2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

parser: Add warning flag that can toggle a set of developer warnings

Add the flag
  --warn=dev

to be able to toggle several developer warnings with a single flag.

Note: --warn=all is being reserved for a larger patch to warnings
when all warnings are setup with control flags.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/600
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2020-08-28 07:46:47 -07:00
parent c530c880b1
commit d50ada7159
2 changed files with 2 additions and 0 deletions

View File

@@ -251,6 +251,7 @@ optflag_table_t warnflag_table[] = {
{ 0, "rule-downgraded", "warn if a rule is downgraded to a lesser but still enforcing rule", WARN_RULE_DOWNGRADED },
{ 0, "abi", "warn if there are abi issues in the profile", WARN_ABI },
{ 0, "deprecated", "warn if something in the profile is deprecated", WARN_DEPRECATED },
{ 0, "dev", "turn on warnings that are useful for profile development", WARN_DEV },
{ 0, NULL, NULL, 0 },
};