mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
aa-helper: adjust previous patch
Don't fail when there is nothing to do, as a tweak to the previous patch regarding output of libvirt-UUID.files for LXC apparmor profiles Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
383e7126a8
commit
9b1e4cd503
@ -1342,11 +1342,13 @@ main(int argc, char **argv)
|
||||
vah_info(include_file);
|
||||
vah_info(included_files);
|
||||
rc = 0;
|
||||
} else if (ctl->def->virtType != VIR_DOMAIN_VIRT_LXC &&
|
||||
(rc = update_include_file(include_file,
|
||||
} else if (ctl->def->virtType == VIR_DOMAIN_VIRT_LXC) {
|
||||
rc = 0;
|
||||
} else if ((rc = update_include_file(include_file,
|
||||
included_files,
|
||||
ctl->append)) != 0)
|
||||
ctl->append)) != 0) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
||||
/* create the profile from TEMPLATE */
|
||||
|
Loading…
Reference in New Issue
Block a user