RHEL: create /etc/openvswitch directory
authorAnsis Atteka <aatteka@nicira.com>
Fri, 2 Oct 2015 23:46:40 +0000 (16:46 -0700)
committerAnsis Atteka <aatteka@nicira.com>
Fri, 9 Oct 2015 00:32:25 +0000 (17:32 -0700)
This directory needs to be created by the package manager
because ovs-ctl is being invoked from SElinux openvswitch
domain that does not have enough privileges to create
directories under /etc on its own.

Without this patch Open vSwitch is not able to start under
SElinux enforcing mode (which is default on CentOS by the way).

Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Ackedy-by: Kyle Mestery <mestery@mestery.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
rhel/openvswitch.spec.in

index 0ec65be..4a2076c 100644 (file)
@@ -120,6 +120,7 @@ exit 0
 
 %files
 %defattr(-,root,root)
+%dir /etc/openvswitch
 /etc/bash_completion.d/ovs-appctl-bashcomp.bash
 /etc/bash_completion.d/ovs-vsctl-bashcomp.bash
 /etc/init.d/openvswitch