Commit graph

288 commits

Author SHA1 Message Date
evilsocket
751a924bc0
misc: small fix or general refactoring i did not bother commenting 2018-04-05 12:48:23 +02:00
evilsocket
2bda290899
python ui server 2018-04-05 12:01:33 +02:00
evilsocket
a17b4c689c
started prototyping gtk ui 2018-04-03 20:00:46 +02:00
evilsocket
540335056b
misc: small fix or general refactoring i did not bother commenting 2018-04-03 14:51:58 +02:00
evilsocket
275abb40bb
misc: small fix or general refactoring i did not bother commenting 2018-04-03 14:04:26 +02:00
evilsocket
08da06acb7
ui service to test and benchmark gRPC IPC 2018-04-02 19:10:42 +02:00
evilsocket
b5b4a56a45
added ui ping/pong 2018-04-02 18:26:04 +02:00
evilsocket
36c9b515f1
misc: small fix or general refactoring i did not bother commenting 2018-04-02 18:11:36 +02:00
evilsocket
6659350085
started working on ui gRPC protocol 2018-04-02 17:54:56 +02:00
evilsocket
9887fc936d
added version and expanded paths 2018-04-02 05:34:21 +02:00
evilsocket
534ec8cd73
misc: small fix or general refactoring i did not bother commenting 2018-04-02 05:25:32 +02:00
evilsocket
2a08686497
misc: small fix or general refactoring i did not bother commenting 2018-04-02 05:22:43 +02:00
adisbladis
4e49a6ed5d Merge pull request #99 from ei8fdb/issue#95
Updating README with Ubuntu dependency
2017-07-24 19:16:21 +08:00
adisbladis
aef8f5fd72 Merge pull request #98 from ei8fdb/master
Updating README with Fedora 26 dependency
2017-07-24 19:15:45 +08:00
Bernard Tyers
5180170973 Updating README with Ubuntu dependency
Adding Ubuntu dependency as mentioned in issue #95.
2017-07-24 11:44:18 +01:00
Bernard Tyers
4ecff33b3a Updating README with Fedora 26 dependency
Adding Fedora 26 dependency as mentioned in issue #96.

https://github.com/evilsocket/opensnitch/issues/96
2017-07-24 11:10:44 +01:00
adisbladis
ef02e32ec7
Add libcap-dev to Debian install instructions and add link to AUR 2017-06-28 21:31:27 +08:00
adisbladis
c3937d0409 Merge pull request #91 from da2x/patch-1
Add Fedora build dependencies
2017-06-28 21:27:29 +08:00
Daniel Aleksandersen
d4cc6093a3 Add Fedora build dependencies
* Move dependencies from `Install` to `Requirements`
* List dependencies and sort alphabetically
2017-06-28 15:07:56 +02:00
adisbladis
993f46be91
Improve getting pid for udp connections 2017-06-20 20:27:06 +08:00
adisbladis
28e5395fbe
Update README install instructions 2017-06-13 15:52:44 +08:00
adisbladis
19aaa168a6
Add sudo params to inherit environment 2017-06-12 21:24:04 +08:00
adisbladis
657c97e59a
Gobject should be pygobject, not python-gobject in setup.py 2017-06-12 21:20:09 +08:00
Simone Margaritelli
52d4d0d218 Merge pull request #84 from evilsocket/dbus-ipc
Dbus ipc
2017-06-12 14:47:40 +02:00
adisbladis
f6f6079fbd
Update README after code split 2017-06-12 20:32:29 +08:00
adisbladis
b07071585c
Clear up iptables rules properly on shutdown 2017-06-12 20:30:46 +08:00
adisbladis
0d5561c734
Split codebase into daemon and ui components 2017-06-12 20:30:03 +08:00
Simone Margaritelli
79c92cd058 Merge pull request #83 from evilsocket/iptc-capsh
Iptc capsh
2017-06-11 14:37:37 +02:00
adisbladis
371207a71f
Set capabilities for runnning process and drop user to provided username (defaults to SUDO_USER) 2017-06-11 17:17:57 +08:00
adisbladis
4305c82e66
Use python-iptables for iptables instead of os.system, will enable integration with linux capabilities 2017-06-11 16:50:17 +08:00
Simone Margaritelli
7f334fffde
Update README.md 2017-06-04 23:04:06 +08:00
adisbladis
946a7741e1
Minor restructuring in snitch.py, packet callback belongs in NetfilterQueueWrapper 2017-05-23 16:20:13 +08:00
adisbladis
09c66148fe
Dont handle queued connections from dead processes 2017-05-23 16:17:59 +08:00
adisbladis
a3852e10da
Fix Namespace is not iterable after change from optparse to argparse 2017-05-22 23:17:16 +08:00
adisbladis
7390c3d486
PEP8: Now all Python code is PEP8 2017-05-22 18:15:07 +08:00
adisbladis
5649ece28d
PEP8: Procmon 2017-05-22 18:14:39 +08:00
Simone Margaritelli
299a970737 Merge pull request #79 from adisbladis/connection-refactor
Refactor connection.py to use namedtuples instead of classes
2017-05-21 21:02:30 +02:00
adisbladis
f8dc4c60b3
Refactor connection.py to use namedtuples instead of objects
Move utility functions to get app path and cmdline into proc.py
get_pid_by_connection now only gets pid by connection data

Move Application into connection.py, this didn't really do much anyway
and had some overlap with connection

Move more things into ui subpackage that should not belong in daemon

As an added bonus this also gives a nice little decrease in memory usage
2017-05-22 02:57:11 +08:00
Simone Margaritelli
eb3f96c303 Merge pull request #78 from adisbladis/ruleperf
Rule performance fixes
2017-05-21 14:06:14 +02:00
adisbladis
588eb76126
Merge branch 'ruleperf' 2017-05-21 20:05:23 +08:00
Simone Margaritelli
e56b50cd70 Merge pull request #77 from adisbladis/codestyle-fixes
Improve code styling and performance in proc.py
2017-05-21 13:52:32 +02:00
Simone Margaritelli
8fe9a62ed7 Merge pull request #76 from adisbladis/uisplit-pre
Split ui into separate subpackage
2017-05-21 13:52:20 +02:00
adisbladis
befff27f53
Only iterate over rules where app_path is matching 2017-05-21 18:54:54 +08:00
adisbladis
7ac6d21746
Convert Rule into namedtuple with RuleSaveOption and RuleVerdict enums
This decreases memory usage because of Python using a shared
dictionary for all instances of Rule
2017-05-21 18:36:57 +08:00
adisbladis
f19ce5c9a7
Improve code styling and performance in proc.py
Previously was O(N), now only O(N) in worst case
2017-05-21 15:36:15 +08:00
adisbladis
302992c30d
Split ui into separate subpackage
Move LinuxDesktopParser into ui subpackage, it does not belong in the
Opensnitch core
2017-05-21 15:24:34 +08:00
Simone Margaritelli
2e4b91ceea Merge pull request #75 from adisbladis/icmp
Add ICMP support
2017-05-19 13:04:32 +02:00
adisbladis
baef7ee28a
Add ICMP support 2017-05-19 16:50:12 +08:00
Simone Margaritelli
9838989e1b Merge pull request #73 from adisbladis/sqlite-unique
Add unique constrain to sqlite db (fixes #70)
2017-05-16 15:38:09 +02:00
adisbladis
eac2a11bc4
Add unique constrain to sqlite db (fixes #70) 2017-05-16 21:34:35 +08:00