Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libsepol/cil: Fix instances where an error returns SEPOL_OK
There are six instances when the CIL policy is being built or resolved where an error can be detected, but SEPOL_OK is returned instead of SEPOL_ERR. This causes the policy compiler to continue when it should exit with an error. Return SEPOL_ERR in these cases, so the compiler exits with an error. Two of the instances were found by the secilc-fuzzer. Signed-off-by: James Carter <jwcart2@gmail.com>
- Loading branch information
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters