Skip to content

Commit

Permalink
checkpolicy/fuzz: Update check_level() to use notdefined field
Browse files Browse the repository at this point in the history
Commit fe16f58 (Fix potential double free of mls_level_t) renamed
the "defined" field to "notdefined", but did not update this use of
it.

Use the new field "notdefined" for the check.

Signed-off-by: James Carter <[email protected]>
  • Loading branch information
jwcart2 committed Mar 7, 2024
1 parent fe16f58 commit 8c9d2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkpolicy/fuzz/checkpolicy-fuzzer.c
Expand Up @@ -135,7 +135,7 @@ static int check_level(hashtab_key_t key, hashtab_datum_t datum, void *arg __att
const level_datum_t *levdatum = (level_datum_t *) datum;

// TODO: drop member defined if proven to be always set
if (!levdatum->isalias && !levdatum->defined) {
if (!levdatum->isalias && levdatum->notdefined) {
fprintf(stderr,
"Error: sensitivity %s was not used in a level definition!\n",
key);
Expand Down

0 comments on commit 8c9d2d6

Please sign in to comment.