Use iptables trough iptc, enables rootless operation #82
+83
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reviving my PR #41 and
polishing it up a bit for easier usage.
The wrapper script makes running without root as easy as
sudo opensnitch
and that will check the SUDO_USER environment variable by default or the argument--user
Why this is needed:
I was working on getting D-bus based IPC working and wanted to do my dev work using the D-Bus Session Bus (the one running in my desktop session).
Running something in my users session bus is very tricky from the root account and not something I feel comfortable expecting from users even at this point.
Using the System Bus is also out of the question for now since it needs to be provided by a .service file on systemd based distros (which is great for us since it solves the issue of some malware impersonating opensnitch).
I want us to transition to using the System Bus in the future but Session Bus is easier for now.