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

Effective net_raw capability management #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Oliviers-OSS
Copy link

Hello,
This version is able to manage the cap_net_raw capability, to set it effective to create the raw socket then clear it.
This allows to set only permitted cap_net_raw capability without set it effective all the time the program is running ( setcap cap_net_raw=p instead of setcap cap_net_raw=ep).
Best regards,
Olivier

Olivier added 2 commits March 3, 2019 08:47
This allows this to run as non-root again, without this, oping will
have dropped privileges before trying to ping, which then fails to
open the necessary raw sockets.

Fixes: octo#34

Patch from tfheen@a88c51f?diff=split
Set (enable) to create the raw socket then cleared.
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