mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
![Lennart Poettering](/assets/img/avatar_default.png)
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).
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
|
<mime-type type="application/x.systemd-sysext">
|
|
<sub-class-of type="application/vnd.efi.img"/>
|
|
<comment>System Extension DDI</comment>
|
|
<glob pattern="*.sysext.raw"/>
|
|
</mime-type>
|
|
<mime-type type="application/x.systemd-confext">
|
|
<sub-class-of type="application/vnd.efi.img"/>
|
|
<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>
|