summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/systemd.unit.xml2
-rw-r--r--src/condition.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
index 73968067a1..5460ebeb2f 100644
--- a/man/systemd.unit.xml
+++ b/man/systemd.unit.xml
@@ -634,7 +634,7 @@
may be used to check whether the given security
module is enabled on the system.
Currently the only recognized value is
- <varname>SELinux</varname>.
+ <varname>selinux</varname>.
The test may be negated by prepending an
exclamation mark. Finally,
<varname>ConditionNull=</varname> may
diff --git a/src/condition.c b/src/condition.c
index ee0809f76d..a520e43436 100644
--- a/src/condition.c
+++ b/src/condition.c
@@ -134,7 +134,7 @@ static bool test_virtualization(const char *parameter) {
static bool test_security(const char *parameter) {
#ifdef HAVE_SELINUX
- if (!strcasecmp(parameter, "SELinux"))
+ if (streq(parameter, "selinux"))
return is_selinux_enabled() > 0;
#endif
return false;