Skip to content

Commit

Permalink
libsepol/cil: Initialize the multiple_decls field of the cil db
Browse files Browse the repository at this point in the history
Initialize the multiple_decls field when intializing the structure
cil_db.

Fixes: fafe4c2 ("libsepol: cil: Add ability to redeclare types[attributes]")
Reported-by: Topi Miettinen <toiwoton@gmail.com
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: James Carter <jwcart2@gmail.com>
  • Loading branch information
jwcart2 authored and stephensmalley committed May 29, 2020
1 parent c554c3d commit 7b1227b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libsepol/cil/src/cil.c
Expand Up @@ -459,6 +459,7 @@ void cil_db_init(struct cil_db **db)
(*db)->preserve_tunables = CIL_FALSE;
(*db)->handle_unknown = -1;
(*db)->mls = -1;
(*db)->multiple_decls = CIL_FALSE;
(*db)->target_platform = SEPOL_TARGET_SELINUX;
(*db)->policy_version = POLICYDB_VERSION_MAX;
}
Expand Down

0 comments on commit 7b1227b

Please sign in to comment.