Re: [ovs-dev] GRE over IPsec on CentOS

2016-09-27 Thread Ansis Atteka
On Sep 26, 2016 7:02 PM, wrote: > > Hi all , > > I have been trying to test IPSEC over GRE on Centos7.3 . I am able to test on ubuntu14.04 . The ovs-monitor-ipsec daemon never was packaged (ie had *.rpm package) for CentOS. Just for debain/ubuntu. However, now we just removed debian package as w

Re: [ovs-dev] [PATCH] openvswitch: Allow external IPsec tunnel management.

2016-09-26 Thread Ansis Atteka
tor-ipsec.at Assuming you were able to build all other debian packages with "fakeroot debian/rules binary" after removing and editing those files, then Acked-by: Ansis Atteka Let me know, if you want me to independently verify that as well? > > > diff --git a/NEWS b/NEWS >

Re: [ovs-dev] [PATCH] openvswitch: deprecates support for IPsec tunnel port.

2016-09-23 Thread Ansis Atteka
switch.xml b/vswitchd/vswitch.xml > index e73023d..6381cc8 100644 > --- a/vswitchd/vswitch.xml > +++ b/vswitchd/vswitch.xml > @@ -2008,6 +2008,9 @@ > > An Ethernet over RFC 2890 Generic Routing Encapsulation over > IPv4/IPv6 > IPsec tun

Re: [ovs-dev] [PATCH] openvswitch: Allow external IPsec tunnel management.

2016-09-23 Thread Ansis Atteka
On Fri, Sep 23, 2016 at 1:12 AM, pravin shelar wrote: > On Thu, Sep 22, 2016 at 11:59 AM, Ansis Atteka wrote: >> >> >> On 20 September 2016 at 20:52, Pravin B Shelar wrote: >>> >>> OVS IPsec tunnel support has issues: >>> 1. It only works for GRE

Re: [ovs-dev] [PATCHv2] ovs-lib: Fix SELinux contexts for created dirs.

2016-09-23 Thread Ansis Atteka
restorecon' is unavailable, this should be a no-op. > > VMware-BZ: #1732672 > > Signed-off-by: Joe Stringer > Acked-by: Ansis Atteka > Thanks for taking care of this. I just did a basic test and I think your V2 patch is a good enhancement. > --- > v2: Only restore context

Re: [ovs-dev] [PATCH] ovs-lib: Fix SELinux contexts for created dirs.

2016-09-22 Thread Ansis Atteka
restorecon' is unavailable, this should be a no-op. > > VMware-BZ: #1732672 > > Signed-off-by: Joe Stringer Acked-by: Ansis Atteka I could give Tested-by, but only in 12 hours, if you are willing to wait. One thing that caught my attention is that "restorecon -R /" may t

Re: [ovs-dev] [PATCH] openvswitch: Allow external IPsec tunnel management.

2016-09-22 Thread Ansis Atteka
On 20 September 2016 at 20:52, Pravin B Shelar wrote: > OVS IPsec tunnel support has issues: > 1. It only works for GRE. 2. only works on Debian. 3. It does not allow user to match on packet-mark >on packet received on tunnel ports. > Therefore following patch provide alternative to com

Re: [ovs-dev] [PATCH] ipsec: Do not allow ipsec_gre tunnel traffic to exit unencrypted

2016-09-01 Thread Ansis Atteka
On 30 August 2016 at 02:21, Jesse Gross wrote: > On Mon, Aug 29, 2016 at 11:57 AM, Ansis Atteka wrote: > > If ipsec_gre tunnel configuration is changed in OVSDB, > > then GRE packets may sometimes exit unencrypted until > > per-tunnel IPsec policies are installed by ovs-mon

[ovs-dev] [PATCH] ipsec: Do not allow ipsec_gre tunnel traffic to exit unencrypted

2016-08-29 Thread Ansis Atteka
) Signed-off-by: Ansis Atteka Reported-by: Steffen Birkeland --- debian/control | 1 + debian/ovs-monitor-ipsec | 16 ++-- tests/ofproto-macros.at | 7 +++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index 480ff5c

Re: [ovs-dev] [PATCHv2 2/2] tunneling: get skb marking to work properly with tunnels

2016-07-21 Thread Ansis Atteka
On Jul 21, 2016 2:08 PM, "Jarno Rajahalme" wrote: > > Looks good to me: > > Acked-by: Jarno Rajahalme > Thanks. Can you also review patch 1/2? > > On Jul 19, 2016, at 2:25 PM, Ansis Atteka wrote: > > > > There are two issues that this patch fixes:

Re: [ovs-dev] [PATCH 2/2] tunneling: get skb marking to work properly with tunnels

2016-07-19 Thread Ansis Atteka
On 14 July 2016 at 02:22, Jarno Rajahalme wrote: > > > On Jul 13, 2016, at 9:01 PM, Ansis Atteka wrote: > > > > There are two issues that this patch fixes: > > 1. it was impossible to set skb mark at all through > > NXM_NX_PKT_MARK register for tunnel pack

[ovs-dev] [PATCHv2 2/2] tunneling: get skb marking to work properly with tunnels

2016-07-19 Thread Ansis Atteka
patch also adds anti-regression tests to prevent such breakages in the future. Signed-off-by: Ansis Atteka VMware-BZ: #1653178 --- ofproto/tunnel.c | 3 +- tests/tunnel.at | 120 +++ 2 files changed, 122 insertions(+), 1 deletion(-) di

[ovs-dev] [PATCHv2 1/2] IPsec: refactor out some code in OVS_MONITOR_IPSEC_START macro

2016-07-19 Thread Ansis Atteka
This OVS_MONITOR_IPSEC_START macro will be helpful in the next patch where it will be used also from tests/tunnel.at file to test that skb marking happens correctly. Otherwise, without ovs-monitor-ipsec running the ovs-vswitchd would refuse to configure ipsec_XXX tunnels. Signed-off-by: Ansis

