6 ms·
> Many will point out that a Linux phone is less secure than Android or iOS, but that highly depends on your personal threat model. Linux phones and their apps
by codethief 1y ago
> Many will point out that a Linux phone is less secure than Android or iOS, but that highly depends on your personal threat model. Linux phones and their apps are all open-source and do not depend on ads or surveillance to sustain some nefarious business model, which means there is much privacy to be won.
Meanwhile here I am on my Linux machine, constantly anxious that sooner or later one of my bazillion npm and pip dependencies will get compromised, and secretly praying that one day proper sandboxing and an Android-security model will be common on the Linux desktop, so that I can erect security boundaries between my applications and repositories.
I find this quote[0] by the developer of SpectrumOS[1] rather telling:
<qyliss> I have embarked on the ultimate yak shave
<qyliss> it started with "I wish I could securely store passwords on my computer"
<qyliss> And now I am at the "I have funding to build my own operating system" level
[0]: https://alyssa.is/about/ https://alyssa.is/about/
[1]: https://spectrum-os.org/ https://spectrum-os.org/
- guappa 1y agoFirejail and apparmor have existed for years. If you don't use them maybe it's your fault? Also the very same npm backdoors have already hit android apps. What can sandboxing do if you backdoor a dependency of your banking app?
- aragilar 1y agoOr go old-school with multiple users and chroots? You could even install from (and host) a trusted repository, where the source and binaries are vetted (and you can pay people to do this for you).
- xorcist 1y agoServer software is usually compartmentalized in uid:s but desktop software seldom is, if ever. Package managers and maintainers could do a lot here to make it easier. Some things long time Linux users like to do, like running Firefox as a separate user, is still a much more involved process than it should be. A lot of it is probably standards and culture work, like where a user can expect to store files and have them readable by Firefox in this example. So perhaps this is something the GNOME/Freedesktop people could have been interested in and made a difference? Instead we have things like Flatpak, which is good but not the lowest hanging fruit here.
- aragilar 1y agoFor user-facing stuff, I agree it's hard because of the challenge of managing access to data (and I would argue no system does this well, Android has a different set of failure modes, and I've not used QubesOS but presumably it has it's own issues as well), but in the top-level comment, the concern was around using pip/npm, which to me is almost a solved problem if you care enough and are willing to put the effort (and money) in. It's also not like Linux is any different with respect to installing random PyPI/npm packages on any other desktop/laptop OS (https://xkcd.com/1200/ https://xkcd.com/1200/), so I'm not sure anything desktop Linux does here would change the fact that installing random software from the internet may be a bad idea sometimes ;)
- taeric 1y agoCompletely agreed on this. Linux, by and large, should actually be far easier here? Have a "work account" for your machine where you do these tasks and you are basically there. Switching to a gaming account or your banking/etc. seems easy enough?
- guappa 1y agoYou're going to deal with the users who can't attach a file to an email because the firefox process has no access to it?
- taeric 1y agoTo be fair, if firefox had the intelligence to know that it was being asked to attach a file it didn't have access to, it could prompt for a password. I don't expect full TRAMP like smarts from Emacs, but I don't see why this wouldn't be doable? Granted, I'm viewing this as far easier than the sandbox "fake file system" approach? Firefox would be able to see the file exists, most likely, but just not have read rights to it. Yes, you can have some things it can't list, but I would expect that to be low on probability to want to attach to an email?
- yencabulator 1y agoThe Flatpak/XDG people are standardizing the concept of "portal"s for doing things that need help from outside the sandbox. A properly sandboxed Flatpak app can only open files bind-mounted for it via a portal call.
- tholdem 1y agoSandboxing should be built in and by default, not DIY and glued on, like with apparmor and firejail. "Your car does not come with a seatbelt? Seatbelt parts are easy to order online and assembled on any car, it's your fault for not using one." > Also the very same npm backdoors have already hit android apps. What can sandboxing do if you backdoor a dependency of your banking app? The whole point of sandboxing is that one compromised app can not compromise the whole system and other apps. Compromised dependency on my banking app on Android or iOS only compromises that banking app and nothing else.
- dustbunny 1y agoFedora Silverblue is this
- tholdem 1y agoIt may be in the future, but for now it is no different from Fedora Workstation in terms of security. Please correct me if I am wrong. AFAIK Silverblue has no additional sandboxing or any other improvements to security.
- JCattheATM 1y agoPretty sure Fedora, being based on Red Hat, has the strongest SELinux policy in place by default, and SELinux is pretty much the best sandboxing option available other than actual virtualization.
- tholdem 1y agoYes, but this was about Silverblue and how it implements some additional sandboxing, which it doesn't. SELinux is great, but maintaining it and creating configs is huge amount of work and where on AOSP, every process is strictly confined with SELinux, on Fedora, not so much. Not to mention the additional software the user installs. Not at all comparable to real Android or iOS sandboxing.
- ForHackernews 1y agoThis is a solved problem if you trust the packaging folks for your distro. Most end-users will never need to install some random stuff from npm or pypi: these are developer-specific concerns.
- diggan 1y ago> Most end-users [...] these are developer-specific concerns I'd wager a bet and say most end-users who end up using Linux are, by one definition or more, developers.
- yjftsjthsd-h 1y ago> Meanwhile here I am on my Linux machine, constantly anxious that sooner or later one of my bazillion npm and pip dependencies will get compromised, and secretly praying that one day proper sandboxing and an Android-security model will be common on the Linux desktop, so that I can erect security boundaries between my applications and repositories. Why wait? You can shove your pip/npm uses into docker/podman and remove 90% of the attack surface today. (Provided you don't map your home directory into the containers)
- progbits 1y agoDocker is not a security barrier. There have been plenty of container escape attacks in the past, and plenty more to come. But I agree it might remove the 90%.
- yjftsjthsd-h 1y agoNo, Linux containers are a security barrier. They're not absolutely 100% impenetrable, but they're pretty good, and I would generally expect them to be fine against the kind of things most people are worried about getting from pip/npm.
- asdff 1y agoJust another reason not to needlessly update dependencies. To say nothing about the risk of compromising legacy code. And if you are someone who updates your dependencies constantly just because, consider that for many of the packages you are updating into they don't even do that and use some ancient dependency themselves owing to legacy code issue and the fact everyone for some reason wants to rename all their functions and flags every major version change.
- mixmastamyk 1y ago- opensnitch - flatpak - docker/podman/vm, etc - /etc/shadow has been around for decades. - Boot/login with TPM / Yubikey etc around for a decade.
- subscribed 1y agoYou can have Qubes OS on the certain PCs, in the same way you can have GrapheneOS on a certain family of the safe hardware.