Reading /etc

Facundo Batista facundo.batista at
Thu Mar 2 02:06:33 UTC 2017


When calling pip from inside a snap, it (while investigating the system it's in) tries to  os.listdir("/etc")  which is
denied to it:

	Mar  1 15:44:04 tanquita kernel: [16153.906524] audit: type=1400 audit(1488393844.939:99): apparmor="DENIED"
	operation="open" namespace="root//lxd-fadestest_<var-lib-lxd>" profile="snap.fades.fades" name="/etc/"
        pid=10606 comm="python" requested_mask="r" denied_mask="r" fsuid=165536 ouid=165536

Which interface should I add to the snap for it to have read only access to /etc?


.   Facundo
Canonical - Online Services

More information about the Snapcraft mailing list