Public bug reported:

Over the weekend I tried to upgrade my minecraft 15.04 snap to 16.04. Here is 
the branch:
https://code.launchpad.net/~jdstrand/+junk/snap-example-minecraft

$ sudo snap install ./minecraft_16.04-0.7_amd64.snap
[/] Make snap "minecraft" available to the system

$ snap interfaces
Slot  Plug
-     minecraft:network-bind

$ grep nameservice /var/lib/snapd/apparmor/profiles/snap.minecraft.*
$

I would have expected both snap.minecraft.server and snap.minecraft.util to 
have network-bind security policy. Is it because I don't specify any plugs with 
'backup'?
apps:
  server:
    command: bin/start
    daemon: simple
    plugs: [network-bind]
  backup:
    command: bin/backup
    daemon: simple
  util:
    command: bin/mcutil
    plugs: [network-bind]

I regenerated an amd64 kvm image with today's dailies from
http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/
(kernel snap 18-Apr-2016 05:07, os snap 18-Apr-2016 05:07, gadget from
store).

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: Incomplete

** Summary changed:

- network-bind not autoconnecting
+ network-bind not autoconnecting the security policy

** Description changed:

  Over the weekend I tried to upgrade my minecraft 15.04 snap to 16.04. Here is 
the branch:
  https://code.launchpad.net/~jdstrand/+junk/snap-example-minecraft
  
- $ sudo snap install ./minecraft_16.04-0.7_amd64.snap 
+ $ sudo snap install ./minecraft_16.04-0.7_amd64.snap
  [/] Make snap "minecraft" available to the system
  
  $ snap interfaces
  Slot  Plug
  -     minecraft:network-bind
  
  $ grep nameservice /var/lib/snapd/apparmor/profiles/snap.minecraft.*
  $
  
  I would have expected both snap.minecraft.server and snap.minecraft.util to 
have network-bind security policy. Is it because I don't specify any plugs with 
'backup'?
  apps:
-   server:
-     command: bin/start
-     daemon: simple
-     plugs: [network-bind]
-   backup:
-     command: bin/backup
-     daemon: simple
-   util:
-     command: bin/mcutil
-     plugs: [network-bind]
+   server:
+     command: bin/start
+     daemon: simple
+     plugs: [network-bind]
+   backup:
+     command: bin/backup
+     daemon: simple
+   util:
+     command: bin/mcutil
+     plugs: [network-bind]
+ 
+ I regenerated an amd64 kvm image with today's dailies from
+ http://cdimage.ubuntu.com/ubuntu-core/daily-preinstalled/current/
+ (kernel snap 18-Apr-2016 05:07, os snap 18-Apr-2016 05:07, gadget from
+ store).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1571675

Title:
  network-bind not autoconnecting the security policy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1571675/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to