linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Spectacle8011, in If only more Linux programs followed sandboxing best practices...
@Spectacle8011@lemmy.comfysnug.space avatar

What really needs to happen:

Flatpak packages should ask for every permission they need, and the user needs to approve every one of them.

Right now, we have this weird in-between state where some flatpak packages ship with limited permissions (like Bottles). That’s because every permission the package asks for is immediately granted. The user doesn’t get a chance to refuse these requests. This current model serves to make life more difficult for non-malicious flatpak packagers while failing to protect users from malicious packages.

Also, GNOME needs a Flatpak permissions center like KDE. You shouldn’t need to install a third party program to manage permissions.

miss_brainfart,
@miss_brainfart@lemmy.ml avatar

Absolutely, permissions should be disabled by default, and only when the app needs to do something that requires a certain permission should it ask for it.

Maybe even do something like Android, where permissions automatically get revoked if you don’t use an app for a certain time. I love that feature.

oldfart, (edited )

It’s the first time I hear someone praise Android messing with user’s settings. Care to elaborate why you like it?

miss_brainfart,
@miss_brainfart@lemmy.ml avatar

There is very little reason any app should keep its permissions if you never actually use it, is there?

Especially when most people use apps that phone home every last piece of data they give them access to.

oldfart,

I don’t agree but I see your point, that would certainly be useful to some people. Thank you for explaining.

miss_brainfart,
@miss_brainfart@lemmy.ml avatar

I think it’s enabled by default, but you can also just disable it for specific apps.

But if you leave it enabled and permissions get revoked after a while, you’ll get a notification telling you about it. I think that’s fair.

There’s always going to be a debate on whether something like this should be opt-in or opt-out, but for the purpose of privacy and data security, it makes sense to be on by default, I reckon.

JoYo,
@JoYo@lemmy.ml avatar

it’s weird that android and ios already provide this but THE container standard doesn’t

anon5621,
@anon5621@lemmy.ml avatar
Spectacle8011, (edited )
@Spectacle8011@lemmy.comfysnug.space avatar

I don’t doubt it, but this is a good place to start.

This claim has interesting phrasing:

Adding X11 sandboxing via a nested X11 server, such as Xpra, would not be difficult, but Flatpak developers refuse to acknowledge this and continue to claim, “X11 is impossible to secure”.

If you look at the GNOME post, you’ll see they haven’t argued against including a nested X server at all:

Now that the basics are working it’s time to start looking at how to create a real sandbox. This is going to require a lot of changes to the Linux stack. For instance, we have to use Wayland instead of X11, because X11 is impossible to secure.

I’m not saying they haven’t refused to acknowledge this elsewhere, but it’s strange to point to this blog post which acknowledges that the sandbox is very much a work-in-progress and agrees with Madaidan that X11 is hard to secure.

Does Xpra provide better sandboxing than XWayland? If not, I think the Flatpak developer’s solution to this is: just use Wayland. And obviously, there’s plenty of room to improve with the permissions Flatpak does offer.

I did some searching on the Flatpak Github for issues and found that you can actually use Xpra with Flatpak, and the answer is “just use Wayland”:


This is also concerning:

As odd as this may sound, you should not enable (blind) unattended updates of Flatpak packages. If you or a Flatpak frontend (app store) simply executes flatpak update -y, Flatpaks will be automatically granted any new permissions declared upstream without notifying you. Using automatic update with GNOME Software is fine, as it does not automatically update Flatpaks with permission changes and notifies the user instead.

Source: privsec.dev/posts/linux/desktop-linux-hardening/#…

It’s great that GNOME Software notifies you when permissions change! I don’t use Flatpak enough to know, but I hope flatpak update notifies you too if you don’t use the -y option.

fossisfun,
@fossisfun@lemmy.ml avatar

