News for hackers. Stuff that matters.
Re:Your Phone Is Your Castle by fsflover on Monday September 14, 2020 @06:44AM (#24468674)
> Provide a rooted phone by default.

Librem 5 is rooted. It's basically just a Desktop computer in the form-factor of a phone.

> Add tools that let me see what my phone is doing behind the scenes.

Everything is open source. You have all the power to study what your phone is doing. Standard GNU/Linux tools should work.

> Give me option to turn-off some of the things I don't like

Everything is free software, you can change it as you like. Also, there is no analytics by default: https://www.youtube.com/watch?v=yHcHi0TBFv4

> Help with planned obsolence by providing updates

Lifetime updates are promised. Even if the company dies, the community can support the phone, since it's FLOSS: https://wp.puri.sm/posts/librem-5-longevity-solving-the-prob...

> Edit: one more thing, please add NFC. Going back to carrying boatload of cards again is not an option

Unfortunately, not in the first version. One step at a time.

Re:Your Phone Is Your Castle by dathinab on Monday September 14, 2020 @10:44AM (#24470726)
> [..] It's basically just a Desktop computer in the form-factor of a phone.

Which is what has me worried the most.

The (common) security model of GNU/Linux is for today/2020 in my opinion pretty bad for desktops and totally unacceptable for phones.

When I first heard about snap and flatpack I thought things are slowly heading in a better direction but it turns out that was a misconception.

I haven't looked into how the libre phone does sandboxing but I don't have to much hopes to be honest.

Re:Your Phone Is Your Castle by lelele on Tuesday September 15, 2020 @03:25PM (#24485634)
> The (common) security model of GNU/Linux is for today/2020 in my opinion pretty bad for desktops and totally unacceptable for phones.

Would you please expand on this for desktops? or reference any kind of document? Thank you.

Re:Your Phone Is Your Castle by dathinab on Wednesday September 16, 2020 @04:56AM (#24490823)
Mostly what Zak says.

All applications and (preferable system services too) should be sandbox fist. Linux has much sandbox technology but it's often focused on server use-cases, fairly complex and everything but sandbox first (more like non-sandbox first and then we fit the sandbox to make it so that the program doesn't notice it runs in one).

But it's also many many small problems.

Most (all?) of which you can solve by a complex combination of selinux + cgroups + ... + modified applications + ... (long list). But doing so it a lot of work and often ends up with major usability drawbacks.

Just to name one example of a small but terrible feature: LD_PRELOAD.

Sure it's nice for hot-fixes including ad-hoc security hardening but it's generally a horrible idea in a context where you don't fully trust all programs.

Another think is that most programs can read conigs/settings of most other programs or at least know that there are such settings.

And the list goes one.

Again just to be clear you can fix a lot of this by putting things into Linux containers but what is missing is a container engine focused on desktop applications which goes far enough, which also entails you can't just run existing software without at least switching out the GTK/Qt framework with a version adapted for this use-case and potentially needing more adaption then this.

So all technical possible but we are not quite there yet I think, but then I'm not completely sure as I haven't followed some of the underlying topics close enough in the recent years.

Re:Your Phone Is Your Castle by Zak on Tuesday September 15, 2020 @07:23PM (#24487871)
I'm not the one you asked, but I think the underlying issue is that the Unix security model is built around the assumption that software shares the user's intent, and is treated as exactly as trusted as the user. Computers at the time tended to be multi-user, so the focus was on protecting users from other users. While there was a risk of overtly malicious software, preventing remote code execution attacks and teaching users not to run trojan horses was mostly sufficient (for Unix users; the broader population using Windows often installed malicious adware in the early 2000s).

In a modern environment, software should not necessarily be trusted to act in accordance with the user's wishes or best interests, and there's often a financial incentive for software creators to do things users wouldn't want them to. In the early 2000s, the most visible issue was Windows software that displayed advertisements outside of the software, often not obviously connected to the software. It would often monitor the user's browsing habits and such, leading to the name "spyware".

Spyware of that sort was universally considered malicious, but modern smartphone apps often send far more sensitive information, such as location and address books to their creators. Those provide a simple example of a situation the classic Unix security model doesn't address very well. I am the only user of my phone, and I obviously want to be able to read my address book and get my location from the GPS. I do not want the latest and greatest app for sharing pictures of my lunch to track my location to show me restaurant ads, and I only want it to know about people I have explicitly connected to within the app, not my whole address book.

Android's security model addresses that to a degree, restricting some capabilities until the user explicitly allows them. Some of these, like filesystem access aren't handled very gracefully, and it's possible for an app to refuse to work until granted permissions it doesn't really need (this is against policy for inclusion in the Play store, but enforcement is imperfect, and software can be installed from other sources). One workaround seen in XPrivacy is to feed fake data to apps.

Re:Your Phone Is Your Castle by nnt38 on Wednesday September 16, 2020 @07:31AM (#24491582)
AFAIK XPrivacy needs root to be installed, which would break part of the android security model.
Re:Your Phone Is Your Castle by Zak on Wednesday September 16, 2020 @12:19PM (#24494127)
Not just root, but Xposed, which breaks the Android security model even more.

Breakage isn't binary though. The user is still in charge of whether a given app gets access to root or Xposed features. The Android security model and additional security features of XPrivacy can be applied to apps the user does not trust with certain kinds of data or capabilities while granting other apps increased access.

Re:Your Phone Is Your Castle by tpxl on Monday September 14, 2020 @06:51AM (#24468716)
>> Add tools that let me see what my phone is doing behind the scenes.

>Everything is open source. You have all the power to study what your phone is doing. Standard GNU/Linux tools should work.

Yes, for the base system, however for third-party stuff, it would still be nice to prevent the apps from phoning home and stuff.

Re:Your Phone Is Your Castle by fsflover on Monday September 14, 2020 @07:16AM (#24468862)
But how do you already do it on GNU/Linux? You can do the same.
Re:Your Phone Is Your Castle by tpxl on Monday September 14, 2020 @08:18AM (#24469196)
Of course you can, but is it obvious and user friendly?
Re:Your Phone Is Your Castle by entropicdrifter on Monday September 14, 2020 @02:35PM (#24473494)
Linux phones are never going to be especially obvious or user friendly. To get those types of features you need a boatload of investment that the open source community can't hope to muster in any sort of reasonable timeframe.

For now the choice is privacy vs user friendliness. Currently rooted/de-Googled Android provides one of the best compromises for the average privacy-minded power user, but maybe in a few more years these Linux phones will be mature enough to give Android more of a run for their money.

Re:Your Phone Is Your Castle by zozbot234 on Monday September 14, 2020 @02:43PM (#24473578)
> To get those types of features you need a boatload of investment that the open source community can't hope to muster in any sort of reasonable timeframe.

The Linux desktop is an obvious counterexample. If the open source community can develop user-friendly desktop environments (GNOME, KDE Plasma, Xfce) they can surely develop user-friendly mobile stacks.

Re:Your Phone Is Your Castle by brnt on Monday September 14, 2020 @10:21AM (#24470459)
> Everything is open source. You have all the power to study what your phone is doing. Standard GNU/Linux tools should work.

The vastness of the just the changelogs makes that untenable. Understanding the changes to such a nontrivial stack is something experts will even struggle with.

Certainly, open source code is a prerequisite to any trust, but just that isn't enough.

Re:Your Phone Is Your Castle by fsflover on Monday September 14, 2020 @11:52AM (#24471617)
Everyone needs to check just one small thing of their choice. It would be enough for a good coverage.