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

Clarify that CAP_NET_ADMIN is required #328

Merged
merged 1 commit into from Feb 18, 2023

Conversation

zachwalton
Copy link
Contributor

From the current wording of the README, I thought boringtun could run without CAP_NET_ADMIN- but it can't at all, failing with:

2023-01-04T23:37:51.496375Z ERROR boringtun_cli: Failed to initialize tunnel, error: IOCtl("Operation not permitted")

It looks like this originates from ioctl(fd, TUNSETIFF as _, &ifr), which is a privileged operation.

I think I'm not the only one to make this mistake (#117), so this clarifies that CAP_NET_ADMIN is required.

From the current wording of the README, I thought boringtun could run without `CAP_NET_ADMIN`- but it can't at all, failing with:

```
2023-01-04T23:37:51.496375Z ERROR boringtun_cli: Failed to initialize tunnel, error: IOCtl("Operation not permitted")
```

It looks like this originates from `ioctl(fd, TUNSETIFF as _, &ifr)`, which is a privileged operation. 

I think I'm not the only one to make this mistake (cloudflare#117), so this clarifies that `CAP_NET_ADMIN` is required.
@jeff-hiner jeff-hiner merged commit be08af9 into cloudflare:master Feb 18, 2023
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.

None yet

2 participants