Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capabilities support #229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Capabilities support #229

wants to merge 1 commit into from

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