Fixes crash when pressing 'accept' with keyboard when mouse cursor is
not on top of the popup.
> Traceback (most recent call last):
> File "/path/to/opensnitch/dialogs/prompt/dialog.py", line 288, in _check_advanced_toggled
> self.move_popup()
> ~~~~~~~~~~~~~~~^^
> File "/path/to/opensnitch/dialogs/prompt/dialog.py", line 254, in move_popup
> point = self.screen().virtualSiblingAt(QtGui.QCursor.pos()).availableGeometry()
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> AttributeError: 'NoneType' object has no attribute 'availableGeometry'
> Fatal Python error: Aborted
Restrict the use of network type to network operand:
"operator": {
"type": "network",
"operand": "dest.network",
"sensitive": false,
"data": "LAN",
"list": []
}
When displaying a new pop-up, we set the default target based on:
- snap or appimages paths.
- user's preferences.
In order to respect user's preferences, the process path and cmdline
must be non-empty. If any of these properties is empty, then we
select by default the Destination Port of the connection.
However, in some cases the cmdline is empty while the path is not, but
we end up selecting the destination port as the default target anyway,
which causes confusion and in some cases too much pop-ups.
Now, if the cmdline is empty and the path is not, we'll select the path
of the process as the default target.
see #1521 for more details.
Dump the rows of the current query, and copy only the rows selected by
the user.
Previously we kept a copy of all selected cells in memory, all the time,
while the rows were selected.
- free copied rows after writing it to the clipboard.
- when dumping rows from the db, re-use existing query object if the
query hasn't changed.
- misc.
- Select rows properly when the mouse goes off the viewport while
selecting.
- Reuse the internal QSqlQuery object when dumping rows.
- Allow to select ranges with shift+KeyHome/KeyEnd
- KeyDown (arrow) scrolls the view by one row, instead of paginate it.
We already have Space and PageUp/PageDown keys for it.
Allow to create rules to mach a range of source or destination ports.
"operator": {
"operand": "dest.port",
"data": "30000-65500",
"type": "range",
"list": [],
"sensitive": false
},
see: #960, #1516
Use the configured headers in the table model to show/hide columns,
instead of using the ones defined in the default configuration.
Plugins can add columns to the views, so this way we allow to show/hide
columns configured by the plugins.
- Added information about visited domains to the hosts tab:
- consensus of the domain: malicious, harmless, suspicious, ...
- last dns records
- ssl information of the domain
- Allow selecting all rows with Ctrl+a.
Note: The Ctrl key must be held while pressing 'a'.
Sometimes when pressing Ctrl+a, the Ctrl key is released
briefly before 'a' is pressed.
- Display the number of rows that will be affected by an action
(for example, delete)
Closes: #1272
- Allow advanced search per view (table)
- Added advanced filtering options for the rules view.
It allows advanced filtering by all the fields of the rules table.
- misc: fixed extra spaces.
lock just the operation, without using defer. In this case is not
needed.
The difference is minimal:
BenchmarkDefer-4 100000000 50.94 ns/op
BenchmarkNoDefer-4 131769184 45.35 ns/op
Now it's possible to personalize the system notification when the user
doesn't respond to a pop-up.
From the Preferences dialog, UI tab, you can personalize the message of
the notification.
Use the format %field% to replace the fields of a connection by their
values, for example:
Connection attempt from %conn.process% to %conn.dstip%
More info: #1446
The v1.8.0 rpm UI package was built with rpm 6.x, which caused the error
"Unrecognized archive format" when installing it with rpm-ostree.
Adding %define _rpmformat 4 fixes this issue.