Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
IverCoder@lemm.ee to Linux@lemmy.mlEnglish · 2 年前

If only more Linux programs followed sandboxing best practices...

i.imgur.com

external-link
message-square
94
fedilink
572
external-link

If only more Linux programs followed sandboxing best practices...

i.imgur.com

IverCoder@lemm.ee to Linux@lemmy.mlEnglish · 2 年前
message-square
94
fedilink
  • Strit@lemmy.linuxuserspace.show
    link
    fedilink
    arrow-up
    147
    ·
    2 年前

    What if your app actually needs access to the internet?

    • tony@lemmy.hoyle.me.uk
      link
      fedilink
      arrow-up
      178
      ·
      2 年前

      Or actually do anything useful? No network, no filesystem… it’s a hello world app isn’t it…

      • cheer@lemmy.world
        link
        fedilink
        arrow-up
        123
        ·
        2 年前

        No filesystem access for a flatpak app just means it cant read host system files on its own, without user permission. You can still give it files or directories of files through the file explorer for the app to work with, just that it’s much safer since it can only otherwise view files in its sandbox.

        • kadu@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          2 年前

          deleted by creator

          • null@slrpnk.net
            link
            fedilink
            arrow-up
            27
            ·
            2 年前

            As if sandboxes are some brand new concept…

            Of course people want them for some use-cases. No one here is saying that every application in the world should be restricted that way, grandpa.

            • kautau@lemmy.world
              link
              fedilink
              arrow-up
              7
              ·
              2 年前

              Yeah things like selinux and apparmor have been around for a long time, sandboxing is just an evolution of that

            • grue@lemmy.world
              link
              fedilink
              English
              arrow-up
              5
              ·
              2 年前

              No one here is saying that every application in the world should be restricted that way, grandpa.

              Maybe not here in this thread, but aren’t there some folks who want flatpak/snap/appimage to basically replace traditional package managers?

              • null@slrpnk.net
                link
                fedilink
                arrow-up
                3
                ·
                2 年前

                Doesn’t make it a prevailing attitude worthy of whatever nonsense that other guy is spouting.

              • Chewy@discuss.tchncs.de
                link
                fedilink
                arrow-up
                2
                ·
                2 年前

                […] aren’t there some folks who want flatpak/snap/appimage to basically replace traditional package managers?

                There might be people who think that, but that isn’t realistic. Flatpak is a package manager for user facing apps, mostly gui apps.

                The core system apps will still be installed by a system package manager. I.e rpm-ostree on immutable Fedora or transactional-update/zypper on OpenSUSE MicroOS.

                Snap can do system apps and user facing apps and fully snap-based Ubuntu might come in the future.

                But this won’t force people to use them. Traditional package managers will keep existing for system apps and maintainers will proabably keep their gui packages in the repos.

            • kadu@lemmy.world
              link
              fedilink
              arrow-up
              2
              ·
              2 年前

              deleted by creator

              • null@slrpnk.net
                link
                fedilink
                arrow-up
                8
                ·
                2 年前

                Nobody was freaking out about sandboxing.

                • kadu@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  2 年前

                  deleted by creator

                  • null@slrpnk.net
                    link
                    fedilink
                    arrow-up
                    6
                    ·
                    2 年前

                    Says the person speaking for the whole community.

        • ian@lemmy.sdf.org
          link
          fedilink
          arrow-up
          4
          ·
          2 年前

          Which is fine for some apps, try that with an IDE.

          • FooBarrington@lemmy.world
            link
            fedilink
            arrow-up
            19
            ·
            2 年前

            Why does an IDE need unfettered access to my whole FS? Access to the project directory, and maybe the runtime directory, have to be enough.

          • Disregard3145@lemmy.world
            link
            fedilink
            arrow-up
            8
            ·
            2 年前

            To be fair, the title says more apps, not all apps…

      • snowfalldreamland@lemmy.ml
        link
        fedilink
        arrow-up
        39
        ·
        edit-2
        2 年前

        There are portals: https://docs.flatpak.org/en/latest/desktop-integration.html#portals . they allow secure access to many features. Also any flatpak app still has access to a private app-specific filesystem, just not to the host.

        Doesn’t work for all applications but for many sand boxing is possible without a loss of features.

      • IverCoder@lemm.eeOP
        link
        fedilink
        English
        arrow-up
        24
        ·
        2 年前

        There’s Obfuscate, an image redactor, and Metadata Cleaner which is self-descriptive. Both works properly without any filesystem access at all, because they use the file picker portal to ask the user for the files to be processed.

      • Pantherina@feddit.de
        link
        fedilink
        arrow-up
        23
        ·
        2 年前

        Portal.

    • Empricorn@feddit.nl
      link
      fedilink
      English
      arrow-up
      41
      ·
      2 年前

      Oh come on, what modern program actually needs to communicate or access the file system?

      • Theoriginalthon@lemmy.world
        link
        fedilink
        arrow-up
        57
        ·
        2 年前

        Exactly all programs should be web based cloud subscription only. We don’t want that filthy code on our rgb nvme drives

        • Kbobabob@lemmy.world
          link
          fedilink
          arrow-up
          14
          ·
          2 年前

          Lol, sorry no network access either.

        • taladar@sh.itjust.works
          link
          fedilink
          arrow-up
          8
          ·
          2 年前

          Wouldn’t want the gaping security hole open that is hypnotizing the user via RGB control.

          • grue@lemmy.world
            link
            fedilink
            English
            arrow-up
            4
            ·
            2 年前

            BRB, modulating my RGB to send data…

    • IverCoder@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      24
      ·
      2 年前

      The app can then declare the network permission and it will still be marked as safe.

    • QuazarOmega@lemy.lol
      link
      fedilink
      arrow-up
      24
      ·
      2 年前

      Download the internet along with it!

      • ivanafterall@kbin.social
        link
        fedilink
        arrow-up
        38
        ·
        2 年前

        I’m self-hosting the entire internet. I hope you guys are enjoying yourselves.

        • Norah (pup/it/she)@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          18
          ·
          2 年前

          https://github.com/iiab/iiab

          • ivanafterall@kbin.social
            link
            fedilink
            arrow-up
            6
            ·
            2 年前

            That’s super cool. I bookmarked it. Thanks!

          • Pantherina@feddit.de
            link
            fedilink
            arrow-up
            3
            ·
            2 年前

            Lol

        • QuazarOmega@lemy.lol
          link
          fedilink
          arrow-up
          6
          ·
          2 年前

          Thanks for having us on your server… when can I get out again though?

          • ivanafterall@kbin.social
            link
            fedilink
            arrow-up
            8
            ·
            2 年前

            I just unplugged you. Give it a minute or two and no more pain.

            • QuazarOmega@lemy.lol
              link
              fedilink
              arrow-up
              2
              ·
              2 年前

              Thank you, good… bye

            • Cwilliams@beehaw.org
              link
              fedilink
              arrow-up
              1
              ·
              2 年前

              Jane

      • 1984@lemmy.today
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        2 年前

        I remember in 1995-ish or something when I used the internet for the first time using the Netscape browser… And I was asking a friend if he had tried all the web sites yet. Just got a weird look back… :) I didn’t know what the internet was back then at first.

    • aida@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      2 年前

      deleted by creator

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

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

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 481 users / day
  • 3.13K users / week
  • 7.92K users / month
  • 16.7K users / 6 months
  • 550 local subscribers
  • 54.1K subscribers
  • 7.85K Posts
  • 208K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • d3Xt3r@lemmy.nz
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org