News for hackers. Stuff that matters.
Re:Pinephone – Community Edition: UBports by 188201 on Saturday April 11, 2020 @07:44PM (#22845049)
One thing stops me using UBport is no full disk encryption support. The reason seems to be there are no way for them to get around the bootloader of a standard Android phone to boot an encrypted UBport. With a more open hardware Pinephone, are there any roadmap for them to implement on it?
Re:Pinephone – Community Edition: UBports by zozbot234 on Saturday April 11, 2020 @08:24PM (#22845200)
> The reason seems to be there are no way for them to get around the bootloader of a standard Android phone to boot an encrypted UBport.

How so? The bootloader only boots what is in the boot partition, it shouldn't even care about anything else if it's properly unlocked. The only issue on standard AOSP is that encryption there affects the entire 'userdata' partition, so the OS must manage to boot and prompt for a password while only accessing the "system" partition, which is relatively small on many devices. But that's no different than booting a system that has had its userdata wiped (either as part of bootloader unlock or for recovery).

Re:Pinephone – Community Edition: UBports by mirimir on Saturday April 11, 2020 @09:37PM (#22845481)
Huh.

So which of the Linux distros that run on Pinephone do support FDE with LUKS?

Re:Pinephone – Community Edition: UBports by weikju on Saturday April 11, 2020 @10:59PM (#22845740)
postmarketOS now has that option, and Ubunutu Touch has an unofficial guide on how to accomplish this, though very much unsupported.
Re:Pinephone – Community Edition: UBports by yjftsjthsd-h on Saturday April 11, 2020 @08:16PM (#22845161)
Would an encrypted home suffice?
Re:Pinephone – Community Edition: UBports by zozbot234 on Saturday April 11, 2020 @08:29PM (#22845223)
Standard Android systems have a separate userdata partition that holds everything besides the equivalents of /boot/ (boot - more of a boot image in a firmware-dependent format than a real "partition", even though it's implemented as such) and a minimal, read-only /usr/, /bin/, /sbin/ (system). Everything else, not just /home/ is in the userdata partition; and the system must be able to (1) deal with a wiped userdata while preserving some kind of basic functionality, and (2) prompt for a password in case userdata is encrypted. It's a lot like running a "LiveCD with persistence", except that the space you get on the "LiveCD" part is hardware dependent, and can be very limited even on very recent Android phones.
Re:Pinephone – Community Edition: UBports by yjftsjthsd-h on Sunday April 12, 2020 @12:32AM (#22846070)
So I was mostly thinking in the context of postmarketos, where we have a less-weird filesystem layout to work with and can assume that user data lives in the home directory and can be on its ownfilesystem.

That said: Yeah, Android+Linux is super weird if you're used to GNU+Linux:) And I'm pretty sure it would be more complicated, since I'm basically proposing that we protect data but not code; I think you'd need to protect /data at a minimum, maybe more (I forget where Android sticks the "internal storage" directory). That said, I think you could do it on Android.

Re:Pinephone – Community Edition: UBports by thulecitizen on Saturday April 11, 2020 @10:38PM (#22845676)
I think they meant an actual home, not the home directory (I could be mistaken).
Re:Pinephone – Community Edition: UBports by yjftsjthsd-h on Sunday April 12, 2020 @12:27AM (#22846051)
Ah, sorry, no I actually meant the home directory in the case of postmarketos, although I wouldn't mind extending the concept to Android. It seems like you can get 90% of the benefit with 10% of the difficulty if you have an unencrypted OS but mount your home (well "user data") from an encrypted filesystem. Heck, I can't think of any reason that on a normal unix-like[0] you couldn't mount your whole home directory with encfs or something after login. This doesn't protect you from evil maid attacks, but for common phone threat models (theft, mostly) this is still a win.

[0] I was going to say GNU/Linux system, but pmos is based on Alpine which isn't really GNU so much as Busybox/Linux...