Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove access to whole filesystem #92

Closed
wants to merge 1 commit into from
Closed

Conversation

rugk
Copy link

@rugk rugk commented Jul 7, 2022

Minimizing permissions is always a good idea.
Why do you now need access to all files? Is not the idea that exploits or so in a PDF viewer could be mitigated/not have such a bad effect if it does not have access to all files?

The filesystem=host permission got copied from upstream/Flathub https://github.com/flathub/org.gnome.Evince/blob/master/org.gnome.Evince.json#L13
It seems that revoking that permission doesn't cause any problem with the app's main functionality.

https://bugzilla.redhat.com/show_bug.cgi?id=2098179

Ref upstream also did not explain why/how this permission would be needed: https://gitlab.gnome.org/GNOME/evince/-/issues/1810

Fixes #76

> The filesystem=host permission got copied from upstream/Flathub https://github.com/flathub/org.gnome.Evince/blob/master/org.gnome.Evince.json#L13
> It seems that revoking that permission doesn't cause any problem with the app's main functionality.

https://bugzilla.redhat.com/show_bug.cgi?id=2098179

Ref upstream also did not explain why/how this permission would be needed: https://gitlab.gnome.org/GNOME/evince/-/issues/1810
@flathubbot
Copy link
Contributor

Started test build 99575

@rugk
Copy link
Author

rugk commented Jul 7, 2022

Ah just saw #76, anyway I see no big open issue there preventing this.

@flathubbot
Copy link
Contributor

Build 99575 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/97304/org.gnome.Evince.flatpakref

@Mikenux
Copy link
Contributor

Mikenux commented Jul 8, 2022

Ah just saw #76, anyway I see no big open issue there preventing this.

If you read it, you will find this comment: #76 (comment)

Also, there are other PRs for this: #61 and #88.

There is also another issue: see flatpak/xdg-desktop-portal#807 and https://gitlab.gnome.org/GNOME/libdazzle/-/issues/65

@gpoo
Copy link
Collaborator

gpoo commented Jan 3, 2023

Thanks for the patch. I merged #88 instead.

@gpoo gpoo closed this Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sandbox this harder (instead of filesystem=host permissions by default)?
4 participants