Skip to content

Conversation

@dlundquist
Copy link
Owner

@dlundquist dlundquist commented Feb 18, 2017

Use capabilities rather than root privileges. This came out of the transparent proxy work (#179), but may subsume the binder module as well.

  • Use CAP_NET_RAW so we can drop root privileges when in transparent mode
  • If capabilities are available use CAP_NET_BIND_SERVICE instead of binder module
  • Leave binder module as fallback for non-Linux operating systems

Use POSIX capabilities to retain network capabilities and drop all other
permissions. This allows IP_TRANSPARENT as an otherwise unprivileged
user.

Further work needed to align this with the binder module, since the
capabilities module makes the binder module unnecessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant