Hi all,
I am trying to add the home plug to my configure hook but snappy-debug persistently recommends that I add ‘home’ to plugs.
= AppArmor = Time: Feb 23 07:27:27 Log: apparmor=“ALLOWED” operation=“open” profile=“snap.raven-client.hook.configure” name=“/home/user/myconfig.yaml” pid=14869 comm=“python3” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=1000 File: /home/user/myconfig.yaml (read) Suggestion:
- add ‘home’ to ‘plugs’
snapcraft.yaml:
name: raven-client base: core18 version: ‘0.1’ summary: empty summary description: | client
grade: devel confinement: devmode
parts: internal-python: plugin: python python-version: python3 source: . python-packages: - protobuf - pycryptodome - python-gnupg - pyyaml
hook-setup: plugin: dump source: hooks organize: configure: snap/hooks/configure post-refresh: snap/hooks/post-refresh install: snap/hooks/install
hooks: configure: plugs: - home
apps: run: command: “$SNAP/run.sh” plugs: - network - network-bind - home
The syntax used in my snapcraft.yaml file seems to be in line with what is discussed in Plugs in global position in snapcraft.yaml but I can’t seem to find any other documentation specifically regarding the use of plugs with hooks.
Any help is much appreciated!
, thanks the help