[libvirt PATCH 3/5] Remove all usage of virRun

Michal Privoznik mprivozn at redhat.com
Thu Apr 23 09:29:58 UTC 2020


On 4/22/20 6:52 PM, Ján Tomko wrote:
> Catch the individual usage not removed in previous commits.
> 
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
>   src/lxc/lxc_driver.c             |  5 +++--
>   src/qemu/qemu_domain.c           | 16 ++++++++--------
>   src/security/security_apparmor.c | 11 +++--------
>   src/util/virnetdev.c             | 24 ++++++++----------------
>   4 files changed, 22 insertions(+), 34 deletions(-)
> 


> diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c
> index ca02631f7f..55eb110522 100644
> --- a/src/security/security_apparmor.c
> +++ b/src/security/security_apparmor.c
> @@ -203,15 +203,10 @@ load_profile(virSecurityManagerPtr mgr G_GNUC_UNUSED,
>   static int
>   remove_profile(const char *profile)
>   {
> -    int rc = -1;
> -    const char * const argv[] = {
> -        VIRT_AA_HELPER, "-D", "-u", profile, NULL
> -    };
> +    g_autoptr(virCommand) cmd = virCommandArgList(VIRT_AA_HELPER, "-D", "-u",
> +                                                  profile, NULL);

s/virCommandArgList/virCommandNewArgList/

Michal




More information about the libvir-list mailing list