32
submitted 1 day ago* (last edited 1 day ago) by CkrnkFrnchMn@lemmy.ca to c/linux@lemmy.ml

Hey there, Just wondering is Linux on an Android device (through UserLAnd or else) is as secure as Linux as the main OS.

Edit...Should say private not secure

Tanx much

top 10 comments
sorted by: hot top controversial new old
[-] CameronDev@programming.dev 31 points 1 day ago

This is a bit of a "how long is a piece of string" question, security is multifaceted.

From what I understand, it uses your phones kernel, so if its out of date or vulnerable, that might be a problem, and you may not be able to fix that.

Conversely, its running inside android, so the android hardening might make it more secure.

What are you specifically concerned about? Firewall? Zero days? Antimalware?

[-] CkrnkFrnchMn@lemmy.ca 3 points 1 day ago

I didn'tt write my question properly...what I meant to say was privacy and not security

[-] CameronDev@programming.dev 3 points 16 hours ago

Still a bit open ended. Web browser finger printing is probably going to be quite specific, unless you have a browser that avoids fingerprinting.

There is a trust issue, you need to trust the userland packagers to not build in any additional tracking, but its pretty unlikely that they'll do that given its a tiny project.

Privacy is also multifaceted, and its never going to be as simple as "use this distro". The techniques for online tracking are changing and evolving all the time.

[-] teije9@lemmy.blahaj.zone 16 points 1 day ago

android is very sandboxed, so anything you do in termux/userland can't affect the android on your phone (unless you're rooted)

[-] CkrnkFrnchMn@lemmy.ca 2 points 1 day ago

So...I could still use a vpn or tracker control in Android and I'd get some protection on the installed linux..?

[-] chronicledmonocle@lemmy.world 10 points 1 day ago* (last edited 1 day ago)

How secure an OS is depends entirely on the configuration. A Linux install can be less secure than Windows or macOS, if configured so.

Linux tends to be more secure OOTB because distro devs tend to be security conscious. Android is also fairly secure, since it has no root access, sandboxes applications to a degree, and has other hardening employed. However, Android is also very vast and built for various devices by many manufacturers, so it also depends on them.

[-] shirro@aussie.zone 3 points 1 day ago* (last edited 1 day ago)

There is no simple answer. Its is almost entirely dependent on implementation. All systems are vulnerable to things like supply chain attacks. We put a lot of trust in phone vendors, telcos and Google.

If you are going to compare to something like termux you need to compare with an equivalent sandboxed environment on regular linux, like a docker/podman container with appropriate permissions. As far as I know they use the same linux kernel features like cgroups and namespaces under the hood.

Traditionally Linux desktop apps run with the full permissions of the user and the X window system lets apps spy on each other which is less secure than Android sandboxing by design. There have been attempts to do better (eg flatpak/flatseal, wayland) but they are optional.

this post was submitted on 12 Nov 2024
32 points (94.4% liked)

Linux

48152 readers
601 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS