summaryrefslogtreecommitdiff
path: root/units/image
diff options
authorPMR <pmr@pmr-lander>2021-06-30 10:21:26 +0000
committerPMR <pmr@pmr-lander>2021-06-30 10:21:26 +0000
commit3b91bc778fcff39e2a90dab13a667aa1e4d2d7e5 (patch)
tree698ae8c9a589485cd9f164513de7d98c1f10aa27 /units/image
parent3abf9457832382acac47e36b73a1aea7e65e1cc6 (diff)
parent8b80db367ebb6cb02acae79c49ef8c90a1823572 (diff)
Merge #404940 from ~hyac109/plainbox-provider-checkbox:model-grade-check-revampsnap-2021-07-01T1638
Diffstat (limited to 'units/image')
-rw-r--r--units/image/jobs.pxu8
1 files changed, 5 insertions, 3 deletions
diff --git a/units/image/jobs.pxu b/units/image/jobs.pxu
index d185550..d5aa7d4 100644
--- a/units/image/jobs.pxu
+++ b/units/image/jobs.pxu
@@ -71,16 +71,18 @@ command:
estimated_duration: 2.0
flags: preserve-locale
-id: image/model-grade-not-dangerous
+id: image/model-grade
category_id: image
-_summary: Check that the model grade is not missing or set to dangerous
+_summary: Check that the model grade is correctly set
requires:
lsb.distributor_id == "Ubuntu Core" and int(lsb.release) >= 20
_description:
Images with the 'dangerous' grade (the lowest of all available grades)
results in certain security measures to be relaxed.
Images that require strict security related implementations must
- have the model grade set to a grade higher than 'dangerous'.
+ have the model grade set to non-dangerous grades - either the highest
+ grade of 'secured', or a grade passed to checkbox for checking via the
+ MODEL_GRADE configuration variable.
plugin: shell
command:
ubuntucore_image_checks.py model-grade