Snap app access to /data directory

condition

  • confinement : strict
  • storage disk mounted to /data

How to snap app access to /data in sandbox? Is it possible?

I searched this forum and found some similar topics.

https://forum.snapcraft.io/t/how-can-i-use-snap-when-i-dont-use-home-user/3352

https://forum.snapcraft.io/t/create-an-interface-to-allow-snap-app-access-var-www-directory/5238

https://forum.snapcraft.io/t/the-removable-media-interface/7910

I think these options are available.

  1. mount -obind /data /home/data
  2. use removable-media interface
  3. classic confinement

But, if I must use direct /data not mounted directory(/home/data or /mnt/data), Is there any possible way?

thanks.