close lid to encrypt
play

Close lid to encrypt Hard disk encryption in Linux suspend mode Tim - PowerPoint PPT Presentation

Close lid to encrypt Hard disk encryption in Linux suspend mode Tim Dittler FOSDEM, 02.02.2020 Whats Close lid to encrypt? Project by Jonas Meurer and me Freelancing systems engineers living in Germany Full-disk encryption


  1. Close lid to encrypt Hard disk encryption in Linux suspend mode Tim Dittler FOSDEM, 02.02.2020

  2. What‘s „Close lid to encrypt“? ● Project by Jonas Meurer and me – Freelancing systems engineers living in Germany ● Full-disk encryption in suspend mode ● For Debian and derivatives 2

  3. Why is is useful? ● Full-disk encryption protects your data only at rest powerofg working suspend working powerofg powerofg working suspend working powerofg 3

  4. Why is it diffjcult? ● Well, we‘re locking away your running operating system! ● Race conditions – Prevent access to locked fjlesystems – Otherwise kernel will wait forever ● Memory management – Swap on harddrive is encrypted 4

  5. How is it implemented? systemd-suspend.service cryptsetup-suspend-wrapper 5

  6. How is it implemented? systemd-suspend.service cryptsetup-suspend-wrapper build initramfs; freeze cgroups; chroot cryptsetup-suspend.c 6

  7. How is it implemented? systemd-suspend.service cryptsetup-suspend-wrapper build initramfs; freeze cgroups; chroot cryptsetup-suspend.c mlock; /sys/power/sync_on_suspend = 0; sync; luks-suspend; suspend kernel 7

  8. /sys/power/sync_on_suspend ??? 8

  9. How is it implemented? systemd-suspend.service (unlock session) clean up; unfreeze cgroups; cryptsetup-suspend-wrapper build initramfs; freeze cgroups; unlock luks devices chroot cryptsetup-suspend.c mlock; /sys/power/sync_on_suspend = 0; sync; resume luks-suspend; suspend kernel 9

  10. Demo 10

  11. Demo 11

  12. What‘s next? ● More testing ● Merge upstream – Debian Bullseye: „apt install cryptsetup-suspend“ ● How to handle situations with low available memory? ● There are more secrets in your memory than LUKS keys 12

  13. Thanks ● Cryptsetup authors – Jana Saout <jana@saout.de> – Clemens Fruhwirth <clemens@endorphin.org> – Milan Broz <gmazyland@gmail.com> – Ondrej Kozina <okozina@redhat.com> ● Cryptsetup Debian maintainers – Guilhem Moulin <guilhem@debian.org> – Jonas Meurer <jonas@freesources.org> 13 –

  14. Thanks ● Inspiration – Vianney le Clément de Saint-Marcq <vleclement@gmail.com> ● https://github.com/vianney/arch-luks-suspend – Jen Bowen <jen@nailfarmer.com> ● https://github.com/nailfarmer/debian-luks-suspend/ 14

  15. Thanks 15

  16. https://salsa.debian.org/ mejo/cryptsetup-suspend/ tim.dittler@systemli.org 16

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend