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

document-portal: add snap support to app_has_file_access() #550

Merged
merged 1 commit into from Dec 28, 2020

Conversation

jhenstridge
Copy link
Contributor

This calls out to the snap routine file-access helper command, which produces output compatible with flatpak info --file-access.

While this command was only introduced in snapd 2.45, the failure mode with old versions is consistent with the previous behaviour: assume the snap does not have file access.

At present, the snap routine-file-access reports read-write or read-only access for the following:

  • The snap's own data under /var/snap and ~/snap.
  • If the snap plugs home, paths under the user's home directory excluding the ~/snap directory and top level hidden files.
  • If the snap plugs removable-media, paths from removable media directories (/mnt, /media, and /run/media).

These paths should all have the same meaning inside and outside the sandbox.

This calls out to the "snap routine file-access" helper command, which
produces output compatible with "flatpak info --file-access".

While this command was only introduced in snapd 2.45, the failure mode
with old versions is consistent with the previous behaviour: assume the
snap does not have file access.
@alexlarsson alexlarsson merged commit 48a981e into flatpak:master Dec 28, 2020
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.

None yet

2 participants