Skip to content

Commit

Permalink
RHEL: create /etc/openvswitch directory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ansis Atteka committed Oct 23, 2015
1 parent 242ba95 commit 8a6f69f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rhel/openvswitch.spec.in
Expand Up @@ -123,6 +123,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
Expand Down

0 comments on commit 8a6f69f

Please sign in to comment.