Skip to content

Permissions settings are ignored by apps and not persisted #171

@arkraft

Description

@arkraft

What Happened?

It seems the permissions tab does not display the correct permissions for the apps or the apps do not follow the given permissions.
I removed the permission for "GNOME Web" to access network, just to try it out. After several restarts of the app i can still access the internet though. I expected "GNOME Web" to throw an error of any kind.
grafik

Same with Screenshot, where i removed the permission to access system folders and was still able to save a screenshot inside the system folder.
grafik

Or Evince was able to read all directories even though i removed access to them.
Maybe i just don't understand the permissions model of flatpak but this was like unexpected behavior for me.

Restarting the app or the system does not help.
After restarting switchboard and looking at the permissions again, they are not persisted and everything is back to the defaults. Adding permissions is persisted on the other hand, only the removed permissions are added again

Steps to Reproduce

  1. Go to the permissions tab
  2. Select "GNOME Web"
  3. Remove the permission to access networks
  4. Start GNOME Web
  5. Access any internet site
  6. Close Switchboard
  7. Open Switchboard again
  8. Go to the permissions tab
  9. Select GNOME Web

Expected Behavior

It should not be able to access the internet. GNOME Web was expected to fail, just like if you are not connected to the internet.
After restarting switchboard i expected my settings to be persisted. All removed permissions are set to the default values. Only additional permissions are persisted

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions