Announcement

Collapse
No announcement yet.

Flatpak 1.12 Released - Better Sub-Sandbox Handling To Benefit Steam

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    Originally posted by billyswong View Post

    Flatpak is a sandbox package format. Its packages are supposed to be run inside sandbox. Sandbox can't stand by itself. When a package format can stand by itself, it touches bare metal, which is by definition not in sandbox.
    More specifically, Flatpak combines the OSTree backend used for things like Fedora Silverblue with mandatory sandboxing. (You can poke some holes in it huge enough to make it utterly useless, but you can't actually turn the sandbox off entirely. That's by design because they don't want to become the de facto distribution solution for the lower layers of the stack, similar to how -webkit-prefixed CSS got de facto stabilized before browsers switched to only enabling experimental CSS on development builds.)

    Comment


    • #22
      Originally posted by perpetually high

      Well first of all, jerkoff, my cries was sarcastic, wasn't crying as in whining.

      If I wanted to, I can do whatever I want. I choose not to. (Seinfeld voice: I choose not to run.)

      edit: I'm gonna run all you cowards and fake bullies out of the forums. Watch. Keep posting with your bullshit.
      You show them Kramer!

      Comment


      • #23
        Originally posted by cl333r View Post

        You show them Kramer!
        🤣🤣 Gold, Jerry

        Comment


        • #24
          Originally posted by billyswong View Post
          Flatpak is a sandbox package format. Its packages are supposed to be run inside sandbox. Sandbox can't stand by itself. When a package format can stand by itself, it touches bare metal, which is by definition not in sandbox.
          and
          Originally posted by ssokolow View Post
          More specifically, Flatpak combines the OSTree backend used for things like Fedora Silverblue with mandatory sandboxing. (You can poke some holes in it huge enough to make it utterly useless, but you can't actually turn the sandbox off entirely. That's by design because they don't want to become the de facto distribution solution for the lower layers of the stack, similar to how -webkit-prefixed CSS got de facto stabilized before browsers switched to only enabling experimental CSS on development builds.)
          These contain presumes that lead to mistakes.
          Both of you did not ask the right questions:
          1) Is flatpak a package format? the answer is really no.
          2) Is flatpak a sandbox? the answer is again really no.
          3) is flatpak like Fedora SilverBlue? the answer is really no.

          This page provides an overview of how Flatpak works internally. While it isn’t necessary to be familiar with this in order to use Flatpak, some people might find it interesting. Knowing about Flatp...

          Under the hood the packaging format of flatpak is ostree. Flatpak is more a guide and tooling to use ostree with sandboxing.
          billyswong you are wrong the Sandbox flatpak uses is bubblewrap. Yes bubblewrap absolutely can stand by itself.

          From SilverBlue front page:
          Better support for Flatpak and rpm-ostree in GNOME Software
          This is important both Flatpak and rpm-ostree are both ways of using ostree as a package storage solution.

          The reality here is flatpak has a lot more in common with something like APT(Advanced Packaging Tool) than a package format. As flatpak is really a package management tool with interrogated support to setup sandbox. This makes flatpak package format be ostree and flatpak choice of sandbox be bubblewrap.

          Can you run a flatpak installed application without a sandbox of some form the answer is no not quite for the reason people would expect.
          https://docs.flatpak.org/en/latest/c...esystem-layout this is the catch. Flatpak application is allowed to expect a root directory layout.


          Interest enough using ostree as a full OS install you still have to run some from of sandbox to provide the nicely visualised chroot.

          Flatpak really provide a interface to rapidly setup a ostree for applications with their own private chroot directories with sandboxing wrapped around it. Being somewhat sandboxed is a property of ostree that Flatpak gets. Yes rpm-ostree is also somewhat sandboxed.

          Comment


          • #25
            Originally posted by ssokolow View Post
            You can poke some holes in it...
            The easiest way I know is
            Code:
            filesystem=home

            Comment


            • #26
              Originally posted by guara View Post

              The easiest way I know is
              Code:
              filesystem=home
              I was actually thinking of filesystem=host, but that's certainly a close second for how much "neuter the sandbox" bang you get for your buck.

              Speaking of "Flathub prioritizes getting things to Just Work™ over sandboxing, but Flatpak is dead-set against making CLI integration Just Work™", I just added --file-forwarding support to my command-line launcher wrapper generator proof of concept.

              That means no more need to whitelist folders for applications that were using the file-chooser portal but still needed the exception for use on the command line. (Assuming, of course, that the file has no external dependencies. I use it for Firefox and Ungoogled Chromium, but I tend to make HTML-only saves of retro-programming reference material for quick offline access or use cmark as an offline analogue to grip for rendering Markdown... but that's no different than how it is with the file chooser portal.)

              (You run it whenever you install something new and it creates a bunch of wrappers in ~/.local/bin/flatpak (add that to your PATH) named after the internal commands (firefox, not org.mozilla.firefox).)

              It's not perfect (see the list of caveats in the file), but I daily-drive it pretty happily and none of the problems are unfixable... they just require rewriting in something other than shell script and implementing a more involved solution. (eg. The developer of Flatseal chose to actually name the binary com.github.tchx84.Flatseal so you get that rather than flatseal. Thankfully, I've got Ctrl+Up bound to filtered command history so I can just type com.<Ctrl+Up> instead of using Tab completion.)

              In fact, I think the only wart I've noticed with this new version of the wrapper generator is the lack of manpages for things like MPV.
              Last edited by ssokolow; 09 October 2021, 03:55 AM.

              Comment


              • #27
                Funny how all the informative posts got 1 or 2 likes. but all of dekernel bug77 got about 20 likes.

                People sure don't like that perpetually high guy, who literally is on here only to help and spread knowledge. But the fake trolls/accounts are not concerned with that. Only to shift the narrative (ermehrgerd, Ubuntu LTS bad)

                Not fooling anyone. We can all make a fake account Sonadow and the rest of the Phoronix trolls. Michael should do a better job of running this forum, but I know he's busy. So I'll do it for him. Free of charge.

                edit: Might as well make this post useful. Thank you again, ssokolow. Worked a damn charm and took two seconds.

                Code:
                $ uname -a
                Linux ubuntu [B]5.15[/B]-rc4-051500rc4+[B]customidle[/B]-generic #051500rc4+202107311230 SMP [B]PREEMPT[/B] Thu Oct 7 05:00:41 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux
                
                $ lsb_release -a
                No LSB modules are available.
                Distributor ID: [B]Ubuntu[/B]
                Description: Ubuntu [B]20.04.3 LTS[/B]
                Release: 20.04
                Codename: focal
                
                $ flatpak --version
                [B]Flatpak 1.12.1[/B]
                Haters on suicide watch. Perpetually High wins again. Oh no.
                Last edited by perpetually high; 09 October 2021, 06:40 AM.

                Comment


                • #28
                  Originally posted by perpetually high View Post
                  Haters on suicide watch. Perpetually High wins again. Oh no.
                  Maybe people are just annoyed by the dislikable attitude and not about the factual stuff you write?

                  Comment


                  • #29
                    Originally posted by reba View Post

                    Maybe people are just annoyed by the dislikable attitude and not about the factual stuff you write?
                    Maybe I don't care what you and *maybe* 10 other people that I've never met, or have any idea who they are or if they're even real that lack *any* sense humor or joy in their lives? Ever think about that?

                    What's also funny, the most vocal (you guys) provide nothing to the forums. Just a bunch of nonsense.

                    Guy's account was made post-COVID. Tells you everything you need to know.

                    Comment


                    • #30
                      This discussion made my day: The dude called "perpetually high" tries to update Flatpak on Ubuntu. Priceless.

                      Comment

                      Working...
                      X