Comment 0 for bug 1854046

with a snap.yaml that globally declares its plugs and also declares hook-specific plugs like so:
```
plugs:
  desktop: null
  desktop-legacy: null
  home: null
  joystick: null
  network: null
  opengl: null
  pulseaudio: null
  removable-media: null
  screen-inhibit-control: null
  unity7: null
  wayland: null
  x11: null
hooks:
  install:
    plugs:
      - opengl
    command-chain:
      - snap/command-chain/snapcraft-runner
```

The hooks level plugs are ignored and not generated in the policy. You can test this with a simple configure hook that tries to read from /var/lib/snapd/libs/gl/libGL (an access which is provided by the opengl interface):

```
#!/bin/sh -e
sha1sum /var/lib/snapd/lib/gl/libGL.so.1
```