Which interface exposes user folder to root

Tonny Tzeng tonny.tzeng at gmail.com
Mon Feb 6 15:10:34 UTC 2017


Hi,

The 'home' interface provides non-hidden files access to the snap defined
commands, but what if specific commands need to be run with 'sudo', how can
I read files from my user folder? For example, from below syslog, I run my
snap with 'sudo' to enable the bluetooth, but once I run the snap with
root, it can't access $HOME:

audit: type=1400 audit(1486391164.744:1219): apparmor="DENIED"
operation="open" profile="snap.iotivity-smarthome-demo.node"
name="/home/tzeng/Workspace/node-examples/bluetooth/central-ess.js"
pid=6991 comm="node" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000

Any pointers would be very appreciated. Thanks.

Best Regards,
Tonny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170206/0e87ac41/attachment.html>


More information about the Snapcraft mailing list