summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-04 11:29:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-04 11:31:37 +0100
commit97149f405c69914919c510d08a09de0c3f4716cb (patch)
tree357fcfb5491eef5383a945d1132431149248557f
parent1330648562c6924f846b869cc40125776fcd4e04 (diff)
downloadsystemd-97149f405c69914919c510d08a09de0c3f4716cb.tar.gz
core: fix mac_selinux_setup return value check
Introduced in 74da609f0d0f9112047dd746188469df3692ad4a. CID #1384210.
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 66c2101b24..3fe4a173fe 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -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;