kuryr/kuryr
Andrew Bonney 0af5226618 Remove run_as_root which fails without root_helper
It appears that this library is typically run as the root user
which shouldn't require 'run_as_root'. When running as an
unprivileged user the required permissions can be granted by
specifying 'AmbientCapabilities = CAP_NET_ADMIN' in the service,
rather than 'CapabilityBoundingSet'.

An alternative approach would be to specify a 'root_helper' or to
switch to oslo.privsep, but these don't fully solve the problem
as the 'pyroute2' library also requires 'CAP_NET_ADMIN'.

Closes-Bug: #1852105
Change-Id: I9d0942f1cfc06cc3a7585683a030516096297767
(cherry picked from commit cdb9fe351d)
2020-12-09 15:50:01 +00:00
..
cmd Fix pep8 and lower-constraints gates 2020-09-13 03:36:59 +00:00
lib Remove run_as_root which fails without root_helper 2020-12-09 15:50:01 +00:00
tests Remove run_as_root which fails without root_helper 2020-12-09 15:50:01 +00:00
__init__.py fix python packaging 2016-08-18 03:47:38 +02:00