What is the correct way to allow a snap package access a filesystem that is mounted via nfs?
I have seen many issues here that deal with the specific problem that the home folder is an nfs mount, but my problem seems to be more basic than that.
Since I am crafting the package myself, I have no problem giving it access to the “network” interface (one of the earlier reported problems seems to be that nfs access requires for this).
But it still does not work for me. I get this on the kernel log
[290079.508354] nfs: RPC call returned error 13
I get this in journalctl:
Sep 06 18:17:00 rotatoria audit: AVC apparmor="DENIED" operation="sendmsg" profile="/snap/snapd/12883/usr/lib/snapd/snap-confine" pid=29964 comm="snap-confine" laddr=192.168.178.35 lport=744 faddr=192.168.178.3 fport=2049 family="inet" sock_type="stream" protocol=6 requested_mask="send" denied_mask="send"
network is connected:
> snap connections atlatec-annotate ... network atlatec-annotate:network :network - ...
I have the feeling I miss something very basic.
Any help appreciated!
Btw, snap is installed with “–devmode”.
Also, I have bind-mounted the nfs below /media (this is a trick that I think worked in the past to make it believe that “removable-media” plug is sufficient.)