提交 eba2225b 编写于 作者: G Guido Günther

apparmor: delete profile on VM shutdown

instead of only unloading it. This makes sure old profiles don't pile up
in /etc/apparmor.d/libvirt and we get updates to modified templates on
VM restart.
Reviewed-by: NJim Fehlig <jfehlig@suse.com>
上级 17825e8a
...@@ -220,7 +220,7 @@ remove_profile(const char *profile) ...@@ -220,7 +220,7 @@ remove_profile(const char *profile)
{ {
int rc = -1; int rc = -1;
const char * const argv[] = { const char * const argv[] = {
VIRT_AA_HELPER, "-R", "-u", profile, NULL VIRT_AA_HELPER, "-D", "-u", profile, NULL
}; };
if (virRun(argv, NULL) == 0) if (virRun(argv, NULL) == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册