slot type not equal plugs type

Didier Roche didrocks at ubuntu.com
Wed Jun 22 07:10:27 UTC 2016


Le 22/06/2016 09:05, Alekseenko Vasilii a écrit :
> On 22.06.2016 10:00, Alekseenko Vasilii wrote:
>> On 22.06.2016 09:56, Zygmunt Krynicki wrote:
>>>
>>>> Wiadomość napisana przez Alekseenko Vasilii <vasilisc777 at gmail.com> w
>>>> dniu 22.06.2016, o godz. 08:55:
>>>>
>>>> On 22.06.2016 09:47, Zygmunt Krynicki wrote:
>>>>> snap interfaces
>>>>
>>>> What do I need to make the right conclusion from all this?
>>>> nmap do not have ubuntu-core:network-observe
>>>
>>> No it doesn't
>>>>
>>>> my snap do not have ubuntu-core:home
>>>>
>>>
>>> No it doesn’t
>>>
>>> The output of „snap interfaces” consists of a list of connected
>>> interfaces followed by the list of disconnected interfaces. I don’t
>>> see your snap mentioned in home.
>>>
>>>> -- 
>>>> С уважением,
>>>> Алексеенко Василий
>>>> http://vasilisc.com/
>>>> ----
>>>>
>>>
>>
>> Very strange
>>
>> # snap interfaces
>> Slot                 Plug
>> :network             nmap
>> :network-bind        nmap
>> :network-control     -
>> -                    nmap:network-control
>>
>> My additional command
>> # sudo snap connect nmap:network-control ubuntu-core:network-control
>>
>> [/] Connect nmap:network-control to ubuntu-core:network-control
>>
>> # snap interfaces
>> Slot                 Plug
>> :network             nmap
>> :network-bind        nmap
>> :network-control     nmap
>>
> Poor users =(
>
> # snap install languagetool
> 165.25 MB / 165.27 MB
> [==================================================================================================================================================================>_]
> 99.99 % 1.61 MB/s
>
> # snap interfaces
> Slot                 Plug
> :home                -
> :network             languagetool,nmap
> :network-bind        languagetool,nmap
> :network-control     nmap
> :unity7              languagetool
> :x11                 languagetool
> -                    languagetool:home
>
>
> # sudo snap connect languagetool:home ubuntu-core:home
> [-] Connect languagetool:home to ubuntu-core:home
>
> # snap interfaces
> Slot                 Plug
> :home                languagetool
> :network             languagetool,nmap
> :network-bind        languagetool,nmap
> :network-control     nmap
> :unity7              languagetool
> :x11                 languagetool
>
> I fixed problem, but situation very bad.
Hey Alekseenko,

Some interfaces are autoconnecting (as you can see here, network,
network-bind, unity7, x11. Some aren't (like home). We are revisiting
the home interface to get it autoconnected for now until we have a great
visual interfaces to prompt users about unconnected plugs/slots and ask
their permissions to do this connection.

This is a security feature, and why we have finer grain security in
snaps than traditional packaging system, where the package has access to
everything right away.

Cheers,
Didier




More information about the Snapcraft mailing list