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

  • grapemix
    link
    fedilink
    arrow-up
    1
    ·
    3 days ago

    I saw an emergency btn in grapheneos. Never use it.

  • scratchandgame
    link
    fedilink
    Tiếng Việt
    arrow-up
    1
    ·
    4 days ago

    Oh, I heard you are saying about privacy. The programs you are using have unlimited access to your filesystem if you do not sandbox it.

  • CameronDev@programming.dev
    link
    fedilink
    arrow-up
    32
    ·
    9 days 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?

      • CameronDev@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        8 days 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
    link
    fedilink
    arrow-up
    16
    ·
    9 days ago

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

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    12
    arrow-down
    3
    ·
    edit-2
    9 days 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
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    9 days 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.

  • eldavi
    link
    fedilink
    arrow-up
    1
    arrow-down
    11
    ·
    edit-2
    9 days ago

    Vanilla Android: no

    f-droid, lineage, et al. on an Android phone: yes with caveats.