[ovs-dev] [PATCH 2/2] tunneling: get skb marking to work properly with tunnels

2016-07-13 Thread Ansis Atteka
patch also adds anti-regression tests to prevent such breakages in the future. Signed-off-by: Ansis Atteka VMware-BZ: #1653178 --- ofproto/tunnel.c | 4 +- tests/tunnel.at | 120 +++ 2 files changed, 122 insertions(+), 2 deletions(-) di

[ovs-dev] [PATCH 1/2] IPsec: refactor out some code in OVS_MONITOR_IPSEC_START macro

2016-07-13 Thread Ansis Atteka
This OVS_MONITOR_IPSEC_START macro will be helpful in the next patch where it will be used also from tests/tunnel.at file to test that skb marking happens correctly. Otherwise, without ovs-monitor-ipsec running the ovs-vswitchd would refuse to configure ipsec_XXX tunnels. Signed-off-by: Ansis

Re: [ovs-dev] [PATCH v2 2/2] netdev-dpdk: Support user-defined socket attribs

2016-07-06 Thread Ansis Atteka
On Wed, Jul 6, 2016 at 7:24 AM, Aaron Conole wrote: > Aaron Conole writes: > >> Daniele Di Proietto writes: >> >>> On 10/06/2016 10:51, "Aaron Conole" wrote: >>> Aaron Conole writes: > Christian Ehrhardt writes: > >> On Tue, May 24, 2016 at 4:10 PM, Aaron Conole wrote: >

Re: [ovs-dev] [PATCH] bridge: fix windows build

2016-06-29 Thread Ansis Atteka
On 29 June 2016 at 18:24, Sairam Venugopal wrote: > Thanks for fixing this. I just sent out a patch for fixing the same. > > Acked-by: Sairam Venugopal > Thanks, for review. I pushed it. Sorry for wasting your cycles on this. > > > > On 6/29/16, 6:16 PM, "Ans

[ovs-dev] [PATCH] bridge: fix windows build

2016-06-29 Thread Ansis Atteka
Patch 81d2f75c (bridge: allow OVS to interact with controller through sockets outside run dir) broke windows build. This patch fixes that. Signed-off-by: Ansis Atteka --- lib/daemon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/daemon.h b/lib/daemon.h index b035055

Re: [ovs-dev] [PATCHv3] bridge: allow OVS to interact with controller through sockets outside run dir

2016-06-27 Thread Ansis Atteka
On 27 June 2016 at 19:52, Jesse Gross wrote: > On Mon, Jun 27, 2016 at 7:20 PM, Ansis Atteka wrote: > > Currently Open vSwitch is unable to create or connect to Unix Domain > > Sockets outside designated 'run' directory, because of fear of potential > > remote

Re: [ovs-dev] [PATCHv2] bridge: allow OVS to interact with controller through sockets outside run dir

2016-06-27 Thread Ansis Atteka
On 27 June 2016 at 11:37, Jesse Gross wrote: > On Sat, Jun 25, 2016 at 4:38 PM, Ansis Atteka wrote: > > diff --git a/lib/daemon.h b/lib/daemon.h > > index 4990415..742f382 100644 > > --- a/lib/daemon.h > > +++ b/lib/daemon.h > [...] > > +extern bool self_c

[ovs-dev] [PATCHv3] bridge: allow OVS to interact with controller through sockets outside run dir

2016-06-27 Thread Ansis Atteka
to disable self-confinement for other things like DPDK vhost-user sockets or anything else that is specifiable in OVSDB with full path. Signed-off-by: Ansis Atteka VMware-BZ: #1525857 --- NEWS | 2 ++ lib/daemon-syn.man | 1 + lib/daemon.c | 22 +

Re: [ovs-dev] [PATCH] bridge: allow OVS to interact with controller through sockets outside run dir

2016-06-25 Thread Ansis Atteka
On 22 June 2016 at 15:44, Ben Pfaff wrote: > On Mon, Jun 20, 2016 at 02:19:40PM -0700, Ansis Atteka wrote: > > Currently Open vSwitch is unable to create or connect to Unix Domain > > Sockets outside designated 'run' directory, because of fear of potential > >

[ovs-dev] [PATCHv2] bridge: allow OVS to interact with controller through sockets outside run dir

2016-06-25 Thread Ansis Atteka
to disable self-confinement for other things like DPDK vhost-user sockets or anything else that is specifiable in OVSDB with full path. Signed-off-by: Ansis Atteka VMware-BZ: #1525857 --- NEWS | 2 ++ lib/daemon-syn.man | 1 + lib/daemon.c | 14 ++ lib/daemon

Re: [ovs-dev] [PATCH] rhel: Fix RHEL package build breakage

2016-06-24 Thread Ansis Atteka
On 24 June 2016 at 13:00, Russell Bryant wrote: > On Thu, Jun 23, 2016 at 10:04 PM, Ansis Atteka wrote: > > > This patch fixes following error: > > > > error: Installed (but unpackaged) file(s) found: > >/usr/bin/ovs-tcpdump > >/usr/share/man/man8/ov

[ovs-dev] [PATCH] rhel: Fix RHEL package build breakage

2016-06-23 Thread Ansis Atteka
This patch fixes following error: error: Installed (but unpackaged) file(s) found: /usr/bin/ovs-tcpdump /usr/share/man/man8/ovs-tcpdump.8.gz Signed-off-by: Ansis Atteka --- rhel/openvswitch.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rhel/openvswitch.spec.in b/rhel

Re: [ovs-dev] [PATCH] bridge: allow OVS to connect to Unix Domain Sockets outside its run directory

