]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: explain how the weight/range policy fields are used
authorLuca Boccassi <luca.boccassi@microsoft.com>
Thu, 4 Nov 2021 19:47:29 +0000 (19:47 +0000)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 5 Nov 2021 21:09:43 +0000 (21:09 +0000)
man/systemd-analyze.xml

index 87e153698621dea7b898ca1ce2d27173fd30e9df..d3dfa9e5261f02fbeb8bb9d2a4a40c5c2473db99 100644 (file)
@@ -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>
           {