Strit ( @Strit@lemmy.linuxuserspace.show ) 109•1 year agoWhat if your app actually needs access to the internet?
tony ( @tony@lemmy.hoyle.me.uk ) 129•1 year agoOr actually do anything useful? No network, no filesystem… it’s a hello world app isn’t it…
snowfalldreamland ( @snowfalldreamland@lemmy.ml ) 27•1 year agoThere 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.
Pantherina ( @Pantherina@feddit.de ) 17•1 year agoPortal.
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 ( @Empricorn@feddit.nl ) English28•1 year agoOh come on, what modern program actually needs to communicate or access the file system?
QuazarOmega ( @QuazarOmega@lemy.lol ) 15•1 year agoDownload the internet along with it!
ivanafterall ( @ivanafterall@kbin.social ) 25•1 year agoI’m self-hosting the entire internet. I hope you guys are enjoying yourselves.
Norah (pup/it/she) ( @princessnorah@lemmy.blahaj.zone ) English15•1 year ago ivanafterall ( @ivanafterall@kbin.social ) 6•1 year agoThat’s super cool. I bookmarked it. Thanks!
Pantherina ( @Pantherina@feddit.de ) 3•1 year agoLol
QuazarOmega ( @QuazarOmega@lemy.lol ) 4•1 year agoThanks for having us on your server… when can I get out again though?
ivanafterall ( @ivanafterall@kbin.social ) 6•1 year agoI just unplugged you. Give it a minute or two and no more pain.
QuazarOmega ( @QuazarOmega@lemy.lol ) 2•1 year agoThank you, good… bye
Cwilliams ( @Cwilliams@beehaw.org ) 1•1 year agoJane
1984 ( @1984@lemmy.today ) 6•1 year agoI 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.
The app can then declare the network permission and it will still be marked as safe.
darth_tiktaalik ( @darth_tiktaalik@lemmy.ml ) 94•1 year agoI like how the app name is blacked out so as not to dox the flathub app.
Radioactive Radio ( @radioactiveradio@lemm.ee ) 28•1 year agoSanboxed from prying eyes, it’s completely safe.
Blackmist ( @Blackmist@feddit.uk ) English27•1 year agoLikes like Hello World is ready to ship.
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.
areyouevenreal ( @areyouevenreal@lemm.ee ) 3•1 year agoDoes all of this require flatpack specific APIs?
Markaos ( @Markaos@lemmy.one ) 6•1 year agoYes in the sense that the APIs were made because of flatpak, but not in the sense that devs would need to keep two separate code paths for flatpak vs non-flatpak - portals work everywhere.
areyouevenreal ( @areyouevenreal@lemm.ee ) 2•1 year agoDoes it work with snapcraft?
Markaos ( @Markaos@lemmy.one ) 1•1 year ago areyouevenreal ( @areyouevenreal@lemm.ee ) 1•1 year agoThere is no need to downvote someone over a question.
Markaos ( @Markaos@lemmy.one ) 1•1 year agoI haven’t done that, lemmy.one doesn’t even have downvotes
𝒍𝒆𝒎𝒂𝒏𝒏 ( @lemann@lemmy.one ) 26•1 year agoThis 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
soulfirethewolf ( @soulfirethewolf@lemdro.id ) English18•1 year agoIt’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.
JustARegularNerd ( @JustARegularNerd@aussie.zone ) English4•1 year agoBut my 1998 Windows CE device that’s made obsolete by those meddling modern security practices!
bizdelnick ( @bizdelnick@lemmy.ml ) 13•1 year agoWhat is this? A solitaire game?
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.
MonkderZweite ( @MonkderZweite@feddit.ch ) 5•1 year agoDoes it have to be sandboxed?
An app should not be able to access stuff the user did not consent to letting access.
stella ( @stella@lemm.ee ) 2•1 year agoIsn’t that what file system permissions are for?
The file picker API is there to allow apps to access and save files with the user’s consent, while bot having any filesystem access. So a properly sandboxed app would be able to open, edit, and save files wherever the user wants, while not having access to any other irrelevant files, such as your .bashrc or memes folder.
corsicanguppy ( @corsicanguppy@lemmy.ca ) 3•1 year agoStill not worth dependency hell.
OsrsNeedsF2P ( @OsrsNeedsF2P@lemmy.ml ) 2•1 year agoRelevance?
Possibly linux ( @possiblylinux127@lemmy.zip ) English2•1 year agoCool