523
submitted 8 months ago by [email protected] to c/[email protected]
top 50 comments
sorted by: hot top controversial new old
[-] [email protected] 251 points 8 months ago

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

[-] [email protected] 47 points 8 months ago

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

[-] [email protected] 41 points 8 months ago

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

[-] [email protected] 17 points 8 months ago

That's why we have Wayland. :)

[-] [email protected] 139 points 8 months ago

What if your app actually needs access to the internet?

[-] [email protected] 160 points 8 months ago

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

[-] [email protected] 121 points 8 months ago

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.

load more comments (15 replies)
[-] [email protected] 38 points 8 months ago* (last edited 8 months ago)

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.

[-] [email protected] 23 points 8 months ago

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.

[-] [email protected] 22 points 8 months ago
[-] [email protected] 34 points 8 months ago

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

[-] [email protected] 49 points 8 months ago

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

[-] [email protected] 12 points 8 months ago

Lol, sorry no network access either.

[-] taladar 8 points 8 months ago

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

load more comments (1 replies)
[-] [email protected] 23 points 8 months ago

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

[-] [email protected] 22 points 8 months ago

Download the internet along with it!

[-] [email protected] 35 points 8 months ago

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

[-] [email protected] 7 points 8 months ago* (last edited 8 months ago)

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.

load more comments (1 replies)
[-] [email protected] 124 points 8 months ago

I like how the app name is blacked out so as not to dox the flathub app.

[-] [email protected] 40 points 8 months ago

Wouldn't want bad actors to find privacy respecting software.

[-] [email protected] 34 points 8 months ago

Sanboxed from prying eyes, it's completely safe.

[-] Gentoo1337 47 points 8 months ago
[-] [email protected] 48 points 8 months ago

It's actually Dippi but I don't want to look like I'm advertising it here

[-] [email protected] 10 points 8 months ago

!peepee !< is safe

[-] [email protected] 33 points 8 months ago

Likes like Hello World is ready to ship.

[-] [email protected] 25 points 8 months ago* (last edited 8 months ago)

With a bit of modifying code to use the color picker and maybe rearranging the workflow to adapt to the new system, apps as advanced as DaVinci Resolve and LibreOffice can have permissions as restrictive as this (the network permission would of course may be needed but it would still be marked as Safe by Flathub).

You can use the file picker API to open the files or folders your app would need to access while having no filesystem permissions at all. You can access the camera, microphone, and GPS without the user devices portal, by simply using the respective portals where the user has the power to allow or deny access to such devices as they wish.

You can record the screen, take a screenshot, and pick a color in the screen by simply calling the proper portals, with the bonus that the user will be able to select if they want the entire screen, a specific window, or a specific area to be recorded/captured and whether the cursor should be shown or not.

Heck, even TeamViewer can be as this restricted without losing any functionality if they use the Screen Cast portal which allows apps to mirror input from a remote device! They would of course need the network permission, but that's still safe.

load more comments (7 replies)
[-] [email protected] 31 points 8 months ago

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

https://docs.flatpak.org/en/latest/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 19 points 8 months ago

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.

load more comments (1 replies)
[-] [email protected] 28 points 8 months ago

this sandbox craze is slowly pushing things back to the point where we used cartridges and booted off from them straight to the program. who needs an OS at this point? it's bundled with the app anyway 😆

/s, somewhat

[-] [email protected] 20 points 8 months ago

It's nice to see good app security being praised. Sometimes it feels like some people on lemmy (and the fediverse) throw security to the wind.

Like one time I had heard someone over on Mastodon say that they thought that HTTPS was too overused and shouldn't have been everywhere because it makes older apps unable to access sites and also made adblocking just ever so slightly harder.

Which yeah, I love adblockers, but I'm definitely not comfortable with all traffic having to go unencrypted just for it.

load more comments (1 replies)
[-] Drito 20 points 8 months ago

This is useful for proprietary software.

[-] [email protected] 32 points 8 months ago* (last edited 8 months ago)

As well as FOSS too. Sandboxing is a security standard that should be followed by every software how open their code may be.

[-] [email protected] 11 points 8 months ago

What is this? A solitaire game?

[-] [email protected] 9 points 8 months ago* (last edited 8 months ago)

This could well be an advanced video editor or an office suite if they take full advantage of the portals API without losing any functionality. Well, they can have the network permission, it would still be safe anyway.

load more comments (2 replies)
load more comments
view more: next ›
this post was submitted on 06 Nov 2023
523 points (94.5% liked)

Linux

45773 readers
811 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS