2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-09-02 15:25:27 +00:00

parser: add support for prompt profile mode

Add support for the prompt profile mode.

Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
John Johansen
2019-12-05 14:20:24 -08:00
parent a271b2474c
commit e5dace9ffd
16 changed files with 144 additions and 3 deletions

View File

@@ -62,9 +62,10 @@ enum profile_mode {
MODE_COMPLAIN = 2,
MODE_KILL = 3,
MODE_UNCONFINED = 4,
MODE_CONFLICT = 5 /* greater than MODE_LAST */
MODE_PROMPT = 5,
MODE_CONFLICT = 6 /* greater than MODE_LAST */
};
#define MODE_LAST MODE_UNCONFINED
#define MODE_LAST MODE_PROMPT
static inline enum profile_mode operator++(enum profile_mode &mode)
{