I use snappy-debug to debug, the output is as follow:
root@sheo2-consul2:~# sudo /snap/bin/snappy-debug.security scanlog glances
INFO: Following ‘/var/log/syslog’. If have dropped messages, use:
INFO: $ sudo journalctl --output=short --follow --all | sudo snappy-debug
kernel.printk_ratelimit = 0
= AppArmor =
Time: Oct 23 14:48:20
Log: apparmor=“DENIED” operation=“open” profile=“snap.glances.glances” name="/etc/glances/glances.conf" pid=1363428 comm=“python3” requested_mask=“r” denied_mask=“r” fsuid=0 ouid=0
File: /etc/glances/glances.conf (read)
Suggestions:
- adjust program to read necessary files from $SNAP, $SNAP_DATA, $SNAP_COMMON, $SNAP_USER_DATA or $SNAP_USER_COMMON
- adjust snap to use snap layouts (Snap layouts)
- add ‘system-files (see https://forum.snapcraft.io/t/the-system-files-interface for acceptance criteria)’ to ‘plugs’
In my owner view, it is a bug for glances.snap. Some modify should be taken in snapcraft.yaml for glances.
But I did not know how to fix it , and get not get the snapcraft.yaml of glances.
An reply will be appreciate.