mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-19 20:50:08 +00:00
libsepol: Return an error if check_assertion() returns an error.
Instead of calling report_assertion_failures() and treating an error like it was a neverallow violation, just return an error. Signed-off-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
4be0e2e19c
commit
521e6ad713
@ -538,6 +538,10 @@ int check_assertions(sepol_handle_t * handle, policydb_t * p,
|
||||
if (!(a->specified & (AVRULE_NEVERALLOW | AVRULE_XPERMS_NEVERALLOW)))
|
||||
continue;
|
||||
rc = check_assertion(p, a);
|
||||
if (rc < 0) {
|
||||
ERR(handle, "Error occurred while checking neverallows");
|
||||
return -1;
|
||||
}
|
||||
if (rc) {
|
||||
rc = report_assertion_failures(handle, p, a);
|
||||
if (rc < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user