From 92d53574d5039e1173347754090cf64ccf2af57c Mon Sep 17 00:00:00 2001 From: aaron conole Date: Fri, 4 Aug 2017 13:00:53 -0400 Subject: redhat: allow arbitrary user:group Under rpm based distributions, the only user:group that the rhel daemons run as is 'root:root'. This is fine as a default, but as part of a security procedure, users may want to run as an alternate uid/gid. This commit adds an OVS_USER_ID environment variable for systemd, which defaults to root:root, but can be overridden by changing the /etc/sysconfig/openvswitch environment file. Acked-by: Markos Chandras Signed-off-by: Aaron Conole Signed-off-by: Russell Bryant --- rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template') diff --git a/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template b/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template index 3050a0703..fdaee00d5 100644 --- a/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template +++ b/rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template @@ -21,3 +21,6 @@ # --ovsdb-server-wrapper=valgrind # OPTIONS="" + +# Uncomment and set the OVS User/Group value +#OVS_USER_ID="openvswitch:openvswitch" -- cgit v1.2.1