diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-08-08 08:48:05 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-08-08 08:48:05 +0300 |
commit | ecc97537fbd9d67fc5f3278dabec49a10943330e (patch) | |
tree | 2dd080588c4b94aa2f74ba221bae7422bbdb6513 /scripts | |
parent | 6807d7d0b546a994a03504bd16611f18d3278f6b (diff) |
master_daemon: run the Stateless RPC proxy without superuser privileges
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/master_daemon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/master_daemon.py b/scripts/master_daemon.py index dd4d805a..21b94856 100755 --- a/scripts/master_daemon.py +++ b/scripts/master_daemon.py @@ -190,7 +190,7 @@ args.trex_dir = os.path.abspath(args.trex_dir) args.daemon_type = args.daemon_type or 'master_daemon' stl_rpc_proxy_dir = os.path.join(args.trex_dir, 'automation', 'trex_control_plane', 'stl', 'examples') -stl_rpc_proxy = SingletonDaemon('Stateless RPC proxy', 'trex_stl_rpc_proxy', args.stl_rpc_proxy_port, '%s rpc_proxy_server.py' % sys.executable, stl_rpc_proxy_dir) +stl_rpc_proxy = SingletonDaemon('Stateless RPC proxy', 'trex_stl_rpc_proxy', args.stl_rpc_proxy_port, 'sudo -u nobody %s rpc_proxy_server.py' % sys.executable, stl_rpc_proxy_dir) trex_daemon_server = SingletonDaemon('TRex daemon server', 'trex_daemon_server', args.trex_daemon_port, '%s trex_daemon_server start' % sys.executable, args.trex_dir) master_daemon = SingletonDaemon('Master daemon', 'trex_master_daemon', args.master_port, start_master_daemon) # add ourself for easier check if running, kill etc. |