<div dir="ltr">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?<div><br></div><div>Best Regards,</div><div>Tonny</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 10:13 PM, Tonny Tzeng <span dir="ltr"><<a href="mailto:tonny.tzeng@gmail.com" target="_blank">tonny.tzeng@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for your quick responses, Simon & Jamie, it works by connect the snap to 'network-control' interface. Many thanks!<div><br></div><div>Best Regards,</div><div>Tonny</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 5:50 PM, Simon Fels <span dir="ltr"><<a href="mailto:simon.fels@canonical.com" target="_blank">simon.fels@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 19.01.2017 10:41, Tonny Tzeng wrote:<br>
> Hi,<br>
><br>
> I'd like to unblock the Bluetooth interface on Ubuntu Core, so I use<br>
> 'stage-packages' keyword to install 'rfkill' package to my snap. If I<br>
> install the snap in devmode, the rfkill command works as expected. But<br>
> if the snap is installed in confined mode, I always get 'Permission<br>
> denied', and the /var/log/syslog shows below message:<br>
><br>
> Jan 19 09:17:42 localhost kernel: [177262.419927] audit: type=1400<br>
> audit(1484817462.015:2031): apparmor="DENIED" operation="open"<br>
> profile="snap.iotivity-smartho<wbr>me-demo.rfkill" name="/dev/rfkill"<br>
> pid=14430 comm="rfkill" requested_mask="r" denied_mask="r" fsuid=1001 ouid=0<br>
><br>
> Would anyone help me which interface should I declare with the plugs<br>
> keyword? I've tried hardware-observe and bluetooth-control interfaces<br>
> but no success. Any pointers would be appreciated, thanks in advance.<br>
<br>
</span>The 'network-control' interface should do the job for you. See<br>
<a href="https://github.com/snapcore/snapd/blob/master/interfaces/builtin/network_control.go#L94" rel="noreferrer" target="_blank">https://github.com/snapcore/sn<wbr>apd/blob/master/interfaces/bui<wbr>ltin/network_control.go#L94</a><br>
<br>
regards,<br>
Simon<br>
<div class="m_3010468155844932354HOEnZb"><div class="m_3010468155844932354h5"><br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>