Commit graph

25 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
c89b4908ce
deb: warn about buggy python3-grpcio version (1.30.2-3build6)
Ubuntu jammy package python3-grpcio, version 1.30.2-3build6, has a bug
which causes applications to use 100% of the CPU.

If after installing we detect that the buggy version is installed,
display a warning to the user with instructions on how to solve the
problem and links to the bug reports.

More information:
 - https://bugs.launchpad.net/ubuntu/+source/grpc/+bug/1971114
 - https://github.com/evilsocket/opensnitch/issues/647
2024-07-02 00:02:46 +02:00
Gustavo Iñiguez Goia
dddfdc924e
pkgs: improved rpm upgrades
We were not handling configuration upgrades properly on rpm based
systems.

Now local changes to default-config.json and system-fw.json are kept,
and if the distributed files changes in the future, new files will be
created with the extension .rpmnew
2024-02-02 14:16:16 +01:00
Gustavo Iñiguez Goia
86d3f54247
rpm pkgs: changed autostart path
Previously after installing the rpm GUI package, we created a symlink to
our .desktop file for all users, under /home/*/.config/autostart/

If the path didn't exist we created it, unfortunately as root, which
caused some problems with other applications like Gnome Tweaks.

Now a link is created under /etc/xdg/autostart/, which is what we use
with the debian packages.

Closes: #1068
2023-11-29 22:54:02 +01:00
Gustavo Iñiguez Goia
79ac6306a5
Bump GUI version to v1.6.3 2023-08-17 00:28:37 +02:00
Gustavo Iñiguez Goia
ce7c3f8002
Bump versions to v1.6.2 2023-07-31 00:36:33 +02:00
Gustavo Iñiguez Goia
d8e27b98d1
rpm: install ui binary under /usr/bin
Starting from a python3 release, distutils no longer install scripts
under /usr/bin by default, but under /usr/local/bin.
(around opensnitch v1.6.0-c5).

This causes on some immutable distros not to install the GUI, for
example Fedora SilverBlue:
https://github.com/projectatomic/rpm-ostree/issues/233

Closes #880
2023-07-25 16:36:44 +02:00
Gustavo Iñiguez Goia
cdf6497ea7
Bump versions to v1.6.1 2023-07-23 22:18:58 +02:00
Gustavo Iñiguez Goia
0e6f9995e8
Bump rpm versions to 1.6.0.1 2023-06-16 11:42:22 +02:00
Gustavo Iñiguez Goia
01dc1d2e9b
Bumped debian packages versions to 1.6.0.1
1.6.0-rc.5-1 is newer than 1.6.0-1 unfortunately.
2023-06-15 23:52:56 +02:00
Gustavo Iñiguez Goia
96a962be2b
ci fixes 2023-05-17 13:00:13 +02:00
Gustavo Iñiguez Goia
f97e7392a3
ci fixes 2023-05-17 12:26:49 +02:00
Gustavo Iñiguez Goia
ba64379348
ebpf: new way of compiling the modules
- Don't rename libbpf's bpf_map_def struct, and distribute the needed bpf
  headers.
  The bpf_map_def struct has been deprecated for quite some time now,
  and it was been removed on >= 6.2 anyway.
  We still need it, because we use gobpf.
- Improved compilation behaviour:
  - We don't require the kernel sources anymore. We can just use the
    kernel headers from the distribution.
  - There's no need to copy the sources to the kernel tree, the modules
    can be compiled from the ebpf_prog/ dir.
- Compiling against kernels 6.x seems to solve the problem we had with
  VPNs, where connections were not intercepted with modules compiled
  against 5.8, on kernels >= 5.19.

The modules has been tested on kernels 4.17, 5.4, 5.10, 5.15, 6.1 and
6.2 (kernel connections included).

Closes: #939
2023-05-17 01:20:53 +02:00
Gustavo Iñiguez Goia
cbdb00b620
deb: remove autostart file on uninstall
Closes #916
2023-04-22 23:38:36 +02:00
Gustavo Iñiguez Goia
a1948e259a
Bump versions to 1.6.0 2023-04-22 12:32:53 +02:00
Gustavo Iñiguez Goia
a4b59e6ce0
Updated packaging files, bump versions to 1.6.0rc5 2023-02-18 20:35:34 +01:00
Gustavo Iñiguez Goia
7f81e010a3
utils: updated modules compilation script
Apply a different patch depending on the arquitecture.
2023-01-16 11:31:55 +01:00
Gustavo Iñiguez Goia
ceee7970a3
fixed script to compile ebpf modules 2022-12-22 12:08:18 +01:00
Gustavo Iñiguez Goia
85776f4d17
Bump ui and daemon versions to 1.6.0rc4 2022-12-22 10:20:36 +01:00
Gustavo Iñiguez Goia
58ceb90996
deb: fixed latest changelog datetime 2022-12-08 11:42:18 +01:00
Gustavo Iñiguez Goia
fcecff3d36
rpm: fixed installed files 2022-11-16 22:57:07 +01:00
Gustavo Iñiguez Goia
6bfe6cef8d
Bump versions to 1.6.0-rc.3 2022-11-15 00:52:23 +01:00
Gustavo Iñiguez Goia
a3538a728f
systemd service: wait 10s to stop, otherwise kill daemon 2022-10-27 17:53:42 +02:00
Gustavo Iñiguez Goia
44500f9c09
pkgs, deb: improvements
- Don't share sources (reduces deb size).
 - Install eBPF modules under /usr/lib/opensnitchd/ebpf/
   /etc/is only mean for configuration files, and /usr/lib for object
   files and libraries.
   https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s07.html#purpose6
   https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s06.html#purpose22
 - Added NEWS file, to inform users about breaking changes and other
   relevant changes.
2022-10-19 13:13:45 +02:00
Gustavo Iñiguez Goia
fb3a8ccb37
added helper script to compile eBPF modules 2022-10-05 14:51:00 +02:00
Gustavo Iñiguez Goia
564c263d71
packaging: moving files out of the gui/daemon dirs 2022-09-26 23:03:49 +02:00