News for hackers. Stuff that matters.
Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by hobarrera on Tuesday May 02, 2017 @09:15PM (#14252265)
Apparently, the whole things needs to be run as root, since it's all one huge blob.

Hopefully, this'll eventually get separated into a daemon which does all the superuser bits and exposes a single API for a client GUI to consume.

Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by evilsocket on Wednesday May 03, 2017 @09:19AM (#14255375)
OpenSnitch author here ... that's exactly the direction the project is going, C++ daemon running as root and low privileged UI in Python or whatever. The current implementation is more of a PoC/test to see the whole logic working before starting the real thing :)
Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by hobarrera on Wednesday May 03, 2017 @10:36AM (#14255992)
I guessed as much, since I noticed the project is relatively young.

Kudos on what's been done so far! ^_^

Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by peterwwillis on Wednesday May 03, 2017 @09:49AM (#14255574)
Why C++? The backend only has to read ftrace events, and Python should be fast enough for that.... And why root? Can't you just create a dbus connection, open your fd to the ftrace pipe, and then drop privs to a nonroot user?
Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by evilsocket on Wednesday May 03, 2017 @09:51AM (#14255585)
OpenSnitch is not only about ftrace, check the NFQUEUE handling, moving to native will improve performances and stability. Also, it requires root because that's the only way it can install the iptable rules it needs in order to function properly.
Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by peterwwillis on Wednesday May 03, 2017 @11:08AM (#14256290)
The iptables rules are static though, aren't they? And they have bypass enabled, so you should be able to load them once at system boot time and leave them there to default to allow.

As far as nfqueue, I googled around but I wasn't able to find out what perms you need in order to communicate with netlink. I assumed you could open an fd and drop perms but it looks like it might not allow that. I agree that eventually you'd need a pretty robust multithreaded app to handle large packet flows without adding too much latency... it seems like quite a big burden just to authorize specific applications to make specific network connections.

Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by evilsocket on Wednesday May 03, 2017 @11:30AM (#14256546)
as long as i know, you definitely need root to communicate with netlink .... i don't think there're gonna be large packet flows, only first connection packets tnx to conntrack, it's doable :)
Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by arfp on Wednesday May 03, 2017 @07:18AM (#14254697)
I've been working on a program that does this based on lpfw. It's not ready for release yet but there's a preview at https://fireprompt.com. I'm hoping it's not eclipsed by OpenSnitch!
Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by rurban on Wednesday May 03, 2017 @05:23AM (#14254146)
Yes, we can only hope. For the time being we should advise not using this as-is.
Re:OpenSnitch – A Linux clone of the Little Snitch applicati... by wmccullough on Wednesday May 03, 2017 @09:39AM (#14255514)
Or perhaps, don't let perfect be the enemy of good?