2016-06-20 Thread Ansis Atteka
On 8 June 2016 at 17:17, Ansis Atteka wrote: > > > On 8 June 2016 at 16:45, Ansis Atteka wrote: > >> >> >> On 8 June 2016 at 14:02, Ben Pfaff wrote: >> >>> On Thu, Jun 02, 2016 at 07:47:33PM -0700, Ansis Atteka wrote: >>> > Before thi

[ovs-dev] [PATCH] bridge: allow OVS to interact with controller through sockets outside run dir

2016-06-20 Thread Ansis Atteka
because perhaps OVSDB manager is running on the same host as OVS. Signed-off-by: Ansis Atteka VMware-BZ: #1525857 --- lib/daemon.c | 14 ++ lib/daemon.h | 14 ++ utilities/ovs-ctl.in | 18 +++--- vswitchd/bridge.c| 5 +++-- 4 files changed

Re: [ovs-dev] [PATCH v2 2/2] netdev-dpdk: Support user-defined socket attribs

2016-06-13 Thread Ansis Atteka
On 13 June 2016 at 14:36, Aaron Conole wrote: > Daniele Di Proietto writes: > > > On 10/06/2016 10:51, "Aaron Conole" wrote: > > > >>Aaron Conole writes: > >> > >>> Christian Ehrhardt writes: > >>> > On Tue, May 24, 2016 at 4:10 PM, Aaron Conole > wrote: > > > Daniele Di Proiet

Re: [ovs-dev] [PATCH v2 2/2] netdev-dpdk: Support user-defined socket attribs

2016-06-10 Thread Ansis Atteka
On 10 June 2016 at 10:51, Aaron Conole wrote: > Aaron Conole writes: > > > Christian Ehrhardt writes: > > > >> On Tue, May 24, 2016 at 4:10 PM, Aaron Conole > wrote: > >> > >>> Daniele Di Proietto writes: > >>> > >>> > Hi Aaron, > >>> > > >>> > I'm still a little bit nervous about calling cho

Re: [ovs-dev] [PATCH] bridge: allow OVS to connect to Unix Domain Sockets outside its run directory

2016-06-08 Thread Ansis Atteka
On 8 June 2016 at 16:45, Ansis Atteka wrote: > > > On 8 June 2016 at 14:02, Ben Pfaff wrote: > >> On Thu, Jun 02, 2016 at 07:47:33PM -0700, Ansis Atteka wrote: >> > Before this patch OVS refused to connect to a local controller that >> > had its Unix Do

Re: [ovs-dev] [PATCH] bridge: allow OVS to connect to Unix Domain Sockets outside its run directory

