Browse Source

Adding network hooks for configure hook to fix security denials

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
Ondrej Kubik 7 years ago
parent
commit
9084158aec
1 changed files with 6 additions and 0 deletions
  1. 6 0
      snapcraft.yaml

+ 6 - 0
snapcraft.yaml

@@ -21,6 +21,12 @@ plugs:
     interface: content
     interface: content
     target: $SNAP_DATA/shared
     target: $SNAP_DATA/shared
 
 
+hooks:
+  configure:
+    plugs:
+      - network
+      - network-bind
+
 slots:
 slots:
   mongodb-slot:
   mongodb-slot:
     interface: content
     interface: content