summaryrefslogtreecommitdiff
path: root/units/image
diff options
authorPMR <pmr@pmr-lander>2021-06-30 15:56:35 +0000
committerPMR <pmr@pmr-lander>2021-06-30 15:56:35 +0000
commite24158af0b4b66cde3dd3d7f2c5f198f0b8b4ebe (patch)
treefb72199fc1701394aa710499e3ff206d7e0dc6cc /units/image
parent529c39ee0a1d7daa2ae578722ccefbe2279ee388 (diff)
Import plainbox-provider-checkbox_0.59.0~rc1.orig.tar.gzupstream-0.59.0_rc1patched-0.59.0_rc1-1
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