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

fix(repeater): add cap_net_raw+ep capabilities for node in Docker image #560

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

maksadbek
Copy link
Collaborator

running traceroute requires root access as it creates raw sockets.
Since we use non-root user in Docker image, we need to allow the
node to create raw sockets and listen of ICMP error packets.

for that use the setcap command which comes in libcap package:
setcap 'cap_net_raw+ep' $(which node)

running traceroute requires root access as it
creates raw sockets. Since we use non-root user
in Docker image, we need to allow the node to
create raw sockets and listen of ICMP error packets.

for that use the setcap command which comes in libcap
package:
    setcap 'cap_net_raw+ep' $(which node)
@maksadbek maksadbek self-assigned this Jul 11, 2024
Dockerfile Outdated Show resolved Hide resolved
@derevnjuk derevnjuk added the Type: bug Something isn't working. label Jul 11, 2024
Co-authored-by: Artem Derevnjuk <artem.derevnjuk@brightsec.com>
@derevnjuk derevnjuk merged commit 822f750 into next Jul 11, 2024
6 checks passed
@derevnjuk derevnjuk deleted the fix-repeater-traceroute-capability-issue branch July 11, 2024 14:22
derevnjuk added a commit that referenced this pull request Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants