Imagine your friend that does not know anything about linux, don’t you think this would make them not install the firefox flatpak and potentially think that linux is unsafe?

I ask this because I believe we must be careful and make small changes to welcome new users in the future, we have to make them as much comfortable as possible when experimenting with a new O.S

I believe this warning could have a less alarming design, saying something like “This app can use elevated permissions. What does this mean?” with the “What does this mean?” text as a clickable URL that shows the user that this may cause security risks. I mean, is kind of a contradiction to have “verified” on the app and a red warning saying “Potentially unsafe”, the user will think “well, should I trust this or not??”

  • PlantPowerPhysicist@discuss.tchncs.de
    link
    fedilink
    arrow-up
    21
    ·
    edit-2
    4 days ago

    In defense of this warning, when I first put my application on Flathub, I had it because of how file i/o worked (didn’t support XDG portals, so needed home folder access to save properly). It did actually motivate me to get things working with portals to not request the extra permissions and get the green “safe” marker.

    A lot of apps will always be “unsafe” because they do things that requires hardware access, though, so I could see them wanting something more nuanced.

  • lolcatnip@reddthat.com
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    2
    ·
    4 days ago

    To be fair, if a naive user is going to get a virus, there’s a very high chance a browser will be involved.

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    145
    ·
    5 days ago

    I like flatpaks and flathub, but this is just something they do badly. I think as well they also have “probably safe” which is just as unhelpful… And what does “access certain files and folders” even mean!?

    I think they should just follow the example of every other app store; list the permissions in an easily understandable list and let the user decide whether or not they are comfortable with it.

    • federino@programming.devOP
      link
      fedilink
      arrow-up
      50
      ·
      5 days ago

      I think they should just follow the example of every other app store; list the permissions in an easily understandable list and let the user decide whether or not they are comfortable with it.

      Totally agree. The “verified” label will give new users enough comfort, and the ones who wish to know more will read the permissions.

    • Onihikage@beehaw.org
      link
      fedilink
      English
      arrow-up
      17
      ·
      5 days ago

      When I look at Firefox in Discover, it only shows the list of permissions the flatpak will be given out of the box, with no warning of it being “potentially unsafe.” This certainly does seem like the better way to handle it.

      Also, the warning on the Flathub website is clickable - it expands into the full permissions list. Why it defaults to “no information except maybe dangerous” is beyond me.

  • Synnr@sopuli.xyz
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    edit-2
    4 days ago

    This should have been much more well thought out The wording, image, buttons, specific wording for each page.

    They really screwed the pooch.

    Another 4-6 months minimum before release. But quarterly numbers must be met.

  • brochard@lemmy.world
    link
    fedilink
    arrow-up
    44
    arrow-down
    4
    ·
    edit-2
    5 days ago

    In my opinion, those warnings are not used to help users but to shame developpers for not trully sandboxing and verifying their apps. Developpers know that having this warning will decrease the number of users downloading it. The goal in the long run is to improve app sandboxing and security.

    • MonkderDritte@feddit.de
      link
      fedilink
      arrow-up
      18
      arrow-down
      4
      ·
      edit-2
      5 days ago

      By not letting the user import/export addon settings, bookmarks?

      Btw, i hate the opinion that the dev must babysit his users. It makes software worse, not better, look at Firefox’s profille folder for an example. If you have to, make an intro to train them.

      • Sethayy@sh.itjust.works
        link
        fedilink
        arrow-up
        12
        ·
        5 days ago

        I’m not 100% confident but I thought you could use portals to access individual files outside of the sandbox

        • UserMeNever@feddit.nl
          link
          fedilink
          English
          arrow-up
          9
          arrow-down
          1
          ·
          5 days ago

          You could but where is fails is when you open one html file that then needs to loads the other files that are needed by the first.

          You can not allow chain loading like this, it would bypass the sandbox.

          One way of working around this would to allow the option of passing a whole folder and sub folders to the program.

          The other and much harder option would be a per program portal filter that can read the html file. then workout what files that html file needs and offer that list of files to the user.

          The lazy work around is allow read access to $HOME and deny access to some files and folders like .ssh

          • Sethayy@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            4 days ago

            Makes sense, but at least this would generally be out of a normal users usage case (multi-file documents), and so the power user could probably just open flatseal.

            For things like bookmarks it’d work fine, and by extension make the sandbox more secure

            • UserMeNever@feddit.nl
              link
              fedilink
              arrow-up
              4
              ·
              edit-2
              4 days ago

              Makes sense, but at least this would generally be out of a normal users usage case (multi-file documents), and so the power user could probably just open flatseal.

              I would not be so sure. Firefox has a “save web page as…” option which saves the html page and all other files needed into a sub folder.

              Without better handling of reading and writing files the sandbox will break that builtin function. another way of working around this. would be to change firefox to save the web page into one file. Maybe something a .html+zip file that firefox would know how to open. However that would lock other browsers out without manualy unziping it first.

              Getting sandboxing right with powerful programs is very hard and I feel the tooling is still not here yet.

  • tearsintherain
    link
    fedilink
    arrow-up
    12
    ·
    4 days ago

    Just reminding folks that just because it’s flatpak’d, doesn’t mean it’s sandboxed. But they probably should add some general click here for more info.

  • KindaABigDyl@programming.dev
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    4 days ago

    They should be worried. We don’t want them comfortable.

    So many negative things have entered our culture bc people don’t care about dangers. Nearly every app should have a warning

    • AeonFelis@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      ·
      4 days ago

      Nearly every app should have a warning

      No. If you put a warning on every app (except for the most trivial ones that don’t actually do anything useful) then the warnings mean nothing. The become something more than ass-covering legal(ish) BS.

        • AeonFelis@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          ·
          4 days ago

          What do you mean by “improving”? This alarming warning appears because Firefox requires permissions. Let us look at the permissions listed there:

          1. “User device access”. From the docs, I’d say the browser needs it for rendering?
          2. “Download folder read/write access”. This one is obvious - the files you download with your browser go there.
          3. “Can access some specific files”. This one, I’ll admit, is a bit cryptic - what files does it need to access? But this one is on Flatpak for making the permission so general.

          App permissions should not be about “this app cannot be trusted because it asks for scary scary permissions”. They should be about “take a look at the list of permissions the app requests and determine whether or not it make sense for such an app to need such permissions”.

          • jbk@discuss.tchncs.de
            link
            fedilink
            arrow-up
            2
            ·
            4 days ago

            To 1.: dri instead of all would handle hardware-accelerated rendering. Then some webcams or controllers won’t be accessible though. This one’s a bit complicated, since the necessary portals for e.g. generic USB device access aren’t yet there.

            To 2.: portals should be used instead of that. Using them doesn’t require these permissions.

            To 3.: click on details and see. This is Flathub making it easy to understand for users.

            Permissions should make clear whatever dangerous things an app can do. If not, why do all this effort of isolation? Firefox could delete everything in downloads, either by accident on Mozilla’s side, or a privilege escalation. If the app used portals instead, it couldn’t, at least without user interaction. Or a browser security vulnerability could open up any USB devices to webpages. It’s all about what could happen with granted permissions. And these can 100 % be fixed in at least some way.

    • alphafalcon@feddit.de
      link
      fedilink
      arrow-up
      6
      ·
      4 days ago

      They should not be worried, they should be educated.

      If you worry a new user enough they’ll go back to Windows or Apple because there’s less scary warnings there.

      We need to make the transition as pain free as possible. Learning about the joys of kernel compilation and SELinux can come later.
      The first step is "Hey, this is as usable as Windows, without stupid ads in the start menu.

    • Onihikage@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      If “nearly every app” that people already use suddenly has a big warning on it, people will quickly decide the warnings are meaningless and start ignoring them, like Prop 65 warnings. Congratulations, we’ve moved the needle backwards.

      You have to meet people where they’re at. I finally switched to Linux when MS introduced a feature I wanted no part in (Recall AI), but I would have given up within a day or two if the transition hadn’t been basically seamless. I was able to pick up right where I left off, using all the same apps I did on Windows except MusicBee RIP, but now I’m in a better position than before, on an open-source OS instead of closed-source. Now there’s a little less friction between me and better, freer software.

  • Schwim Dandy@lemm.ee
    link
    fedilink
    arrow-up
    41
    arrow-down
    4
    ·
    edit-2
    5 days ago

    Yes but surely you’re aware that even the most new-user-friendly distros and their tools aren’t necessarily aimed at new users.

    That warning is a perfect example of how Linux developers choose which hill to die on. They post a warning for an app that everyone knows can deliver bad times to two camps of users; those that know and don’t care and those that don’t understand the warning. If we could quantify the helpfulness of that warning, odds are that it saved 0 users from malicious action from that avenue of attack.

    Never expect Linux as a whole to be “helpful” to the new crowd.

    • orcrist@lemm.ee
      link
      fedilink
      arrow-up
      17
      ·
      5 days ago

      Isn’t this why we’d expect new users to use a built-in package manager? Because it avoids this exact problem?

      • Schwim Dandy@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        5 days ago

        Which is why I said “linux as a whole”. Many distros will try to undo the nerdery and neckbeardism that is built into the parent distros but as a whole, linux is going to always be less welcoming to a new user than someone that’s used to useless warnings and repeated password entries for elevated privileges. Being safer and being new-user-friendly rarely go hand in hand.

        • areyouevenreal@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          4 days ago

          Not all user friendly distros have a parent distro. Checkout Solus.

          There are sometimes things upstream causing problems. The Linux kernel itself isn’t one of them though as Linus is pretty adamant that Linux distributions should be easy to setup and use. KDE is also designed to be pretty friendly while being customizable still. The main issues seem to come from apps and distributions.

  • Dizzy Devil Ducky@lemm.ee
    link
    fedilink
    English
    arrow-up
    7
    ·
    4 days ago

    I’m a firm believer that regardless of operating system that a warning message saying that installing something could cause harm to your device definitely makes people think twice about installation if they’re not tech savvy (AKA know more than the bare minimum anymore). It’s definitely intentional that the large companies responsible scare you away from doing the things you want because they want you locked into doing things the way they want.

  • bloodfart@lemmy.ml
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    4 days ago

    Good.

    People need to view out of channel software with a hairy eyeball.

    Hell, I run Debian all over and it’s absurd that the main repositories don’t do checksums on downloaded packages!

      • bloodfart@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        3 days ago

        yeah apt just trusts the server if it properly identifies itself

        the barrier to entry for attacking that seems pretty high though

        if that freaks you out, switch to a rhel derivative, they got a shiny progress bar

    • refalo@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 days ago

      I think it’s absurd that most distros have no tools whatsoever for doing regular checksums of their own files. Windows certainly got that part right IMO.

      • bloodfart@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        3 days ago

        I’m double checking this myself now, but there are plenty of tools (debsum) they’re just not part of the default implementation as of last time I looked.

        • refalo@programming.dev
          link
          fedilink
          arrow-up
          2
          ·
          3 days ago

          Right, I’m talking about like periodic or real-time scanning and alerting, which DISM/SFC on windows does.

          • bloodfart@lemmy.ml
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            3 days ago

            i’m almost 100% that debsums on apt stuff and the --verify flag in rpm distros do what sfc did. (kinda, debsums and --verify check against a list of checksums from the repo, i’m pretty sure sfc cracks open an actual known version of the files and compares em with whats on disk)

            idk what dism does.

  • Mactan [he/him]@lemmy.ml
    link
    fedilink
    arrow-up
    19
    arrow-down
    3
    ·
    5 days ago

    those warnings on mint and flathub are so ridiculous, there’s no difference between those and official ones, somebody could just as easily put something nefarious in any flatpak

    • NaN@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      11
      ·
      4 days ago

      Clicking the potentially unsafe item lists the exact permissions.

      It can access hardware devices, like your webcam or game controller. Likely --device=all in flatpak speak but I haven’t looked.

    • sparkle@lemm.ee
      link
      fedilink
      Cymraeg
      arrow-up
      1
      ·
      4 days ago

      Maybe access to connected devices (e.g. your computer components or the phone you have plugged in to your computer)

  • chrash0@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    4 days ago

    pretty standard compared to OSs like Android and iOS. i think the mobile OSs, at least recently, have done better at this; they don’t ask for permission until they need it. want to import bookmarks? i need file system access for that. want to open your webcam? i need device access. doing it all upfront leads to all the problems mentioned in this thread: unclear as to why, easy to forget what access you’ve given, no ability to deny a subset of options, etc.

    • Drew@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      4 days ago

      does Linux have APIs for that? I know macOS does, not sure about either windows or Linux allowing capability security like that