Secure Mobile OS
#5
Usually, there isn't that much fundamental difference between distros - probably the biggest defining factor is the package manager and its repositories. Most of the other differences come from the way the maintainers set it up, and generally, if there's some excellent security enhancement on one distro, there shouldn't be much stopping it from being added to another distro (or you setting it up yourself, even, if the maintainers refuse to do so).

Now, you ask which of the available ones is built with security/privacy in mind. While I haven't been keeping closely up to date with all of them, I think it's likely the case that right now, they're mostly built with getting features working properly in mind. There's still a not insignificant amount of work to do for things like getting the modem to reliably cooperate, improving power management, and generally improving user experience (better camera, porting more software to be mobile-ready, etc.)

However, some pointers if you want to either vet for, or set up yourself, secure systems:
- Sandboxing, as you mentioned. There are multiple sandboxing solutions. However, sandboxes are also hard to get right; a simple one might be very effective against a malicious program that doesn't take sandboxes into account, but as soon as it turns adversarial, it can be very hard to ensure a sandbox is secure against a program actively trying to escape it. Anyway, a sandbox is still usually better than no sandbox; a common solution is e.g. firejail. Both iOS and Android come with extensive sandboxing as part of their fundamental app architecture; on Pinephone this is harder because there are no "apps" with special properties; everything is just normal Linux software like you'd find on your computer, so it's much less straightforward to implement e.g. smartphone-like permission controls and such.
- Encryption. This is more for physical security (as in if your phone gets stolen), than security against malicious software. It's generally good practice to set up full disk encryption. You can go from a basic "password needed on boot" solution to really paranoid setups like Heads (though probably not on a pinephone, at least not easily). Support for encryption in installers is WIP for pinephone distributions (and this is one of those things that, once one of them gets it working, can be very easily added to the others); you might be able to set it up manually in the meantime, if you know what you're doing.
- Mandatory Access Controls (MAC), such as SELinux. If you're not familiar, this essentially involves defining a set of rules (policies) regarding what kinds of processes can access what kinds of resources. It stands in juxtaposition with Discretionary Access Controls, such as UNIX filesystem permissions, due to being much more fine-grained and forcing explicit permissions for different users, processes, or classes thereof, rather than letting you just "chmod 777" and having everyone be able to do anything. In turn, this allows file and resource access to be hardened much more effectively, up to being able to contain a malicious process and prevent it from effecting anything. However, due to being much more fine-grained, it is in turn a chore to set up. I am fairly certain it should be possible to do it yourself if you feel inclined, but I'm almost certain none of the distros ship with SELinux enabled, nor plan to enable it in the foreseeable future. For context, Android integrated SELinux a few years ago, but almost no desktop Linux distribution I know of enables it out of the box since the configuration must necessarily depend on individual usecases: Android works around this by having essentially a completely standardised userspace, with all "apps" running inside its ART environment rather than on the OS natively.

These are the biggest things that come to mind when I think of a "hardened Linux OS". Of course there's more, such as having a decent firewall set up, enabling kernel hardening features which might be disabled by default, and ensuring your system is up to date, but hopefully this gives you a decent idea of how greater security could be achieved on a Linux phone.

As for privacy, Ryo covered it pretty well already.

(12-10-2020, 03:47 AM)ryo Wrote: Do you even need app isolation if you're already careful?
Do you even need app isolation if you know how to avoid malware?

Defense in depth dictates that you shouldn't trust any measure to be infallible. Maybe tomorrow your nice secure chat app (Signal, Matrix, Jami, anything you like) has a vulnerability discovered and an attacker is able to execute remote code just by sending a message; no matter how much common sense you used, you are then at risk.
In practice, the risk is definitely tiny, and it may be true that in general you really don't need it, provided you don't believe you will be the victim of targeted attacks. But I wouldn't state that as an objective answer.


Messages In This Thread
Secure Mobile OS - by PineSupporter - 12-09-2020, 06:32 PM
RE: Secure Mobile OS - by ryo - 12-10-2020, 12:05 AM
RE: Secure Mobile OS - by PineSupporter - 12-10-2020, 01:46 AM
RE: Secure Mobile OS - by ryo - 12-10-2020, 03:47 AM
RE: Secure Mobile OS - by displacefish - 12-10-2020, 04:06 AM
RE: Secure Mobile OS - by ryo - 12-10-2020, 06:41 AM
RE: Secure Mobile OS - by displacefish - 12-10-2020, 08:50 AM
RE: Secure Mobile OS - by ryo - 12-10-2020, 03:42 PM
RE: Secure Mobile OS - by PineSupporter - 12-12-2020, 07:53 PM
RE: Secure Mobile OS - by ryo - 12-13-2020, 07:31 AM
RE: Secure Mobile OS - by PineSupporter - 12-13-2020, 10:42 AM
RE: Secure Mobile OS - by ryo - 12-13-2020, 04:44 PM
RE: Secure Mobile OS - by fsflover - 12-10-2020, 07:58 AM
RE: Secure Mobile OS - by displacefish - 12-10-2020, 07:33 PM
RE: Secure Mobile OS - by PineSupporter - 12-12-2020, 03:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  can I retrieve accidentally deleted voice mail with T mobile ? HLing 4 901 12-13-2023, 01:24 AM
Last Post: oldschool
  New Zealand network providers mobile data Linux2thabone 3 3,313 08-05-2023, 06:17 AM
Last Post: SchizoPinePhone225
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 10 3,371 07-07-2023, 12:06 PM
Last Post: jovval
  Problems updating KDE Plasma Mobile OS IMSAI8080 6 3,425 06-30-2023, 11:39 PM
Last Post: ionmich
  Current Situation With Setup and Carrier Activation With Tracfone Verizon T-Mobile pinephoneuser22 0 722 05-26-2023, 08:40 PM
Last Post: pinephoneuser22
  Cannot call at several mobile phones Gon 3 1,361 05-04-2023, 05:18 AM
Last Post: Gon
Lightbulb pinephone mobile dock jasmin763 2 1,741 06-06-2022, 09:06 AM
Last Post: 98cwitr
Question Mobile data suddenly gone epiii2 1 1,356 05-23-2022, 04:57 PM
Last Post: epiii2
  Mobile case wanted - with wireless charging! thorensjubilee 4 2,928 03-19-2022, 10:29 AM
Last Post: vap0rtranz
  mobile data jimbusch1 5 3,671 02-24-2022, 02:41 PM
Last Post: amindfv

Forum Jump:


Users browsing this thread: 1 Guest(s)