diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-15 13:44:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-17 22:51:44 +0100 |
commit | 2dda9c779e7b18acdd274b1133a0f115e73c7c7d (patch) | |
tree | 41897edf94f1b34751c1a28bf578ac0bb7d7d4ba /mime/io.systemd.xml | |
parent | vmspawn: include qemu cmdline in debug output (diff) | |
download | systemd-2dda9c779e7b18acdd274b1133a0f115e73c7c7d.tar.xz systemd-2dda9c779e7b18acdd274b1133a0f115e73c7c7d.zip |
mime: expose a mime type for encrypted credentials
Let's make things nice for desktops, and provide a mime type for
credential files.
This uses the 128bit header identifier that our credential files start
with. However, the files are always base64 encoded, hence we have to
match the base64 string, hence add a small test case that generates them
properly for us, and truncates them at the right place (since 128 is not
evently divisable by 6).
Diffstat (limited to 'mime/io.systemd.xml')
-rw-r--r-- | mime/io.systemd.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mime/io.systemd.xml b/mime/io.systemd.xml index 8b95cef9a5..cd36f8116c 100644 --- a/mime/io.systemd.xml +++ b/mime/io.systemd.xml @@ -10,4 +10,16 @@ <comment>Configuration Extension DDI</comment> <glob pattern="*.confext.raw"/> </mime-type> + <mime-type type="application/x.systemd-credential"> + <comment>Encrypted Credential</comment> + <generic-icon name="security-high"/> + <magic> + <match type="string" value="Whxqht+dQJax1aZeCGLxm" offset="0"/> + <match type="string" value="DHzAexF2RZGcSwvqCLwg/" offset="0"/> + <match type="string" value="+vfrk0HjQSyhpDb5Wik2L" offset="0"/> + <match type="string" value="k6iUCUh0RJCQyvL8k8q1U" offset="0"/> + <match type="string" value="r0lQqEkTTrGnOEYwT/MMB" offset="0"/> + <match type="string" value="BYRp2vb1QySABUnaD46i+" offset="0"/> + </magic> + </mime-type> </mime-info> |