From 871c6d54e4194732eaf7c7956de256c07d507e24 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 15 Dec 2017 21:44:29 +0100 Subject: [PATCH] Add note about kernel version unportability --- man/systemd.unit.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 0d35d619e0..73f33a4580 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -1055,6 +1055,11 @@ by uname -r) matches a certain expression (or if prefixed with the exclamation mark does not match it). The argument must be a single string, optionally containing shell-style globs. + Note that using the kernel version string is an unreliable way to determine which features are supported + by a kernel, because of the widespread practice of backporting drivers, features, and fixes from newer upstream + kernels into older versions provided by distributions. Hence, this check is inherently unportable and should + not be used for units which may be used on different distributions. + ConditionSecurity= may be used to check whether the given security module is enabled on the system. Currently, the recognized values are -- 2.25.1