2016-06-08 Thread Ansis Atteka
On 8 June 2016 at 14:02, Ben Pfaff wrote: > On Thu, Jun 02, 2016 at 07:47:33PM -0700, Ansis Atteka wrote: > > Before this patch OVS refused to connect to a local controller that > > had its Unix Domain Socket outside Open vSwitch run directory (e.g. > > outside

[ovs-dev] [PATCH] bridge: allow OVS to connect to Unix Domain Sockets outside its run directory

2016-06-02 Thread Ansis Atteka
Before this patch OVS refused to connect to a local controller that had its Unix Domain Socket outside Open vSwitch run directory (e.g. outside '/var/run/openvswitch/'). After this patch this restriction imposed by Open vSwitch itself is abandoned and OVS should be able to connect to controller's

Re: [ovs-dev] [PATCH v2 0/2] vhost-user: Add the ability to control ownership/permissions

2016-06-02 Thread Ansis Atteka
On 1 June 2016 at 12:51, Aaron Conole wrote: > Ansis Atteka writes: > > > On 20 May 2016 at 13:32, Aaron Conole wrote: > > > >> Currently, when using Open vSwitch with DPDK and qemu guests, the > >> recommended > >> method for joining the gu

Re: [ovs-dev] [PATCH v2 0/2] vhost-user: Add the ability to control ownership/permissions

2016-06-01 Thread Ansis Atteka
On 20 May 2016 at 13:32, Aaron Conole wrote: > Currently, when using Open vSwitch with DPDK and qemu guests, the > recommended > method for joining the guests is via the dpdkvhostuser interface. This > interface uses Unix Domain sockets to communicate. When these sockets are > created, they inher

Re: [ovs-dev] [libvirt] [PATCH v2 2/2] netdev-dpdk: Support user-defined socket attribs

2016-05-31 Thread Ansis Atteka
On 31 May 2016 at 10:59, Ansis Atteka wrote: > > > On 31 May 2016 at 09:36, Daniel P. Berrange wrote: > >> On Mon, May 30, 2016 at 01:27:46PM -0700, Ansis Atteka wrote: >> > On Mon, May 30, 2016 at 12:29 AM, Christian Ehrhardt >> > wrote: >> > &g

Re: [ovs-dev] [libvirt] [PATCH v2 2/2] netdev-dpdk: Support user-defined socket attribs

2016-05-31 Thread Ansis Atteka
On 31 May 2016 at 09:36, Daniel P. Berrange wrote: > On Mon, May 30, 2016 at 01:27:46PM -0700, Ansis Atteka wrote: > > On Mon, May 30, 2016 at 12:29 AM, Christian Ehrhardt > > wrote: > > > On Tue, May 24, 2016 at 4:10 PM, Aaron Conole > wrote: > > >

Re: [ovs-dev] [PATCH v2 2/2] netdev-dpdk: Support user-defined socket attribs

2016-05-30 Thread Ansis Atteka
On Mon, May 30, 2016 at 12:29 AM, Christian Ehrhardt wrote: > On Tue, May 24, 2016 at 4:10 PM, Aaron Conole wrote: > >> Daniele Di Proietto writes: >> >> > Hi Aaron, >> > >> > I'm still a little bit nervous about calling chown on a (partially) >> > user controlled file name. >> >> I agree, that

Re: [ovs-dev] [PATCH v4 1/2] ovn: Support 'dhcp_offer' action in ovn-controller

2016-05-16 Thread Ansis Atteka
On 6 May 2016 at 07:46, Numan Siddique wrote: > This patch adds a new OVN action 'dhcp_offer' to support native > DHCP in OVN. > > 'dhcp_offer' takes the DHCP options as input params. > Eg. dhcp_offer(offerip = 10.0.0.4, router = 10.0.0.1, >netmask = 255.255.255.0, lease_time = 360

Re: [ovs-dev] [PATCH] ofp-actions: Fix use-after-free in decode_NOTE.

2016-04-29 Thread Ansis Atteka
On 29 April 2016 at 09:53, William Tu wrote: > Looks good to me. > >> I had to stop and think a little bit about the ofpact_finish() >> function's API. It gives freedom to its caller to specify whatever it >> wants as second 'ofpact' argument. However, at the end of the day >> ofpact_finish() asse

Re: [ovs-dev] [PATCH] ofp-actions: Fix use-after-free in decode_NOTE.

2016-04-28 Thread Ansis Atteka
On 28 April 2016 at 14:13, Joe Stringer wrote: > When decoding the 'note' action, variable-length data could be pushed to > a buffer immediately prior to calling ofpact_finish_NOTE(). The > ofpbuf_put() could cause reallocation, in which case the finish call > could access freed memory. Fix the is

Re: [ovs-dev] [PATCH] ovs-save: Handle MTU changes correctly.

2016-04-11 Thread Ansis Atteka
On Mon, Apr 11, 2016 at 8:27 AM, Gurucharan Shetty wrote: > The following command on ubuntu 12.04 returns null: > expr "mtu 1500" : '.*mtu \([0-9]+\)' > > But the following works correctly: > expr "mtu 1500" : '.*mtu \([0-9]\+\)' > > I am not sure about the portability implications as there > seem

Re: [ovs-dev] fedora: include ovs-save file in the rpm package

2016-02-26 Thread Ansis Atteka
On 23 February 2016 at 13:15, Ben Pfaff wrote: > On Sat, Feb 13, 2016 at 01:56:01PM -0800, Ansis Atteka wrote: > > Otherwise, "ovs-ctl force-reload-kmod ..." command fails with: > > > > Detected internal interfaces: br-int p1[ OK ] > >

Re: [ovs-dev] [PATCH] rhel: provide our own SELinux custom policy package

2016-02-26 Thread Ansis Atteka
On 22 February 2016 at 20:18, Flavio Leitner wrote: > On Mon, 15 Feb 2016 17:40:25 -0800 > Ansis Atteka wrote: > > > From: Ansis Atteka > > > > CentOS, RHEL and Fedora distributions ship with their own Open vSwitch > > SELinux policy that is too strict

Re: [ovs-dev] [PATCH] rhel: provide our own SELinux custom policy package

2016-02-16 Thread Ansis Atteka
On 16 February 2016 at 07:33, Aaron Conole wrote: > Thanks for this work, Ansis! > > Ansis Atteka writes: > > > From: Ansis Atteka > > > > CentOS, RHEL and Fedora distributions ship with their own Open vSwitch > > SELinux policy that is too strict and preven

[ovs-dev] [PATCH] rhel: provide our own SELinux custom policy package

2016-02-15 Thread Ansis Atteka
From: Ansis Atteka CentOS, RHEL and Fedora distributions ship with their own Open vSwitch SELinux policy that is too strict and prevents Open vSwitch to work normally out of the box. As a solution, this patch introduces a new package which will "loosen" up "openvswitch_t" SE

[ovs-dev] [PATCH] fedora: include ovs-save file in the rpm package

2016-02-13 Thread Ansis Atteka
Otherwise, "ovs-ctl force-reload-kmod ..." command fails with: Detected internal interfaces: br-int p1[ OK ] Saving flows /usr/share/openvswitch/scripts/ovs-ctl: line 267: /usr/share/openvswitch/scripts/ovs-save: No such file or directory

Re: [ovs-dev] [RFC 3/3] netdev-dpdk: Unlink vhost user socket before creation.

2016-02-05 Thread Ansis Atteka
On 5 February 2016 at 00:53, Aaron Conole wrote: > Hi Ansis, > > Ansis Atteka writes: > > On 2 February 2016 at 17:56, Daniele Di Proietto > > > wrote: > > > >> If ovs-vswitchd crashes, it will not be able to recreate the same > >> vhost user p

Re: [ovs-dev] [ovs-discuss] Somebody making --user and dpdk compatible again?

2016-02-04 Thread Ansis Atteka
On 2 February 2016 at 23:33, Serge Hallyn wrote: > Quoting Ansis Atteka (ansisatt...@gmail.com): > > On 29 January 2016 at 12:10, Serge Hallyn > wrote: > > > Sorry I've not really had anything to add here, I'm just not familiar > > > enough with the ovs c

Re: [ovs-dev] [RFC 3/3] netdev-dpdk: Unlink vhost user socket before creation.

2016-02-03 Thread Ansis Atteka
On 2 February 2016 at 17:56, Daniele Di Proietto wrote: > If ovs-vswitchd crashes, it will not be able to recreate the same > vhost user ports, since the socket will still be in the file system. > > This commit introduces an unlink() before creation to remove an eventual > preexisting vhost user

Re: [ovs-dev] [ovs-discuss] Somebody making --user and dpdk compatible again?

2016-02-01 Thread Ansis Atteka
On 29 January 2016 at 12:10, Serge Hallyn wrote: > Quoting Christian Ehrhardt (christian.ehrha...@canonical.com): > > On Wed, Jan 27, 2016 at 8:26 PM, Ansis Atteka > wrote: > > > > > > > > > > > On 27 January 2016 at 02:30, Christian Ehrhardt &l

Re: [ovs-dev] [PATCH 5/5] netdev-dpdk: Support user cfg vhost socket perms

2016-01-29 Thread Ansis Atteka
On Fri, Dec 18, 2015 at 10:27 AM, Aaron Conole wrote: > The current DPDK vhost socket user and group permissions are derived > during creation from the DPDK library. This patch adds an action, post > socket creation, to change the socket permissions and ownership to > support multi-user systems. >

Re: [ovs-dev] [PATCH] rhel: provide our own SELinux custom policy package

2016-01-28 Thread Ansis Atteka
On 27 January 2016 at 12:42, Flavio Leitner wrote: > On Tue, 19 Jan 2016 22:50:26 -0800 > Ansis Atteka wrote: > > > CentOS, RHEL and Fedora distributions ship with their own Open vSwitch > > SELinux policy that is too strict and prevents Open vSwitch to work > &

Re: [ovs-dev] [ovs-discuss] Somebody making --user and dpdk compatible again?

2016-01-28 Thread Ansis Atteka
On 27 January 2016 at 02:30, Christian Ehrhardt < christian.ehrha...@canonical.com> wrote: > > On Wed, Jan 27, 2016 at 9:29 AM, Ansis Atteka > wrote: > >> >> >> On 26 January 2016 at 11:07, Christian Ehrhardt < >> christian.ehrha...@canonical.com>

Re: [ovs-dev] [ovs-discuss] Somebody making --user and dpdk compatible again?

2016-01-28 Thread Ansis Atteka
E connect(5, AF=1 > "/var/run/openvswitch/vhost-user-1", 35): Permission denied > $ sudo chown root:kvm /var/run/openvswitch/vhost-user-1 > $ sudo chmod g+w /var/run/openvswitch/vhost-user-1 > srwxrwxr-x 1 root kvm 0 Jan 26 10:47 vhost-user-1= > $ sudo -u libvirt-qemu s

Re: [ovs-dev] [ovs-discuss] Somebody making --user and dpdk compatible again?

2016-01-26 Thread Ansis Atteka
On 26 January 2016 at 11:06, Aaron Conole wrote: > I should be on the discuss mailing list. Let me just state a big _YES_ I > am working on this problem from multiple facets. > Ansis Atteka writes: > > Hi, > > > > > > In fact I think we should remove

Re: [ovs-dev] [ovs-discuss] Somebody making --user and dpdk compatible again?

2016-01-26 Thread Ansis Atteka
Hi, In fact I think we should remove any Discretionary Access Control (--user) and ?implement proper Mandatory Access Control (SELinux and Apparmor) support. Unless anyone can bring up a good case to keep and/or extend DAC feature in OVS. The link you posted seems to mention Apparmor as the r

Re: [ovs-dev] [PATCHv2 branch2-4] rhel: provide our own SELinux custom policy package

2016-01-24 Thread Ansis Atteka
On Thu, Jan 21, 2016 at 2:09 PM, Russell Bryant wrote: > On 01/20/2016 05:59 PM, Ansis Atteka wrote: >> CentOS, RHEL and Fedora distributions ship with their own Open vSwitch >> SELinux policy that is too strict and prevents Open vSwitch to work >> normally out of the box

Re: [ovs-dev] [PATCHv2 branch2-4] rhel: provide our own SELinux custom policy package

2016-01-20 Thread Ansis Atteka
On 20 January 2016 at 16:13, Ansis Atteka wrote: > > > On 20 January 2016 at 15:36, Ben Pfaff wrote: > >> On Wed, Jan 20, 2016 at 03:34:49PM -0800, Ben Pfaff wrote: >> > On Wed, Jan 20, 2016 at 02:59:03PM -0800, Ansis Atteka wrote: >> > > CentOS, RHEL a

Re: [ovs-dev] [PATCHv2 branch2-4] rhel: provide our own SELinux custom policy package

2016-01-20 Thread Ansis Atteka
On 20 January 2016 at 15:36, Ben Pfaff wrote: > On Wed, Jan 20, 2016 at 03:34:49PM -0800, Ben Pfaff wrote: > > On Wed, Jan 20, 2016 at 02:59:03PM -0800, Ansis Atteka wrote: > > > CentOS, RHEL and Fedora distributions ship with their own Open vSwitch > > > SELinux po

[ovs-dev] [PATCHv2 branch2-4] rhel: provide our own SELinux custom policy package

2016-01-20 Thread Ansis Atteka
an package for Ubuntu, because it works on default Ubuntu installation. Signed-Off-By: Ansis Atteka --- INSTALL.SELinux.md | 133 +++ Makefile.am | 2 + README.md| 2 + rhel/.gitignore

[ovs-dev] [PATCH] rhel: provide our own SELinux custom policy package

2016-01-19 Thread Ansis Atteka
enied I did not test all Open vSwitch features so there still could be some OVS configuration that would get "Permission denied" errors. Since, Open vSwitch daemons on Ubuntu 15.10 by default run under "unconfined" SELinux domain, then there is no need to create a similar debia

Re: [ovs-dev] [PATCH] ovs-vsctl: add caller information by appending comment

2016-01-04 Thread Ansis Atteka
On 4 January 2016 at 10:18, Ben Pfaff wrote: > On Mon, Jan 04, 2016 at 09:36:34AM -0800, Ansis Atteka wrote: > > On Wed, Dec 23, 2015 at 9:41 AM, Ben Pfaff wrote: > > > I think maybe you misinterpreted what I meant when I said "every > > > caller". When I s

Re: [ovs-dev] [PATCH] ovs-vsctl: add caller information by appending comment

2016-01-04 Thread Ansis Atteka
On Wed, Dec 23, 2015 at 9:41 AM, Ben Pfaff wrote: > I think maybe you misinterpreted what I meant when I said "every > caller". When I said that, I meant "every program that invokes > ovs-vsctl", not the entire call stack. William came to me to discuss this approach, If we both understood it cor

Re: [ovs-dev] [PATCH] debian: Remove old PKI directory migration code

2015-12-23 Thread Ansis Atteka
On 22 December 2015 at 22:11, Ben Pfaff wrote: > On Tue, Dec 22, 2015 at 06:41:35PM -0800, Ansis Atteka wrote: > > Open vSwitch 1.3 and older was creating certificates and private > > key in /usr/share/openvswitch/pki. However, since PKI directory > > is mutable, then this

[ovs-dev] [PATCH] debian: Remove old PKI directory migration code

2015-12-22 Thread Ansis Atteka
would be, if someone would be upgrading from Open vSwitch 1.3 or older version directly to 2.5 without using any intermediary upgrade releases. Signed-Off-By: Ansis Atteka --- debian/openvswitch-pki.postinst| 8 debian/openvswitch-pki.postrm | 5 - debian

Re: [ovs-dev] [rhel --user v2 7/7] rhel: run daemons as the ovs user

2015-12-21 Thread Ansis Atteka
On 21 December 2015 at 15:46, Ansis Atteka wrote: > > > On 27 November 2015 at 05:35, Flavio Leitner wrote: > >> On Fri, Nov 20, 2015 at 03:33:20AM -0800, Andy Zhou wrote: >> > Make RHEL systemd distributions start OVS and OVN daemons under user >> > o

Re: [ovs-dev] [rhel --user v2 7/7] rhel: run daemons as the ovs user

2015-12-21 Thread Ansis Atteka
On 27 November 2015 at 05:35, Flavio Leitner wrote: > On Fri, Nov 20, 2015 at 03:33:20AM -0800, Andy Zhou wrote: > > Make RHEL systemd distributions start OVS and OVN daemons under user > > ovs. The 'ovs' user and group will be created at the openvswitch RPM > > installtion time. > > > Hi Flavio.

Re: [ovs-dev] [PATCH 4/4] ovn: Process dhcp packet-ins and respond through packet-outs

2015-11-15 Thread Ansis Atteka
On 23 October 2015 at 02:09, Babu Shanmugam wrote: > The DHCP packets can be of two types > (1) DHCP Discover > (2) DHCP Request > > For (1), the controller should respond with DHCP offer and for (2), > either DHCP Ack or DHCP Nack should be sent. In this patch, DHCP Nack > is never sent. In case

Re: [ovs-dev] [additional --user changes v4 2/3] vlog: change log file owner when switching user

2015-11-11 Thread Ansis Atteka
> +VLOG_FATAL("Failed to change log file ownership."); > I would print errno value here and the file name you are actually trying to change the ownership for. It would simply provide a hint to the users on what was actually wrong, if it failed. VLOG_FATAL("Failed to change %s ownership: %s", log_file_name, ovs_strerror(errno)); And early return from function if log_file_name is NULL to make code look better. +} > +} > + > Otherwise, Acked-by: Ansis Atteka Thanks for working on this, Andy. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [additional --user changes v2 2/3] vlog: change log file owner when switching user

