Run radvd as root

During the refactoring of external process management radvd lost
its root privileges.

Closes-bug: 1448813

Change-Id: I84883fe81684afafac9b024282a03f447c8f825a
(cherry picked from commit a5e5433877)
This commit is contained in:
Henry Gessau 2015-04-27 09:59:21 -04:00
parent d37e566dca
commit 7260e0e3fc
2 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,8 @@ class DaemonMonitor(object):
default_cmd_callback=callback,
namespace=self._router_ns,
service=RADVD_SERVICE_NAME,
conf=cfg.CONF)
conf=cfg.CONF,
run_as_root=True)
def _spawn_radvd(self, radvd_conf):
def callback(pid_file):

View File

@ -1399,7 +1399,8 @@ class TestBasicRouterOperations(BasicRouterOperationsFramework):
service=process,
default_cmd_callback=mock.ANY,
namespace=ri.ns_name,
conf=mock.ANY)]
conf=mock.ANY,
run_as_root=True)]
def _process_router_ipv6_subnet_added(
self, router, ipv6_subnet_modes=None):