I cannot reproduce with the following:
$ mkdir /tmp/cache $ tar -zxvf ./profiles.tgz $ cd profiles $ while /bin/true ; do sudo apparmor_parser --replace --write-cache -O no-expr-simplify --cache-loc=/tmp/cache ./* ; done
The above apparmor_parser options are what snapd uses (see interfaces/apparmor/apparmor.go).
$ cat /proc/version_signature Ubuntu 4.4.0-21.37-generic 4.4.6
Paul, are you able to reproduce this issue when running the above on the system in question? Perhaps you can also include tarballs for /etc/apparmor.d and /etc/apparmor.d/cache?
I cannot reproduce with the following:
$ mkdir /tmp/cache loc=/tmp/ cache ./* ; done
$ tar -zxvf ./profiles.tgz
$ cd profiles
$ while /bin/true ; do sudo apparmor_parser --replace --write-cache -O no-expr-simplify --cache-
The above apparmor_parser options are what snapd uses (see interfaces/ apparmor/ apparmor. go).
$ cat /proc/version_ signature
Ubuntu 4.4.0-21.37-generic 4.4.6
Paul, are you able to reproduce this issue when running the above on the system in question? Perhaps you can also include tarballs for /etc/apparmor.d and /etc/apparmor. d/cache?