2015-11-10 Thread Ansis Atteka
On Mon, Nov 9, 2015 at 12:43 PM, Andy Zhou wrote: > vlog log file can be created when parsing --log-file option, before > switching user, in case the --user option is also specified. While this > does not directly cause errors for the running daemons, it can > leave the log files on the disk looks

Re: [ovs-dev] [additional --user changes v2 3/3] lib: allow group access to Unix domain sockets

2015-11-10 Thread Ansis Atteka
On Mon, Nov 9, 2015 at 12:43 PM, Andy Zhou wrote: > By default, Unix domain sockets are created with file system permission > mode of 0700. This means that only processes that runs under the same > user can access this socket. > > For OVS, it may be more convenient to control access at the group >

Re: [ovs-dev] [additional --user changes v2 1/3] lib: simplify daemon_become_new_user__()

2015-11-09 Thread Ansis Atteka
On 9 November 2015 at 12:43, Andy Zhou wrote: > A global variable 'switch_user' was used to make sure > we switch process's current user only once. This logic is now > simplified by testing for uid directly; if switch process has > taken place, the current uid will be not be zero. > > Signed-off-

Re: [ovs-dev] [PATCH] lib: allow group access to Unix domain sockets

2015-11-06 Thread Ansis Atteka
On 10 October 2015 at 01:10, Andy Zhou wrote: > By default, Unix domain sockets are created with file system permission > mode of 0700. Only the process of the belongs to the same user can > How about: s/Only the process of the belongs to the same user/This means that only processes that run unde

Re: [ovs-dev] [PATCH 2/2] vlog: change log file owner when switching user

2015-11-06 Thread Ansis Atteka
On 10 October 2015 at 01:07, Andy Zhou wrote: > vlog log file can be created when parsing --log-file option, before switch user, in case the --user option is also specified. This > this does not read fluently. How about: s/switch user/switching user? does not directly causing errors for the r

Re: [ovs-dev] [PATCH 1/2] lib: simplify daemon_become_new_user__()

2015-11-04 Thread Ansis Atteka
On Sat, Oct 10, 2015 at 1:07 AM, Andy Zhou wrote: > Global variable 'switch_user' is no longer needed to make sure > user switch only happens once per process. Testing for uid directly > simplifies the logic; if switch process has taken place, then the > currnet uid can not be zero. s/currnet/curr

Re: [ovs-dev] [PATCHv2] tests: add documentation for OVS_WAIT_UNTIL and OVS_WAIT_WHILE macros

2015-11-03 Thread Ansis Atteka
On Tue, Nov 3, 2015 at 4:22 PM, Ben Pfaff wrote: > On Tue, Nov 03, 2015 at 04:19:16PM -0800, Ansis Atteka wrote: >> It is very easy to misuse these macros, because when the COMMAND >> returns exit code "0" it is actually considered as if condition >> evaluated to

[ovs-dev] [PATCHv2] tests: add documentation for OVS_WAIT_UNTIL and OVS_WAIT_WHILE macros

2015-11-03 Thread Ansis Atteka
It is very easy to misuse these macros, because when the COMMAND returns exit code "0" it is actually considered as if condition evaluated to "true" and not "false" as some might think. This patch ensures that this is clearly reflected in documentation. Signed-of

Re: [ovs-dev] [PATCH] tests: add documentation for OVS_WAIT_UNTIL and OVS_WAIT_WHILE macros

2015-11-03 Thread Ansis Atteka
On Tue, Nov 3, 2015 at 4:07 PM, Ben Pfaff wrote: > On Tue, Nov 03, 2015 at 04:04:33PM -0800, Ansis Atteka wrote: >> It is very easy to misuse these macros, because when the COMMAND >> returns exit code "0" it is actually considered as if condition >> evaluated to

[ovs-dev] [PATCH] tests: add documentation for OVS_WAIT_UNTIL and OVS_WAIT_WHILE macros

2015-11-03 Thread Ansis Atteka
It is very easy to misuse these macros, because when the COMMAND returns exit code "0" it is actually considered as if condition evaluated to "true" and not "false" as some might think. This patch ensures that this is clearly reflected in documentation. Signed-of

Re: [ovs-dev] [PATCH ] debian: place kernel module to satisfy depmod search.

2015-11-02 Thread Ansis Atteka
On 2 November 2015 at 13:08, Saurabh Mohan wrote: > On 10/16/2015 01:55 PM, Saurabh Mohan wrote: > >> On 10/16/2015 11:32 AM, Ansis Atteka wrote: >> >>> On Thu, Oct 15, 2015 at 4:52 PM, Saurabh Mohan >>> wrote: >>> >>>> On 10/15/2015 01:5

Re: [ovs-dev] [PATCH ] debian: place kernel module to satisfy depmod search.

2015-10-16 Thread Ansis Atteka
On Thu, Oct 15, 2015 at 4:52 PM, Saurabh Mohan wrote: > On 10/15/2015 01:55 PM, Ansis Atteka wrote: >> >> On Wed, Oct 14, 2015 at 5:33 PM, Saurabh Mohan >> wrote: >>> >>> On 10/14/2015 04:58 PM, Ansis Atteka wrote: >>>> >>

Re: [ovs-dev] [PATCH ] debian: place kernel module to satisfy depmod search.

2015-10-15 Thread Ansis Atteka
On Wed, Oct 14, 2015 at 5:33 PM, Saurabh Mohan wrote: > On 10/14/2015 04:58 PM, Ansis Atteka wrote: >> >> On Wed, Oct 14, 2015 at 4:08 PM, Ben Pfaff wrote: >>> >>> On Wed, Oct 14, 2015 at 03:28:24PM -0700, Joe Stringer wrote: >>>> >&

Re: [ovs-dev] [PATCH ] debian: place kernel module to satisfy depmod search.

2015-10-14 Thread Ansis Atteka
>> We recently changed it from kernel/ to kernel/updates (prior to v2.4 >> release), and the commit message suggests it was previously >> nondeterministic: >> >> commit b519432205c36bda5c7331f77a49eaaa919967ad >> Author: Ansis Atteka >> Date: Tue May

Re: [ovs-dev] [Debian-non-root 4/4] Debian: start daemons as ovs(non-root) user

2015-10-08 Thread Ansis Atteka
On Wed, Oct 7, 2015 at 8:20 PM, Andy Zhou wrote: > On Wed, Oct 7, 2015 at 6:49 PM, Ansis Atteka wrote: >> On Mon, Oct 5, 2015 at 6:38 PM, Andy Zhou wrote: >> >> Thanks Andy for doing this! I will have another more careful look at >> this patch tomorrow, because I thi

Re: [ovs-dev] [PATCH 1/3] Fedora: update rpm build instructions after trying them with Fedora 22

2015-10-08 Thread Ansis Atteka
On Tue, Oct 6, 2015 at 3:22 PM, Russell Bryant wrote: > On 10/06/2015 08:20 PM, Flavio Leitner wrote: >> On Sun, Oct 04, 2015 at 03:20:08PM -0700, Ansis Atteka wrote: >>> Mention: >>> 1. that these instructions have been tested with Fedora 22. >>> 2. depen

Re: [ovs-dev] [Debian-non-root 4/4] Debian: start daemons as ovs(non-root) user

2015-10-07 Thread Ansis Atteka
On Mon, Oct 5, 2015 at 6:38 PM, Andy Zhou wrote: Thanks Andy for doing this! I will have another more careful look at this patch tomorrow, because I think I somehow managed to get into a state where after installing debian packages /etc/openvswitch still belonged to root. > Changes to Debian pa

Re: [ovs-dev] [Debian-non-root 3/4] ovs-ctl: add --no-run-as-root option

2015-10-06 Thread Ansis Atteka
On 5 October 2015 at 18:38, Andy Zhou wrote: > Add option to ovs-ctl script to specify whether to start the daemons as > root user or ovs user. The default is 'run-as-root', which preserve > s/preserve/preserves > the scripts' current behavior. > s/script/script's > > Signed-off-by: Andy Zhou

Re: [ovs-dev] [Debian-non-root 2/4] ovs-ctl: Remove hard coded root user and group

