Re: Which snap interface allows accessing /dev/rfkill?

2017-01-20 Thread Jamie Strandboge
On Fri, 2017-01-20 at 08:45 +0800, XiaoGuo Liu wrote: > I think it would be good to let "snappy-debug" snap output what are the > needed plugs. Sometimes, the utility does  not give us hints. Is there any > way to improve the app? It is even easier than looking for some info on the > website. > >

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread XiaoGuo Liu
I think it would be good to let "snappy-debug" snap output what are the needed plugs. Sometimes, the utility does not give us hints. Is there any way to improve the app? It is even easier than looking for some info on the website. https://github.com/snapcore/snapd/wiki/Security Thanks & best re

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Oliver Ries
On Thu, Jan 19, 2017 at 8:54 AM, Sergio Schvezov < sergio.schve...@canonical.com> wrote: > On Thu, 19 Jan 2017 07:58:53 -0700, Oliver Ries wrote: > > On Thu, Jan 19, 2017 at 2:49 AM, Jamie Bennett < > jamie.benn...@canonical.com> > > wrote: > > > >> Hi Tonny, > >> > >> A quick grep of the snapd so

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Jamie Strandboge
On Thu, 2017-01-19 at 22:56 +0800, Tonny Tzeng wrote: > 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

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Sergio Schvezov
On Thu, 19 Jan 2017 07:58:53 -0700, Oliver Ries wrote: > On Thu, Jan 19, 2017 at 2:49 AM, Jamie Bennett > wrote: > >> Hi Tonny, >> >> A quick grep of the snapd source code shows that /dev/rfkill is part of >> the network-control and network-manager interfaces. >> > > this method (grep the code) ha

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Oliver Ries
On Thu, Jan 19, 2017 at 2:49 AM, Jamie Bennett wrote: > Hi Tonny, > > A quick grep of the snapd source code shows that /dev/rfkill is part of > the network-control and network-manager interfaces. > this method (grep the code) has been a repeated answer in the last few days, do we have any way of

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Tonny Tzeng
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

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Tonny Tzeng
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 wrote: > On 19.01.2017 10:41, Tonny Tzeng wrote: > > Hi, > > > > I'd like to unblock the Bluetooth interface

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Simon Fels
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 conf

Re: Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Jamie Bennett
Hi Tonny, A quick grep of the snapd source code shows that /dev/rfkill is part of the network-control and network-manager interfaces. Regards, Jamie. > On 19 Jan 2017, at 09:41, Tonny Tzeng wrote: > > Hi, > > I'd like to unblock the Bluetooth interface on Ubuntu Core, so I use > 'stage-pac

Which snap interface allows accessing /dev/rfkill?

2017-01-19 Thread Tonny Tzeng
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