The virtualization condition and others use lowercase identifiers, so
for the sake of keeping things least surprising, use lowercase
identifiers here too.
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
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;