-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added rd.kiwi.oem.luks.reencrypt boot option consumed by the kiwi-repart dracut module. For OEM LUKS2 encrypted disk images. If set, reencrypts the disk prior an eventual resize and therefore creates a new key pool and master key. The reencryption is advisable if the image binary is not protected. With access to the image binary it's possible to extract the luks header which then allows to decrypt the data unless it was reencrypted. The reencryption process only runs if the checksum of the luks header still matches the one from the original disk image. Be aware that the reencryption will ask for the passphrase if the image has been built with an initial luks passphrase.
- Loading branch information
Showing
13 changed files
with
267 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- OBS-Profiles: @BUILD_FLAVOR@ --> | ||
<image schemaversion="7.5" name="kiwi-test-image-luks"> | ||
<description type="system"> | ||
<author>Marcus Schäfer</author> | ||
<contact>[email protected]</contact> | ||
<specification>Disk full encryption disk test build</specification> | ||
</description> | ||
<profiles> | ||
<profile name="Insecure" description="Encrypted no reencryption"/> | ||
<profile name="ReEncryptExtraBootEmptyPass" description="Run reencryption with extra boot partition and empty passphrase"/> | ||
<profile name="ReEncryptExtraBootWithPass" description="Run reencryption with extra boot partition and passphrase"/> | ||
<profile name="ReEncryptFullDisk" description="Run full disk reencryption with passphrase"/> | ||
</profiles> | ||
<preferences> | ||
<version>1.15.1</version> | ||
<packagemanager>zypper</packagemanager> | ||
|
@@ -16,13 +22,51 @@ | |
<rpm-check-signatures>false</rpm-check-signatures> | ||
<bootsplash-theme>breeze</bootsplash-theme> | ||
<bootloader-theme>openSUSE</bootloader-theme> | ||
</preferences> | ||
<preferences profiles="Insecure"> | ||
<type image="oem" filesystem="ext4" kernelcmdline="console=ttyS0" firmware="uefi" luks="linux" luks_version="luks2" luks_pbkdf="pbkdf2" bootpartition="false"> | ||
<luksformat> | ||
<option name="--cipher" value="aes-xts-plain64"/> | ||
<option name="--key-size" value="256"/> | ||
</luksformat> | ||
<oemconfig> | ||
<oem-resize>false</oem-resize> | ||
<oem-resize>true</oem-resize> | ||
</oemconfig> | ||
<bootloader name="grub2" console="serial" timeout="10"/> | ||
</type> | ||
</preferences> | ||
<preferences profiles="ReEncryptExtraBootEmptyPass"> | ||
<type image="oem" filesystem="ext4" kernelcmdline="console=ttyS0 rd.kiwi.oem.luks.reencrypt" firmware="uefi" luks="" luks_version="luks2" luks_pbkdf="pbkdf2" bootpartition="true"> | ||
<luksformat> | ||
<option name="--cipher" value="aes-xts-plain64"/> | ||
<option name="--key-size" value="256"/> | ||
</luksformat> | ||
<oemconfig> | ||
<oem-resize>true</oem-resize> | ||
</oemconfig> | ||
<bootloader name="grub2" console="serial" timeout="10"/> | ||
</type> | ||
</preferences> | ||
<preferences profiles="ReEncryptExtraBootWithPass"> | ||
<type image="oem" filesystem="ext4" kernelcmdline="console=ttyS0 rd.kiwi.oem.luks.reencrypt" firmware="uefi" luks="linux" luks_version="luks2" luks_pbkdf="pbkdf2" bootpartition="true"> | ||
<luksformat> | ||
<option name="--cipher" value="aes-xts-plain64"/> | ||
<option name="--key-size" value="256"/> | ||
</luksformat> | ||
<oemconfig> | ||
<oem-resize>true</oem-resize> | ||
</oemconfig> | ||
<bootloader name="grub2" console="serial" timeout="10"/> | ||
</type> | ||
</preferences> | ||
<preferences profiles="ReEncryptFullDisk"> | ||
<type image="oem" filesystem="ext4" kernelcmdline="console=ttyS0 rd.kiwi.oem.luks.reencrypt" firmware="uefi" luks="linux" luks_version="luks2" luks_pbkdf="pbkdf2" bootpartition="false"> | ||
<luksformat> | ||
<option name="--cipher" value="aes-xts-plain64"/> | ||
<option name="--key-size" value="256"/> | ||
</luksformat> | ||
<oemconfig> | ||
<oem-resize>true</oem-resize> | ||
</oemconfig> | ||
<bootloader name="grub2" console="serial" timeout="10"/> | ||
</type> | ||
|
@@ -61,6 +105,7 @@ | |
<package name="shim"/> | ||
<package name="timezone"/> | ||
<package name="cryptsetup"/> | ||
<package name="dracut-kiwi-oem-repart"/> | ||
</packages> | ||
<packages type="bootstrap"> | ||
<package name="gawk"/> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.