The topic was originally discussed on IRC in context for the livepatch snap which currently write a status file under /var/snapd/canonical-livepatch/current. The file/status is only valid until reboot so it would make more sense to have into under /run (it’s easier/better than having custom code to clean out the file on boot).
One suggested solution on IRC/#snappy was to maybe let snap access /run/snap.$SNAP_NAME by default. Having a custom /run space allowed by default can be useful.
we already have XDG_RUNTIME_DIR set by default in every snap, pointing to /run/user/<uid>/snap.<appname> (uid being 0 indeed for all daemon snaps)… i’m not sure if that dir is created for daemon snaps by default though … you might need a mkdir -p $XDG_RUNTIME_DIR in some wrapper script to create it first.
This is completely unrelated to this topic (a snap being able to write to its own XDG_RUNTIME_DIR)
you are trying to write to a non snap owned dir in /run which is simply a security breach, this access should rather happen through a portal, please open a fresh topic (and probably a bug as well against the libreoffice snap)
(on a side-note, do not run test kernels in production, the ubuntu mainline builds are only for bi-secting and testing bugfixes, not for general usage and are lacking all security patches and the ubuntu config options (they use mainlines defconfig only which is missing many options))