#
#asahi · 2023-01-15 17:58
TobiasGrosserI see.
#asahi · 2023-01-15 17:57
dsharshakovif DT is stable enough to keep compatibility, then m1n1-1 -> m1n1-2 (common) + U-Boot built in -> EFI boot manager (grub) -> selectable kernels
#asahi · 2023-01-15 17:57
TobiasGrosserI see.
#asahi · 2023-01-15 17:56
dsharshakovChaosPrincess: well, can be avoided if DT stabilizes
#asahi · 2023-01-15 17:56
TobiasGrosserah, interesting.
#asahi · 2023-01-15 17:56
dsharshakovTobiasGrosser: GRUB can be removed in such a case
#asahi · 2023-01-15 17:56
ChaosPrincess-d+r
#asahi · 2023-01-15 17:56
ChaosPrincessm1n1 shouldnt be a boot picked
#asahi · 2023-01-15 17:56
dsharshakovI talked to m a r c a n about that, he said that we need sep first to not compromise the signing key if password is compromised. I didn't fully understand the issue, but ok
#asahi · 2023-01-15 17:55
ChaosPrincessbut imo, thats a bad idea
#asahi · 2023-01-15 17:55
TobiasGrosserWould grub then still be in the picture?
#asahi · 2023-01-15 17:55
ChaosPrincessYes
#asahi · 2023-01-15 17:55
TobiasGrosserRight. And you would store this bundle on ESP?
#asahi · 2023-01-15 17:54
dsharshakovAnd likely later the solution would be to create a fused bundle of m1n1-2 + u-boot + kernel and sign it. m1n1 will be the boot picker in that case
#asahi · 2023-01-15 17:54
TobiasGrosserThat is helpful.
#asahi · 2023-01-15 17:54
TobiasGrosserOK.
#asahi · 2023-01-15 17:54
ChaosPrincessTobiasGrosser: i guess that would work too
#asahi · 2023-01-15 17:54
dsharshakovU-Boot does have UEFI-style Secure Boot. However, that needs some improvements to work with keys/certs fused into the image (since no secure variable store available)
#asahi · 2023-01-15 17:53
TobiasGrosser(which means I could follow the https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019 tutorial)
#asahi · 2023-01-15 17:53
TobiasGrosserMh, then I could leave kernel and initrd encrypted in /boot (as ext4) partition and let grub decrypt it, no?
#asahi · 2023-01-15 17:52
ChaosPrincessaye
#asahi · 2023-01-15 17:52
TobiasGrosserAnd grub is also on ESP, no?
#asahi · 2023-01-15 17:52
TobiasGrosserAha.
#asahi · 2023-01-15 17:52
ChaosPrincessits on esp
#asahi · 2023-01-15 17:51
TobiasGrosserAh, interesting. What about m1n1 stage 2?
#asahi · 2023-01-15 17:51
TobiasGrosserI came across the ubuntu tutorial where the encrypted both / and /boot and thought that could work here as well. It seems because m1n1 stage 2 is on /boot that, I need to keep an unencrypted /boot.
#asahi · 2023-01-15 17:51
ChaosPrincessMove kernel and initrd to ESP, do / decryption from initrd
#asahi · 2023-01-15 17:50
TobiasGrosserThat's what I am trying to do (and failing because of me not understanding exactly how to configure grub). I will debug this further over the next weeks, but thought its useful to understand the setup a little bit more.
#asahi · 2023-01-15 17:49
ChaosPrincessIf your threat scenario is lost laptop, you can set up an encrypted /
#asahi · 2023-01-15 17:49
tpw_rulesthen that's achievable today, you just would have to authenticate with a password or whatever every boot and would be susceptible to an evil maid attack
#asahi · 2023-01-15 17:48
TobiasGrosserFor my personal needs, I feel an encrypted / would be good enough. I would love to see SEP eventually, but mostly would like my data encrypted if I loose my laptop.
#asahi · 2023-01-15 17:47
tpw_rulesi guess u-boot must have some secure boot support but i don't know anything about it, nor more importantly if it can be burned into the u-boot binary loaded by m1n1 so that the SEP protects it from modification
#asahi · 2023-01-15 17:47
TobiasGrosserAhh, m1n1 loads uboot and uboot today is on the unencrypted ext4 partition?
#asahi · 2023-01-15 17:46
tpw_rules(m1n1 also cannot load grub)
#asahi · 2023-01-15 17:46
tpw_rulesthen an attacker can add a malicious grub
#asahi · 2023-01-15 17:45
TobiasGrosserencrypt -> decrypt
#asahi · 2023-01-15 17:45
TobiasGrosserAFAIU m1n1 would not need to read from / or /boot. It would just load grub (from ESP), which would then encrypt the (/ and /boot) partitions and pass control to the linux kernel.
#asahi · 2023-01-15 17:44
TobiasGrosserI mostly try to understand the desirable end goal.
#asahi · 2023-01-15 17:44
tpw_rulesi don't think that gets you much because the ESP is still unencrypted and m1n1 can't directly read from / or /boot
#asahi · 2023-01-15 17:43
TobiasGrosserIn particular, they are in the /boot folder of that ext4 partition. At least the ubuntu-asahi that I installed had a shared root '/' and '/boot' parition. AFAIU both of them could remain shared and be encrypted, so only apfs and ESP remain unencrypted. Or am I wrong here?
#asahi · 2023-01-15 17:42
ChaosPrincessI think so.
#asahi · 2023-01-15 17:41
TobiasGrosserI see, but the kernel and initrd today are on a ext4 partition, which are loaded after grub (ESP), right?
#asahi · 2023-01-15 17:38
ChaosPrincessapple stuff -> m1n1 stage 1 (on apfs) -> m1n1 stage 2 (on ESP) -> u-boot (inside stage 2) -> grub (on ESP) -> kernel
#asahi · 2023-01-15 17:38
TobiasGrosserSo you say we load m1ni-stage-1 from the EFI partition, which then loads m1mi-stage-2 from the /boot directory. Then grub is loaded from EFI or /boot, ...?
#asahi · 2023-01-15 17:37
TobiasGrosserMh, I am not 100% sure I understand. Is the boot process of Asahi described somewhere on the wiki?
#asahi · 2023-01-15 17:36
ChaosPrincessYou can get secureboot by doing a single stage m1n1 directly into kernel
#asahi · 2023-01-15 17:36
ChaosPrincessCurrently m1n1 loads its stage 2 from /boot and does not support it being encrypted or signed
#asahi · 2023-01-15 17:34
TobiasGrossered boot as described in https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019? AFAIU both /boot and / can be encrypted, as long as the EFI partition ships the right version of Grub? Or did I misunderstand something here?
#asahi · 2023-01-15 17:34
TobiasGrosserchadmed: I just read through your https://github.com/AsahiLinux/docs/wiki/Apple-Platform-Security-Crash-Course article and was surprised by the phrase " An existing weakness is that /boot must be stored in the clear, and there is currently no Secure Boot or Measured Boot analogue with which we can guarantee the integrity of the kernel or initramfs." I have little experience in this space, but was wondering how to best set up
#asahi · 2023-01-15 17:17
ah-when it asks you to put it in ProAudio mode, that's a dropdown in pavucontrol under Configuration

plus ›