提交 9b1e4cd5 编写于 作者: C Cédric Bosdonnat 提交者: Eric Blake

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: NEric Blake <eblake@redhat.com>
上级 383e7126
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册