| 1 |
--- |
| 2 |
other: |
| 3 |
- | |
| 4 |
As defined in `Migrate from oslo.rootwrap to oslo.privsep |
| 5 |
<https://opendev.org/openstack/governance/src/branch/master/goals/selected/wallaby/migrate-to-privsep.rst>`_, |
| 6 |
all OpenStack proyects should migrate from oslo.rootwrap to oslo.privsep |
| 7 |
because "oslo.privsep offers a superior security model, faster and more |
| 8 |
secure". |
| 9 |
This migration will end with the deprecation and removal of oslo.rootwrap |
| 10 |
from Neutron. To ensure the quality of the Neutron code, this migration |
| 11 |
will be done sequentially in several patches, checking none of them breaks |
| 12 |
the current functionality. |
| 13 |
In order to easily migrate to execute all external commands inside a |
| 14 |
privsep context, a new input variable "privsep_exec", that defaults to |
| 15 |
"False", is added to ``neutron.agent.linux.utils.execute``. That will |
| 16 |
divert the code to a privsep decorated executor. |
| 17 |
Once the migration finishes, this new input parameter will be removed. |