I’ve tried to combat this a bit with a global Flatpak override that takes unnecessarily broad permissions away by default, like filesystem=home, but apps could easily circumvent it by requesting permissions for specific subdirectories. This cat-and-mouse game could be fixed by allowing a recursive override, such as nofilesystem=home/*.

But even then, there is still the issue with D-Bus access, which is even more difficult to control …

I think it is sad that Flatpak finally provides the tool to restrict desktop apps in the same way that mobile apps have been restricted for a decade, but the implementation chooses to be insecure by default and only provides limited options to make it secure by default.

TeryVeneno,

I think the main reason why the implementation is insecure by default is simply because when it started most applications did not use portals and many portals we have today did not exist. You had to poke holes in the sandbox to make anything work cause all applications expected to run unconstrained. In the future as more apps become flatpak aware this should stop being an issue.

s38b35M5, in Red Hat paywall?! How the Raleigh giant divided the open source community.
@s38b35M5@lemmy.world avatar

Thought the GPL theoretically forbade this. No? Licensing is not a strong suit of mine…

gnumdk,
@gnumdk@lemmy.ml avatar

The code is available as git, you just don’t have access to src.rpm.

EmbeddedEntropy,

Not what they did on the surface (limiting source to only customers). That’s allowed by the GPL. But they went beyond that which imo makes them non-compliant.

  1. RH will cancel your access/agreement if you share the GPL’d source with others. That’s directly forbidden by section 6 of the GPLv2. RH is free to cancel your agreement when they want, but not because you exercised your rights under the GPL.
  2. Once your agreement is canceled, you also lose access to the matching source for other GPL’d packages installed on your system. RH could offer other methods to be in compliance, but as far as I know, they have not.
yetAnotherUser, in Phew, no windows
possiblylinux127, (edited ) in Does anybody use Thunderbird on Android a.k.a. K-9

Yes, I use it and its worked well for years. It even supports Oauth

AnUnusualRelic, in If only more Linux programs followed sandboxing best practices...
@AnUnusualRelic@lemmy.world avatar

It’s not fully sandboxed if it can write to my screen! That filthy app, writing stuff all over the place!

BautAufWasEuchAufbaut,
@BautAufWasEuchAufbaut@lemmy.blahaj.zone avatar

That’s why we have Wayland. :)

onion,

Sandboxes have been converted into quarantine bomb shelters, for child safety

gentooer,

Haskell programmers when you tell them the main function isn’t pure

lemann, in If only more Linux programs followed sandboxing best practices...

This kind of thing could work for a few apps, say a color picker utility or a QR code generator etc.

Looking at the docs, it isn’t clear if apps can write to their own namespace (instead of writing to user folders directly), but if they can, we could expand the scope to games like supertuxkart, 2048 etc, which would then be able to save user milestones and progress in their own area - a bit like how Android apps do it

docs.flatpak.org/en/…/sandbox-permissions.html

It’s a great start IMO, although admittedly there is still work to do. Flatpak atm bridges the gap with allowing new apps, requiring new libs, to run on older stable/LTS distros

themoonisacheese,
@themoonisacheese@sh.itjust.works avatar

Yes, they can. There are app-specific folders in .local that flatpaks can read and write to specifically for this purpose, and also the file picking dialog may give access to the one specific file you picked.

Android IMO has great usability in exposing a database to apps, which means they aren’t required to ship their own database engine.

andruid,

Get a database, data que and service mesh and we can have an advanced k8s style platform.

Strit, in If only more Linux programs followed sandboxing best practices...
@Strit@lemmy.linuxuserspace.show avatar

What if your app actually needs access to the internet?

QuazarOmega,

Download the internet along with it!

ivanafterall,
@ivanafterall@kbin.social avatar

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

QuazarOmega,

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

ivanafterall,
@ivanafterall@kbin.social avatar

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

Cwilliams,

Jane

QuazarOmega,

Thank you, good… bye

princessnorah,
@princessnorah@lemmy.blahaj.zone avatar
Pantherina,

Lol

ivanafterall,
@ivanafterall@kbin.social avatar

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

1984, (edited )
@1984@lemmy.today avatar

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.

tony,

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

snowfalldreamland, (edited )

There are portals: docs.flatpak.org/en/…/desktop-integration.html#po… . 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.

cheerjoy,
@cheerjoy@lemmy.world avatar

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,
@kadu@lemmy.world avatar

deleted_by_author

  • Loading...
  • null,

    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.

    grue,

    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,

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

    Chewy7324,

    […] 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.

    kautau,

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

    ian,

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

    Disregard3145,

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

    FooBarrington,

    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.

    Pantherina,

    Portal.

    IverCoder,

    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.

    Empricorn,

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

    Theoriginalthon,

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

    Kbobabob,

    Lol, sorry no network access either.

    taladar,

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

    grue,

    BRB, modulating my RGB to send data…

    IverCoder,

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

    astraeus, in [Old 1997 story] The Greatest OS That (N)ever Was
    @astraeus@programming.dev avatar

    You’ve read your last complementary article this month. The second Library of Alexandria doesn’t burn down, it gets locked behind a paywall.

    CriticalMiss, in Is gnome going to become proprietary?
    fafok20662,

    Lmao accurate

    pan_troglodytes,

    rofl

    Pantherina,

    A doctor gets lots of money though

    madmaurice, (edited ) in Is gnome going to become proprietary?
    @madmaurice@discuss.tchncs.de avatar

    But closed source projects still get bug reports. The users just can’t fix it themselves. So where’s the advantage?

    Kata1yst,
    @Kata1yst@kbin.social avatar

    Accountability. The Dev is wishing others couldn't see the backlog and their decision process publicly.

    WallEx,

    So petty

    GustavoM, in Phew, no windows
    @GustavoM@lemmy.world avatar

    Filter windows…

    YES

    Gentoo1337, in Is gnome going to become proprietary?
    @Gentoo1337@sh.itjust.works avatar

    No. Why would they do that?.

    qwesx,
    @qwesx@kbin.social avatar

    So that people can't easily track how much time is spent on getting round window corners compared to how much time is spent not implementing thumbnails in a file chooser dialog?

    18 years, by the way.

    makingStuffForFun,
    @makingStuffForFun@lemmy.ml avatar

    I, just 10 minutes ago, was looking for an artwork of mine to upload here on lemmy. I gave up. It’s beyond insane to not have a thumb nail option in the browser for a file upload.

    KISSmyOS,

    This also sent me last week. What in the actual FUCK?

    stella, (edited )

    Gnome3 devs prioritize what makes their jobs easier over what makes user experiences better.

    I recommend switching to KDE if you want a DE with more features.

    djsaskdja, in Is gnome going to become proprietary?

    Only if they’re trying to completely kill their own project lol.

    fafok20662, in Is gnome going to become proprietary?

    “What’s the usecase for issue trackers?”

    ZeroEcks, in Is gnome going to become proprietary?

    Probably not

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20975616 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 36