1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 16:59:03 +03:00

core: fix mac_selinux_setup return value check

Introduced in 74da609f0d. CID #1384210.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-01-04 11:29:36 +01:00
parent 1330648562
commit 97149f405c

View File

@ -2182,7 +2182,7 @@ static int initialize_security(
dual_timestamp_get(security_start_timestamp);
r = mac_selinux_setup(loaded_policy) < 0;
r = mac_selinux_setup(loaded_policy);
if (r < 0) {
*ret_error_message = "Failed to load SELinux policy";
return r;