Skip to content

Commit

Permalink
sandbox-permissions: Document that fs is tmpfs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed May 18, 2024
1 parent d4de7be commit 4fa399a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/sandbox-permissions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ Other filesystem access guidelines include:

For example, if an application hardcodes the directory ``~/.foo``,
without any ``home`` access and no ``--persist`` the directory will be
lost from the sandbox once exited. A ``--persist=.foo``
bind mounts ``~/.foo`` `inside the sandbox` to
``~/.var/app/$FLATPAK_ID/.foo`` on host thus allowing an app to
persistently store data in ``~/.var/app/$FLATPAK_ID/.foo`` which
would otherwise be lost.
lost from the sandbox once exited due to the filesystem being set up
as tmpfs by flatpak unless overriden. A ``--persist=.foo`` bind mounts
``~/.foo`` `inside the sandbox` to ``~/.var/app/$FLATPAK_ID/.foo`` on
host thus allowing an app to persistently store data in
``~/.var/app/$FLATPAK_ID/.foo`` which would otherwise be lost.

A ``--persist=.`` will `persist` all directories.

Expand Down

0 comments on commit 4fa399a

Please sign in to comment.