- Preprend the chroot of a process to the path:
Even if a process is executed from a chroot (or a different mount
namespace), the kernel reports the path as it were from the host.
For chrooted processes, now we prepend the chroot to the path:
Instead of /usr/bin/curl -> /var/cache/pbuilder/usr/bin/curl
Note: if the process is emulated (with qemu for example), the
checksum will be of the emulator.
- For proceses launched from /proc, like /proc/self/exe or
/proc/<pid>/fd/<number>, we were replacing in the cmdline "/proc/*"
with the absolute path of the binary:
Path: /usr/bin/curl
Cmdline reported: /proc/<pid>/fd/<number> -L 1.1.1.1
Cmdline "fixed": /usr/bin/curl -L 1.1.1.1
Now we only do that for /proc/self/exe, and leave
/proc/<pid>/fd/<number> as is, since Path is already the absolute
path to the binary.
Path: /usr/bin/spotify
Cmdline reported: /proc/self/exe
Cmdline "fixed": /usr/bin/spotify
Path: /usr/bin/curl
Cmdline reported: /proc/<pid>/fd/<number> -L 1.1.1.1
Cmdline final: /proc/<pid>/fd/<number> -L 1.1.1.1
Modify the `_cb_notification_callback` method to properly process notifications that are wrapped in a dictionary to ensure consistent handling regardless of how they're sent from different
parts of the codebase.
- better process interception on aarch64 and armhf.
- on armhf getting proc arguments is ignored due to an error, but we
were not marking the event as INCOMPLETE_ARGS, so we were not reading
the compete cmdline.
Change some initializations on inet_dgram_connect, to make the verifier
happy. __builtin_memset() in this particular case was causing errors.
(invalid read from stack off -16+4 size 8)
Up until now we've been using https://github.com/iovisor/gobpf/ for
intercepting events from the kernel, and it has worked very well.
Unfortunately it's deprecated since 2021 (iovisor/gobpf#304), which means
that some of the known issues and limitations won't be fixed.
After evaluating some options, I've migrated the code from gobpf to
github.com/cilium/ebpf.
More info: #1222, #1312
discard current selection:
- if the user right clicked on a row not part of a selection.
- if the user clicked on a row, and there's only one row selected.
- if the user clicked on a row already selected.
In PyQt < 5.15 isRowSelected() requires two arguments (row and parent).
Since 5.15, the parent argument is optional, and the default value is an
empty QModelIndex().
In order to support old PyQt versions (Ubuntu 20.x), we add always
the second argument.
- Misc: headers reorganization.
In some DEs, like Enlightenment, some builtins icons may be empty.
The icon is not Null, but there're no available sizes, and the
pixmap is empty.
For now we'll use SP_FileIcon as the default icon, which exists
in this scenario, but we should create a new default icon, and
distribute it with the GUI.
- Pressing the Space key on a view paginates the view forward.
- Apply rule actions both to visible selections (the ones the user
sees), and non-visible selections (those out of the viewport).
- Right clicking on a selection does not discard the selection.
- Left clicking on a selection discards the selection and selects the
clicked row.
- Left clicking on a selected row selects/deselects the row.
ref: #1291
- Fixed the use of Ctrl + mouse dragging to select/deselect rows of
an existing selection.
- Misc: fixed var name, removed unused code, avoid adding non valid
rows to the selection.
ref: #1291
Previously while scrolling, only one row remained selected, and using
the mouse to select rows didn't work.
Now:
- All selected rows remain selected while scrolling.
- The mouse can be used to select rows.
Previous functionality has not chaged:
- Selecting a row toggles the selection.
- ESC discard the selection.
- CTRL + key up/down or click selects/deselects rows.
- CTRL+c copies selected rows to the clipboard.
ref: #1291
- Convert remote syslog to remote. There's no real difference between
both, and the code was the same.
Maybe we could limit the logging formats allowed.
- Remote logger: Added option to reopen the connection after n errors
trying to send messages.
tested on several distros with different kernels, as well as in a
private fork and this test doesn't fail.
So until we figure out why it's failing here, let's skip it for now.
- Fixed issue when configuring several loggers.
- Remote logger:
- open as many connections with the remote server as
specified in the Workers field.
- open and handle every connection in each own goroutine.
- get rid of the locks.
- Moved Info message to Trace.
- When applying a default action on a connection (because the daemon is
not connected to the GUI), log the connection details. It eases the
task of creating rules without a GUI.