diff --git a/doc/flatpak-metadata.xml b/doc/flatpak-metadata.xml index 79c8594e..ea282ad8 100644 --- a/doc/flatpak-metadata.xml +++ b/doc/flatpak-metadata.xml @@ -360,6 +360,25 @@ permissions for applications that need the entire root filesystem of the host. + + Please note that following symlinks under + /run/host/root naively + will result in a wrong path. For example, + using realpath() is wrong. + Instead, applications will have to implement + some way of following symlinks in a way that + behaves as if it were chroot'd into + /run/host/root. + + + There are a few ways to do this. Modern + kernels support the openat2() + call with RESOLVE_IN_ROOT. + For a more portable solution with support for + older kernels, see the implementation from + the steam-runtime-tools + as an example. + Available since 1.17.