When sending the events to the GUI (server), there's a hardcoded timeout
of one second. If the call takes longer, we were writing a warning to
the logs for each call, which in some cases could be excessive.
Hitting the timeout can be normal under some circumstances, such as when
connecting to a GUI with multiple nodes and a lot of activity.
More info: #1453
We have a hardcoded timeout of one second to send the daemon stats to
the GUI. In some cases it's not unusual to hit the deadline.
So in order to just measure the network call, we now initiate the
timeout after collecting the daemon statistics.
See: #1453
- Display the column Node only if there's more than 1 node, or if the
user selected it from the Preferences (rel: #1456).
- Adjust the Rules panels default sizes.
- Don't resize the first column of the rules left panel.
Previously you could only change firewall policies of one node.
Now if there's more than one node you can select the node, or change the
policies of all nodes.
Appimages unpack their content under /tmp/._mount<random-chars>/*.
Usually the random part consist of 6 characters, but some appimages do
not follow this rule, like the Eden appimage.
See: #1377.
In the same way that we automatically select AppImages paths, now we'll
also select snap paths.
Usually these paths start with /snap, followed by the name of the app, a
revision number and the path to the executable:
/snap/firefox/12345/usr/lib/firefox/firefox
Internally the rule will create this regular expression, to match the
the snap regardless of the revision:
^\/snap\/firefox\/[0-9]+\/usr\/lib\/firefox\/firefox$
Closes: #1439.
Added a basic plugin to check latest release version on github. Disabled
by default.
Since it's not possible to enable plugins from the GUI yet, you have to
copy the configuration to
$HOME/.config/opensnitch/actions/versionchecker.json:
{
"name": "versionchecker",
"created": "",
"updated": "",
"description": "",
"type": ["global"],
"actions": {
"versionchecker": {
"enabled": true,
"config": {
"check_on_start": false,
"name": "check-latest-release",
"interval": "12",
"units": "hours",
"url": "https://api.github.com/repos/evilsocket/opensnitch/releases"
}
}
}
}
This configuration example is available under
opensnitch/plugins/versionchecker/.
Requested here: #1461.
Some kernels or systems may not have tracefs mounted or available
by default.
We need the path /sys/kernel/tracing to be mounted, in order to add
syscalls ebpf probes.
So from now on we'll try to mount /sys/kernel/tracing if it's not
already mounted.
-check-requirements parameter updated to check if this option is
available.
Closes#1450.
now you can open multiple rules editor dialogs from the rules list.
Right click on the rules list to edit the selected rule, then right
click on another rule to edit a new rule.
When editing a rule from the detailed view (after double clicking on a
rule), it'll only allow to open one dialog.
Closes#1455.
This change modifies the StatsDialog class to use the show() method instead of overriding showEvent(). This resolves a recursion error.
Changes made:
- Replaced the showEvent() method override with a show() method
- Maintained the same functionality including:
- Emitting the _shown_trigger signal
- Setting window state to active and unminimized
- Updating the window title with version information
- Removed the event parameter since show() doesn't receive event arguments
- Preserved all existing logic for address checking and window title formatting
Co-authored-by: Gustavo Iñiguez Goia <gooffy1@gmail.com>
This change fixes an issue where the statistics dialog would not properly restore its maximized state when reopening. The previous implementation attempted to manually set the window geometry to simulate a maximized state, but this approach was unreliable and didn't properly handle screen boundaries or multi-monitor setups.
The fix replaces the manual geometry setting with a proper call to showMaximized() when the dialog is visible, ensuring that Qt's window management correctly handles the maximized state restoration. This provides consistent behavior across different platforms and display configurations.
Changes made:
- Removed the manual geometry calculation that attempted to simulate maximized state
- Added proper isVisible() check before calling showMaximized() to ensure the window is properly initialized
- Simplified the maximized state restoration logic to use Qt's built-in functionality
added tools name as constants, and explain how to use them.
The name of a tool identifies an instance of that tool. Each tool has
its own configuration and logic.
In order to create multiple instances of a tool (for example to run
multiple commands or scripts), just append details to the tool name:
"name": "script",
"cmd": ["/usr/bin/clamscan"]
"name": "script-unhide",
"cmd": ["/usr/sbin/unhide"]
For now we won't detect it automatically, because we're using
QtCore.QLocale.system().name() to detect the language. This function
usually returns the language and country (en_UK, ...), but this
translation is not tied to any specific country (ar).
It can be configured manually from the Preferences, UI tab.