mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
parser: fix writing dfa flags
Currently the parser is not correctly setting the dfa flag value and it hasn't been caught because base policy uses a flag value of 0. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
7c29bfebe3
commit
6062262ccd
@ -402,7 +402,7 @@ void CHFA::flex_table(ostream &os, const char *name)
|
||||
|
||||
size_t hsize = pad64(sizeof(th) + sizeof(th_version) + strlen(name) + 1);
|
||||
th.th_magic = htonl(YYTH_REGEX_MAGIC);
|
||||
th.th_flags = htonl(chfaflags);
|
||||
th.th_flags = htons(chfaflags);
|
||||
th.th_hsize = htonl(hsize);
|
||||
th.th_ssize = htonl(hsize +
|
||||
flex_table_size(accept.begin(), accept.end()) +
|
||||
|
Loading…
x
Reference in New Issue
Block a user