bbaaef
From b179dc03af829443c2e11b4ee1ade456baa00af8 Mon Sep 17 00:00:00 2001
bbaaef
Message-Id: <b179dc03af829443c2e11b4ee1ade456baa00af8.1582885124.git.lorenzo.bianconi@redhat.com>
bbaaef
From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
bbaaef
Date: Thu, 27 Feb 2020 11:34:17 +0100
bbaaef
Subject: [PATCH] controller: grant cap_net_admin to ovn-controller
bbaaef
bbaaef
ovn-controller is currently running as non-root so it is not allowed to
bbaaef
configure system networking breaking ovn QoS support. Fix the issue
bbaaef
granting CAP_NET_ADMIN capability to ovn-controller process
bbaaef
bbaaef
Tested-by: Ying Xu <yinxu@redhat.com>
bbaaef
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
bbaaef
Signed-off-by: Mark Michelson <mmichels@redhat.com>
bbaaef
---
bbaaef
 ovn/controller/ovn-controller.c | 2 +-
bbaaef
 1 file changed, 1 insertion(+), 1 deletion(-)
bbaaef
bbaaef
--- a/ovn/controller/ovn-controller.c
bbaaef
+++ b/ovn/controller/ovn-controller.c
bbaaef
@@ -1756,7 +1756,7 @@ main(int argc, char *argv[])
bbaaef
     char *ovs_remote = parse_options(argc, argv);
bbaaef
     fatal_ignore_sigpipe();
bbaaef
 
bbaaef
-    daemonize_start(false);
bbaaef
+    daemonize_start(true);
bbaaef
 
bbaaef
     retval = unixctl_server_create(NULL, &unixctl);
bbaaef
     if (retval) {