When I test my snap on another machine I get permission denied errors. I tried booting it up in a shell, sudo snap run --shell myapp
In the shell, I can ls /home/, but I get permission denied trying to ls /home/user/
In my snapcraft I have the following plugs in my app: command section: plugs: [home, unity7, x11, desktop, desktop-legacy]
Does anyone know why I am getting these permission errors and how to fix it?
Thanks.
Thank you for the suggestion. When doing snap interfaces | grep home it shows myapp as one of the entries.
Edit: You were right, I think. I didn’t fully understand strict confinement. I guess I need classic confinement. Thank you.
For anyone looking back on this, here are the docs for confinement:
Snapd does auto-connect the home interface, so the files under your home directory (with an exception of the hidden files right under it, and the home directory isn’t a symbolic link to other location) should always be accessible.