Flatpak: harden default permissions#118
Conversation
This way the application only has static access to it's own folder, an empty folder in Downloads and read-only access to the user's music folder. Direct rendering access was removed as it is not needed for the app to run.
|
I am also not sure if IPC permission is needed. |
|
Thanks for digging in. A few thoughts:
I'd land the |
|
Since we still ship |
|
the thing is, it does not silently break. the GUI chooser will only show the allowed directories, so users will know that something is missing. But what do you think of changing the startup dialog to inform about this? Doesnt even need to be a flatpak specific one, could just be
I can confirm it works fine on Plasma 6 wayland without dri access, scrolls quick and fine. Others could be tested too. |
Summary
This way the application only has static access to it's own folder, an empty folder in Downloads and read-only access to the user's music folder.
Direct rendering access was removed as it is not needed for the app to run.
Users should be encouraged to change the permissions, maybe in the initial dialog. KDE has easy settings included, other desktops can use Flatseal.
Test plan
I have tested these permissions locally via a flatpak override file in
~/.local/share/flatpak/overridescloses #117