apparmor.service在容器内失败(LXC)

我试图在特权容器内启用apparmor,但由于某种原因,它失败了。 我已经在主机内核(4.9)和用户空间(apparmor 2.11版本)中启用了apparmor。

systemctl status apparmor -l日志

 ● apparmor.service - AppArmor initialization Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/apparmor.service.d └─10-enable-in-container.conf Active: failed (Result: exit-code) since Tue 2017-07-04 13:41:39 UTC; 45s ago Docs: man:apparmor(7) http://wiki.apparmor.net/ Process: 25 ExecStart=/sbin/apparmor_parser -B /etc/apparmor.d/cache/.ubercache (code=exited, status=13) Main PID: 25 (code=exited, status=13) Jul 04 13:41:38 ubuntu systemd[1]: Starting AppArmor initialization... Jul 04 13:41:39 ubuntu apparmor_parser[25]: Error: Could not load profile /etc/apparmor.d/cache/.ubercache: Permission denied Jul 04 13:41:39 ubuntu systemd[1]: apparmor.service: Main process exited, code=exited, status=13/n/a Jul 04 13:41:39 ubuntu systemd[1]: Failed to start AppArmor initialization. Jul 04 13:41:39 ubuntu systemd[1]: apparmor.service: Unit entered failed state. Jul 04 13:41:39 ubuntu systemd[1]: apparmor.service: Failed with result 'exit-code'. 

我也在我的容器configuration中设置了lxc.aa_profile = unconfined

任何提示将被认为是! 提前致谢!