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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
  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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux