neutron/neutron/privileged/agent
Rodolfo Alonso Hernandez 0f02f97f25 Implement namespace creation method
Since [1], Pyroute forks the namespace creation to avoid calling
destructive routine "libc.unshare(CLONE_NEWNET)" from the main
process. This implementation uses sockets between both processes
to return any error feedback sent from the child process.

This patch implements the same fork without any communication. If
the child process raises an exception other than "OSError(EEXIST)",
the child process returns 1 that is read by the the main process,
that raises a "RuntimeError" exception.

Related-Bug: #1917487

[1]81db2c98a1

Change-Id: I0294586335a71d0757803843f675124bfb450967
(cherry picked from commit eb56747851)
2021-07-23 08:01:37 +00:00
..
linux Implement namespace creation method 2021-07-23 08:01:37 +00:00
ovsdb Remove "ovs-vsctl" support from rootwrap 2020-11-23 16:23:36 +00:00
__init__.py Adopt privsep and read routing table with pyroute2 2016-12-21 17:52:58 +02:00