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

feat(daemon): add OpenRC script #900

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

mjholub
Copy link
Contributor

@mjholub mjholub commented Apr 2, 2023

this PR adds a very basic script that would allow to get opensnitchd running under OpenRC init system. I've managed to get it to "work" i.e. not to crash, under Alpine 3.17 with Linux6.2.8-0-edge x86_64, but I keep getting this error:

Error creating queue #0: Error binding to queue: operation not permitted

I've set it to run using proc instead of bpf, because I have a hardened kernel. I can try giving it a test run in a VM without bpf hardening (I assume docker won't do in this case...).
After this is merged and this issue resolved (I'll try to tackle this by myself, but any help is appreciated), I'd like to then proceed to package the application's components into an APKBUILD, so that it can be easily installed on Alpine.

@gustavo-iniguez-goya gustavo-iniguez-goya merged commit 762503a into evilsocket:master Apr 8, 2023
@gustavo-iniguez-goya
Copy link
Collaborator

thank you @154pinkchairs ! sorry for the delay, I'm a bit offline lately.

@gustavo-iniguez-goya
Copy link
Collaborator

Error creating queue #0: Error binding to queue: operation not permitted

see if you have NFQUEUE support in your kernel, and in general all these options: #774

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