2015-10-06 Thread Ansis Atteka
On 5 October 2015 at 18:38, Andy Zhou wrote: > Replace hard coded root user and group with OVS_USER and OVS_GROUP. > > Signed-off-by: Andy Zhou > --- > utilities/ovs-ctl.in | 3 +++ > utilities/ovs-lib.in | 6 +++--- > 2 files changed, 6 insertions(+), 3 deletions(-) > > diff --git a/utilities/

Re: [ovs-dev] [Debian-non-root 1/4] Debian: require libcap-ng library for building packages

2015-10-06 Thread Ansis Atteka
On Tue, Oct 6, 2015 at 10:32 AM, Ansis Atteka wrote: > On Mon, Oct 5, 2015 at 6:38 PM, Andy Zhou wrote: >> libcap-ng is going to be required to build Debian packages. Daemons >> will run as the ovs user and group, instead of root, to improve >> security. >> >>

Re: [ovs-dev] [Debian-non-root 1/4] Debian: require libcap-ng library for building packages

2015-10-06 Thread Ansis Atteka
On Mon, Oct 5, 2015 at 6:38 PM, Andy Zhou wrote: > libcap-ng is going to be required to build Debian packages. Daemons > will run as the ovs user and group, instead of root, to improve > security. > > Signed-off-by: Andy Zhou I would also update ./debian/control file corresponding sections. Basi

Re: [ovs-dev] [PATCH 2/3] RHEL: update rpm build instructions after trying them with CentOS 7

2015-10-05 Thread Ansis Atteka
On Sun, Oct 4, 2015 at 6:19 PM, Kyle Mestery wrote: > On Sun, Oct 4, 2015 at 5:20 PM, Ansis Atteka wrote: >> >> Mention: >> 1. that these instructions have been tested with CentOS 7 (which is >>almost identical distribution to RHEL 7). >> 2. directory where

Re: [ovs-dev] [PATCH 1/3] Fedora: update rpm build instructions after trying them with Fedora 22

2015-10-05 Thread Ansis Atteka
On Sun, Oct 4, 2015 at 6:19 PM, Kyle Mestery wrote: > On Sun, Oct 4, 2015 at 5:20 PM, Ansis Atteka wrote: >> >> Mention: >> 1. that these instructions have been tested with Fedora 22. >> 2. dependencies that need to be installed on Fedora 22. Otherwise, >>rp

Re: [ovs-dev] [PATCH] rhel: Add optional BuildRequires to libcap-ng

2015-10-04 Thread Ansis Atteka
On Fri, Oct 2, 2015 at 12:52 PM, Andy Zhou wrote: > On Fri, Oct 2, 2015 at 6:06 AM, Flavio Leitner wrote: >> On Thu, Oct 01, 2015 at 03:47:12PM -0700, Andy Zhou wrote: >>> > Our default systemd unit files don't make use of the --user option that >>> > requires this library, but conceivably someon

[ovs-dev] [PATCH 3/3] RHEL: create /etc/openvswitch directory

2015-10-04 Thread Ansis Atteka
default on CentOS by the way). Signed-off-by: Ansis Atteka --- 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

[ovs-dev] [PATCH 1/3] Fedora: update rpm build instructions after trying them with Fedora 22

2015-10-04 Thread Ansis Atteka
dy. 4. directory where rpm packages that were just built can be found. 5. mention SElinux implications that could prevent OVS from starting, if not using designated OVS directories. Signed-off-by: Ansis Atteka --- INSTALL.Fedora.md | 33 +++-- 1 file changed, 27 inser

[ovs-dev] [PATCH 2/3] RHEL: update rpm build instructions after trying them with CentOS 7

2015-10-04 Thread Ansis Atteka
directories. Signed-off-by: Ansis Atteka --- INSTALL.RHEL.md | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/INSTALL.RHEL.md b/INSTALL.RHEL.md index 8746bc6..9aefc09 100644 --- a/INSTALL.RHEL.md +++ b/INSTALL.RHEL.md @@ -5,7 +5,7 @@ This document describes how to build and

Re: [ovs-dev] [PATCH] doc: document feature deprecation and removal process

2015-09-29 Thread Ansis Atteka
Thanks for review, I pushed this after addressing typos. On Mon, Sep 21, 2015 at 8:47 AM, Flavio Leitner wrote: > On Sat, Sep 19, 2015 at 01:22:39PM -0700, Ansis Atteka wrote: >> It seems that we haven't defined clear process on how features should >> be removed from OVS. Th

Re: [ovs-dev] [PATCH] vlog: deprecate --syslog-target argument

2015-09-29 Thread Ansis Atteka
Thanks for review, I pushed this. On Tue, Sep 29, 2015 at 4:49 PM, Ben Pfaff wrote: > On Sat, Sep 19, 2015 at 02:14:45PM -0700, Ansis Atteka wrote: >> On 19 September 2015 at 09:37, Ben Pfaff wrote: >> >> > On Fri, Sep 18, 2015 at 04:09:48PM -0700, Ansis Atteka wrote

Re: [ovs-dev] [PATCH] doc: document feature deprecation and removal process

2015-09-28 Thread Ansis Atteka
On Tue, Sep 22, 2015 at 4:21 AM, Thadeu Lima de Souza Cascardo wrote: > On Sat, Sep 19, 2015 at 01:22:39PM -0700, Ansis Atteka wrote: >> It seems that we haven't defined clear process on how features should >> be removed from OVS. This patch attempts to document this process.

Re: [ovs-dev] [v3 04/10] lib/damon: add --user option

2015-09-19 Thread Ansis Atteka
On Mon, Sep 14, 2015 at 3:54 PM, Andy Zhou wrote: > Common implementation for daemons to support the --user option which > accepts "user:group" string as input. Performs sanity check on the > input, and store the converted uid and gid. > > daemon_become_new_user() needs to be called to make the ac

  1   2   3   4   5   >