Commit graph

649 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
9eb589a3ea v1.0.0 release
Current version is stable enough (based on users' feedback) to get it out
of the release candidate state. OpenSnitch works and is usable.

There's a lot of work yet to do, so let's start from a fresh and shiny
release number.
2020-07-16 00:48:32 +02:00
Gustavo Iñiguez Goia
a5994b0c4f stop receiving notifications properly
Under certain circunstances, the notifications goroutine entered into an
infinite loop.
2020-07-06 18:49:58 +02:00
Gustavo Iñiguez Goia
3853d412b4 audit: better rules deletion
if the daemon does not exit cleanly, the rules were not cleaned
correctly.
2020-07-03 08:28:33 +02:00
Gustavo Iñiguez Goia
7c5e324bc9 UI: force to bring the allow/deny pop-up to the front
This solves an issue where the pop-up was only displayed on the same
screen/desktop/workspace where the main window was.
2020-06-25 22:38:09 +02:00
Gustavo Iñiguez Goia
714aa311a0 Bump version to v1.0.0rc11 2020-06-24 00:41:36 +02:00
Gustavo Iñiguez Goia
4a99548ef3 Merge branch 'ui2.0' into main 2020-06-23 02:20:44 +02:00
Gustavo Iñiguez Goia
de00e89302 UI: set pop-up action buttons focus
Set the focus of the action buttons deny/allow, based on the configured
action.
2020-06-23 02:09:35 +02:00
Gustavo Iñiguez Goia
db02c4a394 UI: improved general tab fields filtering 2020-06-23 02:04:25 +02:00
Gustavo Iñiguez Goia
0af606d348 UI: fixed columns sorting after restoring settings
When restoring columns size state, the clicked events of the headers
(qtableview) were being fired, so the sort order was being not
respected.

Ensure also that changes to the general tab only affects to that tab.
2020-06-23 00:48:48 +02:00
Gustavo Iñiguez Goia
fe639887f0 UI: save settings on hiding stats window
Since we show and hide the stats window just by clicking on the systray
icon, the window is not closed, or at least the closEvent() is not being
fired, so the settings were not being saved.
2020-06-22 17:03:08 +02:00
Gustavo Iñiguez Goia
2522b8ef02 fixed CWD parsing when using audit proc monitor method 2020-06-22 14:26:07 +02:00
Gustavo Iñiguez Goia
8a2fe51abe Merge branch 'ui2.0' into main 2020-06-21 00:47:08 +02:00
Gustavo Iñiguez Goia
3011d9fd53 UI: show/hide stats window by clicking on the systray icon
closes #39
2020-06-21 00:40:01 +02:00
Gustavo Iñiguez Goia
73eb5b65eb UI: display process path if it's hidden
If a process path does not appear in the app name or the process
cmdline, display it on the pop-up dialog.
2020-06-21 00:14:20 +02:00
Gustavo Iñiguez Goia
6d24c5464c fixed race conditions when manipulating rules 2020-06-20 18:58:59 +02:00
Gustavo Iñiguez Goia
43f2a56196
Update LICENSE 2020-06-20 17:48:59 +02:00
Gustavo Iñiguez Goia
dda720576b
Update README.md 2020-06-20 17:39:07 +02:00
Gustavo Iñiguez Goia
0c640806f9 UI: added CWD field.
Added Current Working Directory of a process.
2020-06-19 18:26:03 +02:00
Gustavo Iñiguez Goia
c8b1722f3e UI: reset rule name when creating a new one 2020-06-19 18:17:39 +02:00
Gustavo Iñiguez Goia
fc2212f073 return better errors if a regexp rule fails to compile
If a regexp rule fails to compile, return the reason instead of a
generic error. It'll help to debug problems.
2020-06-19 18:02:09 +02:00
Gustavo Iñiguez Goia
23d5f87dd7 Bump UI package version to v1.0.0rc10-2
Fixes #38.
2020-06-17 21:21:23 +02:00
Gustavo Iñiguez Goia
2e5ccf3e63 Merge branch 'ui2.0' into main 2020-06-17 20:49:29 +02:00
Gustavo Iñiguez Goia
e217dedef7 UI: fixed crash when clicking on a user name
fixes #38
2020-06-17 20:32:12 +02:00
Gustavo Iñiguez Goia
cfc32cbd1c fixed race condition when deleting a rule 2020-06-14 20:30:19 +02:00
Gustavo Iñiguez Goia
b03bbf0506 fixed race conditions setting log level and monitor methods 2020-06-14 20:14:24 +02:00
Gustavo Iñiguez Goia
edfbfbdcb4 Bump version to 1.0.0rc10 2020-06-14 12:34:20 +02:00
Gustavo Iñiguez Goia
506b9b6d87 fixed daemon running with old libnetfilter_queue libs
In old libnetfilter_queue libs, we can't know the UID of the packet
because the function nfq_get_uid is not present.

We check it dynamically on run time, but we were doing it wrong, so the
daemon didn't run with old libs.

Thaks to Pain-Patate for reporting it in #18.
2020-06-14 12:01:34 +02:00
Gustavo Iñiguez Goia
d152af45e2 Merge branch 'ui2.0' into main 2020-06-13 18:55:31 +02:00
Gustavo Iñiguez Goia
970d04f961 UI: added help menu to rules editor dialog 2020-06-13 18:44:00 +02:00
Gustavo Iñiguez Goia
10f74b97cd UI: save nodes columns size
and restore them on startup.
2020-06-13 17:42:12 +02:00
Gustavo Iñiguez Goia
36dd601019 UI: fixed events limit on General tab 2020-06-13 16:40:14 +02:00
Gustavo Iñiguez Goia
034a95918e removed useless firewall log 2020-06-12 01:21:36 +02:00
Gustavo Iñiguez Goia
a9e622017d UI: allow to resize rules table columns and remember position 2020-06-11 01:18:47 +02:00
Gustavo Iñiguez Goia
1aa65b9c4e Merge branch 'ui2.0' into main 2020-06-08 00:01:08 +02:00
Gustavo Iñiguez Goia
39015bd4f5 UI: updated grpc protocol 2020-06-08 00:00:15 +02:00
Gustavo Iñiguez Goia
12d62f548b UI: revert main columns autosizing, allow to restore defined size
Reported here: #23

Now if a user resize a column manually on the first tab, or
adjust it to the column contents by double clicking on the middle
of the columns, the next time the UI is shown the columns size will
be restored.
2020-06-07 00:44:15 +02:00
Gustavo Iñiguez Goia
301e3db0cb UI: improved pop-up dialog widgets resizing 2020-06-07 00:40:33 +02:00
Gustavo Iñiguez Goia
374c5e2f90 UI: fixed pop-up dialog settings
Fixed default settings when it's the first time it's shown.
Fixed default action settings key
Fixed default target configured from the preferences dialog.
Set default pop-up dialog size on shown event.
2020-06-07 00:35:41 +02:00
Gustavo Iñiguez Goia
3df6783b75 UI: changed Action combo by 2 buttons, CWD label
By changing the Action combobox by 2 buttons (allow/deny), we ease the
task of allowing or denying a connection.

Added a label to display from what directory a process was executed.

Pop-up GUI reorganized.

closes #13
2020-06-05 10:35:07 +02:00
Gustavo Iñiguez Goia
a1bba4da3f send on new connection CWD and envrionment vars of the process
CWD allow us to know from where was a process executed.
The environment variables allows to know more about a process execution.
2020-06-04 01:14:25 +02:00
Gustavo Iñiguez Goia
78c0da83c0 increase default timeout to ask for a rule
Explained here: https://github.com/gustavo-iniguez-goya/opensnitch/issues/28#issuecomment-637484501
2020-06-04 00:38:11 +02:00
Gustavo Iñiguez Goia
41b6020fef UI: allow to filter data in all tabs
Requested here: #28

Previously we could filter data only in the General tab, but the Hosts
and Addresses lists tend to be huge, so allowing to filter it helps to
find a host or IP quickly.
2020-06-01 02:07:43 +02:00
Gustavo Iñiguez Goia
36a11b4102 don't configure log level if the item does not exist in the config
Reported here:
https://github.com/gustavo-iniguez-goya/opensnitch/issues/31#issuecomment-633759613

The LogLevel conf item should always exist, but just in case.
2020-06-01 01:54:08 +02:00
Gustavo Iñiguez Goia
6c9d9b28f6 added default log level to default conf 2020-05-30 23:03:59 +02:00
Gustavo Iñiguez Goia
ef8fe0a6b9 UI: fixed double clicking on the main table 2020-05-30 01:47:25 +02:00
Gustavo Iñiguez Goia
558e511718 delete rules by its name without deserializing 2020-05-30 01:44:22 +02:00
Gustavo Iñiguez Goia
6bbf3b33be misc: sources formatting 2020-05-30 01:36:43 +02:00
Gustavo Iñiguez Goia
53d4959360 UI: refresh rules list after deleting a rule.
reported here #28
2020-05-25 22:05:47 +02:00
Gustavo Iñiguez Goia
61a65a3951 UI: fixed high cpu usage while notification is shown
closes #30
2020-05-25 01:13:07 +02:00
Gustavo Iñiguez Goia
59c8a01a66 UI: fixed columns sort order
Now when you enter into the details of a view (rules -> view rule), when
going back to the main view the order is preserved.
2020-05-24 23:55:54 +02:00