mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
parser: convert the stored audit from a bit mask to a bool
This delays the convertion of the audit flag until passing to the backend. This is a step towards fix the parser front end so that it doesn't use encoded permission mappings. Note: the patch embedds the bool conversion into a struct to ensure the compiler will fail to build unless every use is fixed. The struct is removed in the following patch. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -45,12 +45,12 @@ public:
|
||||
char *label;
|
||||
char *peer_label;
|
||||
perms_t perms;
|
||||
int audit;
|
||||
struct { bool audit; } audit;
|
||||
bool deny;
|
||||
|
||||
af_rule(const char *name): af_name(name), sock_type(NULL),
|
||||
sock_type_n(-1), proto(NULL), proto_n(0), label(NULL),
|
||||
peer_label(NULL), perms(0), audit(0), deny(0)
|
||||
peer_label(NULL), perms(0), audit({ false }), deny(0)
|
||||
{}
|
||||
|
||||
virtual ~af_rule()
|
||||
|
Reference in New Issue
Block a user