summaryrefslogtreecommitdiff
path: root/man/systemd-analyze.xml
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-11-04 19:47:29 +0000
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-11-05 21:09:43 +0000
commit03e93377dc47a5dabb4c4b968b241ecf03f72315 (patch)
tree4231b2a5b93fa9559c83c47e6914a1d897f6b0ca /man/systemd-analyze.xml
parentd54017e8f7e5cc01b02b41b92a28178d55dcc3da (diff)
downloadsystemd-03e93377dc47a5dabb4c4b968b241ecf03f72315.tar.gz
analyze: explain how the weight/range policy fields are used
Diffstat (limited to 'man/systemd-analyze.xml')
-rw-r--r--man/systemd-analyze.xml10
1 files changed, 7 insertions, 3 deletions
diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml
index 87e1536986..d3dfa9e526 100644
--- a/man/systemd-analyze.xml
+++ b/man/systemd-analyze.xml
@@ -1075,9 +1075,13 @@ Service b@0.service not loaded, b.socket cannot be started.
corresponding to a specific id of the unit file is missing from the JSON object, the
default built-in field value corresponding to that same id is used for security analysis
as default. The weight and range fields are used in determining the overall exposure level
- of the unit files so by allowing users to manipulate these fields, 'security' gives them
- the option to decide for themself which ids are more important and hence, should have a greater
- effect on the exposure level. </para>
+ of the unit files: the value of each setting is assigned a badness score, which is multiplied
+ by the policy weight and divided by the policy range to determine the overall exposure that
+ the setting implies. The computed badness is summed across all settings in the unit file,
+ normalized to the 1…100 range, and used to determine the overall exposure level of the unit.
+ By allowing users to manipulate these fields, the 'security' verb gives them the option to
+ decide for themself which ids are more important and hence should have a greater effect on
+ the exposure level.</para>
<programlisting>
{