mirror of https://gitee.com/openkylin/libvirt.git
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: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
17825e8ae7
commit
eba2225bc5
|
@ -220,7 +220,7 @@ remove_profile(const char *profile)
|
|||
{
|
||||
int rc = -1;
|
||||
const char * const argv[] = {
|
||||
VIRT_AA_HELPER, "-R", "-u", profile, NULL
|
||||
VIRT_AA_HELPER, "-D", "-u", profile, NULL
|
||||
};
|
||||
|
||||
if (virRun(argv, NULL) == 0)
|
||||
|
|
Loading…
Reference in New Issue