• 0 Posts
  • 32 Comments
Joined 1 year ago
cake
Cake day: October 23rd, 2024

help-circle


  • I don’t know where this myth about Flatpaks always being gigabytes in size originates from or why it’s so persistent, but it’s wrong.

    Alright, here is ~25 GUI apps flatpak vs appimage:

    • 6 GiB flatpak.
    • 2.7 GIB appimage.

    This is if you have a filesystem with transparent compression, If you do not have such filesystem (ext4), then it is more like 15 GIB vs 2.9 GiB lol.

    This comparison is missing the flatpak equivalents of kdeconnect, deadbeef and a few CLI tools that I have on right btw, flatpak-dedup-checker for some reason doesn’t check the /var/lib/flatpak/repo directory which is usually another +1GiB in best case scenario.



  • i was talking about the risk of a Flatpak which has access to user home and therefore could for example access $HOME/.firefox and steal session cookies.

    Okay that makes sense.

    Also I based my assessment of use FUSE2 for normal AppImages on the security hardening used by Secureblue, mentioned here under the section “Filling known security holes”

    Remove the unmaintained and suid-root fuse2 by default.

    kek they got it wrong. Also:

    Mitigate LD_PRELOAD attacks via ujust toggle-bash-environment-lockdown.

    Interesting, I wonder if they prevent executing the ld-linux.so as well.

    There is two ways to preload libraries without having to modify the binary, the first is using LD_PRELOAD, the second is less well known but you can run binaries by calling the dynamic linker first (internally this is actually how all dynamic binaries you execute work btw) and then use the --preload flag to load a library.

    That is instead of:

    LD_PRELOAD=./kek.so /path/to/bin
    

    you do:

    /lib64/ld-linux-x86-64.so.2 --preload ./kek.so /path/to/bin
    

    I’m going to take a wild guess and assume the second is still possible in secureblue 👀







  • Samueru_sama@programming.devtolinuxmemes@lemmy.worldSnap bad
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    8 months ago

    Alright be aware that AM not only can manage appimages, it also manages other portable formats and has access to over a 1000 static binaries from soarpkgs repo.

    And it can do all of this at user level when used as appman, that is elevated rights are never needed to install anything and I can just take my HOME and drop it on any distro and be ready to go.

    It made me get rid of flatpak all together and become an appimage contributor lol



  • Samueru_sama@programming.devtolinuxmemes@lemmy.worldSnap bad
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    8 months ago

    but I would have expected Fedora to come with something like this preinstalled tbh

    Fedora is just plagued with poor decisions, and that’s expected, it is the testing ground of redhat and not something that regular users should be using, they even go as far as repacking existing flatpaks just because and then break them.

    A while back they pulled this nonsense that not even upstream approves of: https://gitlab.com/gnuwget/wget2/-/issues/661

    iirc fedora also enabled wayland by default on gnome in 2016 when pretty much nothing worked.

    Rhino linux lets you install AM thru its GUI installer btw.





  • Samueru_sama@programming.devtolinuxmemes@lemmy.worldSnap bad
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    8 months ago

    it allows the same packages to run on any Linux kernel (any Linux distro). That is pretty useful.

    flatpak itself depends on namespaces, so saying that it works on any kernel is quite a stretch.

    Can flatpak do this? This is a GIMP3 appimage running on ubuntu 10.04 without any container:

    The kernel is so old that even the appimage runtime itself complains of missing functions and has to fallback to a workaround.

    UPDATE: flatpak can’t work because bubblewrap itself can’t:

    PR_SET_NO_NEW_PRIVS is only available since kernel 3.5


  • Samueru_sama@programming.devtolinuxmemes@lemmy.worldSnap bad
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 months ago

    The issue is arch and not us. They are building fastfetch without SQLITE3 and then we get people asking why the package count of fastfetch doesn’t display soar pkgs… All we can do is just tell people to not use fastfetch from the arch repos.

    All archlinux has to do is change this line from OFF to ON



  • Samueru_sama@programming.devtolinuxmemes@lemmy.worldSnap bad
    link
    fedilink
    English
    arrow-up
    5
    ·
    8 months ago

    omg I cannot fucking believe that while I was typing this I just saw another distro package nonsense:

    There is this very good tool called soar which I use for static binaries. (It also has support for appimages but to be honest it is not as good as AM rn).

    Well we just got a complain that fastfetch is not displaying the package count of soar, which fastfetch is able to do.

    Turns out this is because the archlinux package is built without SQLITE3 which is needed for that feature to work 😫

    And what’s worse is that account registrations are disabled in the archlinux gitlab, so I have to jump thru some hoops to get a basic bug report filed…