From patchwork Sun Oct 4 22:20:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ansis Atteka X-Patchwork-Id: 526211 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (unknown [IPv6:2600:3c00::f03c:91ff:fe6e:bdf7]) by ozlabs.org (Postfix) with ESMTP id D05B1140157 for ; Mon, 5 Oct 2015 09:20:36 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 29C3B10C99; Sun, 4 Oct 2015 15:20:27 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e4.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id 07AD610C8B for ; Sun, 4 Oct 2015 15:20:25 -0700 (PDT) Received: from bar2.cudamail.com (unknown [192.168.21.12]) by mx1e4.cudamail.com (Postfix) with ESMTPS id 58B5E1E041A for ; Sun, 4 Oct 2015 16:20:24 -0600 (MDT) X-ASG-Debug-ID: 1443997223-03dc537fe1b90910001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar2.cudamail.com with ESMTP id 7HidfUg2ReBV56px (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 04 Oct 2015 16:20:23 -0600 (MDT) X-Barracuda-Envelope-From: aatteka@nicira.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO mail-pa0-f47.google.com) (209.85.220.47) by mx1-pf2.cudamail.com with ESMTPS (RC4-SHA encrypted); 4 Oct 2015 22:20:23 -0000 Received-SPF: unknown (mx1-pf2.cudamail.com: Multiple SPF records returned) X-Barracuda-RBL-Trusted-Forwarder: 209.85.220.47 Received: by pacex6 with SMTP id ex6so156619963pac.0 for ; Sun, 04 Oct 2015 15:20:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Y1HB9x70cWUuZDVMs2q89sr2o5BK3TXr36L4mf6wbM4=; b=cz92SRtZjcQ/krqzwSX/v457IS5vSJTOshdSoalvWo4u6JIAd5W0lExCHNeK7dd9Ie 08Dmw0eviHln2AvL6IcF/wSkiHRcsO8N9/qhw4C2h1w8WjN6A7jFGbjogPO9PyqBe1Yq u79GdnQw/ycAGLW20Z/bgtys15r5NJoNwJGO1Eq6VWyWbwKMZ81Wr/vgqMS3BGQEc+Dj h0ZNhmgV0i3ioww0X7SywWJf9dW2iKg0Wyp68CGNTUakUAiYhOb7fVIQ/wDIg6OmpMR0 c3cprcxjjpx90aHQ82GyXjcNzFZkwndKJwTQ395KRnwwurYo5jK12d+OsHG6sksQfkcQ F9TA== X-Gm-Message-State: ALoCoQl6Cx7bhiuR9GxdMkYTg3tfblv+dHTgNDQ4GTInaobn7mT5aeVx2HPws1DiV6nD59U9KyiV X-Received: by 10.68.223.34 with SMTP id qr2mr35898314pbc.97.1443997223013; Sun, 04 Oct 2015 15:20:23 -0700 (PDT) Received: from aatteka-MacBookPro.eng.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id bs3sm23640402pbd.89.2015.10.04.15.20.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 04 Oct 2015 15:20:22 -0700 (PDT) X-CudaMail-Envelope-Sender: aatteka@nicira.com X-Barracuda-Apparent-Source-IP: 208.91.1.34 From: Ansis Atteka To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-E2-1003021987 X-CudaMail-DTE: 100415 X-CudaMail-Originating-IP: 209.85.220.47 Date: Sun, 4 Oct 2015 15:20:10 -0700 X-ASG-Orig-Subj: [##CM-E2-1003021987##][PATCH 3/3] RHEL: create /etc/openvswitch directory Message-Id: <1443997210-9377-3-git-send-email-aatteka@nicira.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443997210-9377-1-git-send-email-aatteka@nicira.com> References: <1443997210-9377-1-git-send-email-aatteka@nicira.com> X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1443997223 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Subject: [ovs-dev] [PATCH 3/3] RHEL: create /etc/openvswitch directory X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" 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 Acked-by: Flavio Leitner --- rhel/openvswitch.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in index 0ec65be..4a2076c 100644 --- a/rhel/openvswitch.spec.in +++ b/rhel/openvswitch.spec.in @@ -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