diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-19 16:19:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-23 22:55:11 +0100 |
commit | 8a129c808a1ae78cb4593e99adb4c567c31bc72e (patch) | |
tree | 0a3bd5c7cbf0958c812036d95c046880943cafbe /docs/PORTABLE_SERVICES.md | |
parent | 60c5f7002bfee928fb8799eb35e5cc95da982a48 (diff) | |
download | systemd-8a129c808a1ae78cb4593e99adb4c567c31bc72e.tar.gz |
os-release: add new PORTABLE_PREFIXES= field for declaring valid portable service match prefixes
Diffstat (limited to 'docs/PORTABLE_SERVICES.md')
-rw-r--r-- | docs/PORTABLE_SERVICES.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/PORTABLE_SERVICES.md b/docs/PORTABLE_SERVICES.md index df6eb9958e..dd9164126f 100644 --- a/docs/PORTABLE_SERVICES.md +++ b/docs/PORTABLE_SERVICES.md @@ -247,6 +247,20 @@ image. To facilitate 3 and 4 you also need to include a boot loader in the image. As mentioned, `mkosi -b` takes care of all of that for you, but any other image generator should work too. +The +[os-release(5)](https://www.freedesktop.org/software/systemd/man/os-release.html) +file may optionally be extended with a `PORTABLE_PREFIXES=` field listing all +supported portable service prefixes for the image (see above). This is useful +for informational purposes (as it allows recognizing portable service images +from their contents as such), but is also useful to protect the image from +being used under a wrong name and prefix. This is particularly relevant if the +images are cryptographically authenticated (via Verity or a similar mechanism) +as this way the (not necessarily authenticated) image file name can be +validated against the (authenticated) image contents. If the field is not +specified the image will work fine, but is not necessarily recognizable as +portable service image, and any set of units included in the image may be +attached, there are no restrictions enforced. + ## Extension Images Portable services can be delivered as one or multiple images that extend the base |