2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

Update the parse to emit a 0 to seperate pairs in the dfa.

This was always the intended behavior and fixes a bug where
the dfa will match change profile rules using // seperator.
This commit is contained in:
John Johansen
2008-03-13 16:46:19 +00:00
parent 923fc92c7a
commit 814773b2e1
4 changed files with 42 additions and 24 deletions

View File

@@ -21,7 +21,10 @@ typedef struct aare_ruleset aare_ruleset_t;
aare_ruleset_t *aare_new_ruleset(int reverse);
void aare_delete_ruleset(aare_ruleset_t *rules);
int aare_add_rule(aare_ruleset_t *rules, char *rule, uint32_t perms);
int aare_add_rule(aare_ruleset_t *rules, char *rule, int deny,
uint32_t perms, uint32_t audit);
int aare_add_rule_vec(aare_ruleset_t *rules, int deny, uint32_t perms,
uint32_t audit, int count, char **rulev);
void *aare_create_dfa(aare_ruleset_t *rules, int equiv_classes, size_t *size);
#ifdef __cplusplus