I'm building a snap package and my application requires a configuration file that normally is placed under /etc and has to be editable by essentially root user only.
I've figured out that I can easily refer to configuration files within a snap's confinement by using, for example, $SNAP/myconfig. However, that makes myconfig read-only.
So, how do I place a configuration file into $SNAP_DATA or its equivalent? I guess such file has to be exposed to a system (in snappy parlance) and writeable by system users (root).