BTW, while trying different interfaces for getting permission for /dev/rfkill, I accidentally set 'kernel-module-control' plug in my snap, which triggers pending review of the snap, and blocking following pushes. How could I withdraw or drop the pending snap and it's successors in the Store?
Best Regards, Tonny On Thu, Jan 19, 2017 at 10:13 PM, Tonny Tzeng <tonny.tz...@gmail.com> wrote: > Thanks for your quick responses, Simon & Jamie, it works by connect the > snap to 'network-control' interface. Many thanks! > > Best Regards, > Tonny > > On Thu, Jan 19, 2017 at 5:50 PM, Simon Fels <simon.f...@canonical.com> > wrote: > >> On 19.01.2017 10:41, Tonny Tzeng wrote: >> > Hi, >> > >> > I'd like to unblock the Bluetooth interface on Ubuntu Core, so I use >> > 'stage-packages' keyword to install 'rfkill' package to my snap. If I >> > install the snap in devmode, the rfkill command works as expected. But >> > if the snap is installed in confined mode, I always get 'Permission >> > denied', and the /var/log/syslog shows below message: >> > >> > Jan 19 09:17:42 localhost kernel: [177262.419927] audit: type=1400 >> > audit(1484817462.015:2031): apparmor="DENIED" operation="open" >> > profile="snap.iotivity-smarthome-demo.rfkill" name="/dev/rfkill" >> > pid=14430 comm="rfkill" requested_mask="r" denied_mask="r" fsuid=1001 >> ouid=0 >> > >> > Would anyone help me which interface should I declare with the plugs >> > keyword? I've tried hardware-observe and bluetooth-control interfaces >> > but no success. Any pointers would be appreciated, thanks in advance. >> >> The 'network-control' interface should do the job for you. See >> https://github.com/snapcore/snapd/blob/master/interfaces/bui >> ltin/network_control.go#L94 >> >> regards, >> Simon >> >> >> -- >> Snapcraft mailing list >> Snapcraft@lists.snapcraft.io >> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm >> an/listinfo/snapcraft >> > >
-- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft