Closed Mikaela closed 6 years ago
I installed Gradio from Flathub thinking that it might be more suitable for my needs than VLC (which it is) and was surprised by sandboxing allowing file access to host.
file access: host, xdg-run/dconf, ~/.config/dconf:ro
Gradio had access only to files and directories that it actually needs.
https://github.com/haecker-felix/Gradio/blob/9ab2f33a3c3fbc0e7682d733759c8272f08d754f/de.haeckerfelix.gradio.json#L17 allows very wide access to the filesystem
--filesystem=host - access normal files on the host, not including host os or system internals described below As a general rule, Filesystem access should be limited as much as possible.
--filesystem=host - access normal files on the host, not including host os or system internals described below
As a general rule, Filesystem access should be limited as much as possible.
From Flatpak sandbox permissions
flatpak install flathub de.haeckerfelix.gradio
As I understood that Gradio is just for searching and listening from online radios, I propose removing --filesystem=host line (https://github.com/haecker-felix/Gradio/blob/9ab2f33a3c3fbc0e7682d733759c8272f08d754f/de.haeckerfelix.gradio.json#L17).
--filesystem=host
duplicate of https://github.com/flathub/de.haeckerfelix.gradio/issues/8
Thanks, I didn't think of reading flathub as the file was here :)
That is also a funny timing that I would happen to encounter it not that many hours afterwards.
I installed Gradio from Flathub thinking that it might be more suitable for my needs than VLC (which it is) and was surprised by sandboxing allowing file access to host.
file access: host, xdg-run/dconf, ~/.config/dconf:ro
Expected Behavior
Gradio had access only to files and directories that it actually needs.
Current Behavior
https://github.com/haecker-felix/Gradio/blob/9ab2f33a3c3fbc0e7682d733759c8272f08d754f/de.haeckerfelix.gradio.json#L17 allows very wide access to the filesystem
From Flatpak sandbox permissions
Steps to Reproduce
flatpak install flathub de.haeckerfelix.gradio
Detailed Description
As I understood that Gradio is just for searching and listening from online radios, I propose removing
--filesystem=host
line (https://github.com/haecker-felix/Gradio/blob/9ab2f33a3c3fbc0e7682d733759c8272f08d754f/de.haeckerfelix.gradio.json#L17).