Commit graph

2444 commits

Author SHA1 Message Date
Vladimir Stoilov
5039e9efca
Merge branch 'develop' into feature/new-installer 2025-01-14 16:59:21 +02:00
Alexandr Stelnykovych
f021ec2444
Merge pull request #1787 from safing/develop
v1.6.29
2025-01-13 16:27:48 +02:00
Alexandr Stelnykovych
3478622eb8 update deps 2025-01-13 14:15:48 +00:00
Daniel Hååvi
b4fda1bdce
Merge pull request #1780 from stenya/fix_logical_mistake
[fix] Logical mistake while determining local resolvers
2025-01-13 13:45:11 +01:00
Daniel Hååvi
0937bedd6c
Merge pull request #1779 from stenya/fix_crash_SleepyTicker
[fix] Panic while accessing SleepyTicker methods Stop()/SetSleep()
2025-01-13 13:44:59 +01:00
Daniel Hååvi
241bf20c7a
Merge pull request #1775 from stenya/intel_small_cache
[improvement] Small cache size
2025-01-13 13:44:31 +01:00
Daniel Hååvi
3ee214abaf
Merge pull request #1766 from safing/fix/windows-permission2
Fix windows permissions
2025-01-13 13:41:28 +01:00
Daniel
96209c28cf Fix SPN build 2025-01-13 10:09:11 +01:00
Daniel
ef7b129ced Use code quotes for cmds in docs 2024-12-20 13:37:01 +01:00
Daniel
1e9e6263d4 Fix SPN testnet portmaster args 2024-12-20 13:36:15 +01:00
Daniel
c7f3475382 Add spn testing setup 2024-12-20 13:31:52 +01:00
Alexandr Stelnykovych
6c014d227c [fix] Panic while accessing SleepyTicker methods Stop()/SetSleep()
The time.Ticker object was stored as a value type, but it is expected to be a pointer according to its implementation:
```
func (t *Ticker) Stop()
func (t *Ticker) Reset(d Duration)
```

This was leading to an application crash.

STR 1:
Run `portmaster-core` without privileged rights. It will not be able to start the kernel driver (Windows).
During unloading of already initialized modules, the process crashes because of stopping SleepyTicker instances in workers of the "network" module.

STR 2:
Run tests from `service\mgr\sleepyticker_test.go`
2024-12-17 15:49:52 +02:00
Alexandr Stelnykovych
df70c70ab5 [improvement] Small cache size
(2 ^ 8) = (2 XOR 8) = 10.
Was it intended to be 256?
2024-12-16 16:01:42 +02:00
Alexandr Stelnykovych
692838b696 [fix] Logical mistake while determining local resolvers 2024-12-13 17:02:38 +02:00
Vladimir Stoilov
fed64e6fbd
Fix loggin dir 2024-12-12 16:33:02 +02:00
Vladimir Stoilov
0997f1ce26
Fix broadcast notifications 2024-12-11 16:13:06 +02:00
Vladimir Stoilov
b3c867efc6
Fix stack overflow bug 2024-12-11 16:12:31 +02:00
Vladimir Stoilov
c21a93a4d6
Add missing TODOs 2024-12-10 14:21:34 +02:00
Vladimir Stoilov
be62c788de
Improve earthfile 2024-12-10 14:20:48 +02:00
Vladimir Stoilov
3101d0a7aa
Fix windows installers 2024-12-10 13:46:31 +02:00
Vladimir Stoilov
5713d7d3c6
Make eartly local only build 2024-12-09 18:11:00 +02:00
Vladimir Stoilov
475d69f8a2
[service] Fix windows system SID 2024-12-06 16:45:37 +02:00
Daniel
9d874daed2 Simplify windows acl calls and switch to using SIDs 2024-12-06 14:34:54 +01:00
Vladimir Stoilov
05a5d5e350
[service] Fix unit tests 2024-12-06 14:47:24 +02:00
Vladimir Stoilov
22253c4e9e
[service] Fix windows permissions 2024-12-06 12:00:20 +02:00
Vladimir Stoilov
5ae261f062
[WIP] Fix tauri notifications 2024-12-03 17:28:40 +02:00
Vladimir Stoilov
d15ede9f53
[WIP] Fix winodws service installer 2024-12-03 17:27:33 +02:00
Daniel Hååvi
6e173e3b96
Merge pull request #1763 from safing/fix/missing-dll-failure
Fix Missing dll failure
2024-12-02 15:23:07 +01:00
Vladimir Stoilov
ed2338fdb9
[service] Fix error on unitilized dns monitor 2024-12-02 15:25:58 +02:00
Vladimir Stoilov
2a9d75433f
[service] Fix module failure when dll is missing 2024-12-02 14:02:49 +02:00
Vladimir Stoilov
b52cde15c5
[WIP] Fix installers bundle files 2024-11-29 10:53:01 +02:00
Vladimir Stoilov
de3f5a8692
[WIP] Fix logger starting bug 2024-11-28 13:27:10 +02:00
Vladimir Stoilov
374c1c2748
Merge branch 'develop' into feature/new-installer 2024-11-28 13:23:13 +02:00
Daniel
ef0995b1f7 Define identifier for portmaster-core.dll and make it mandatory 2024-11-28 11:45:29 +01:00
Vladimir Stoilov
35d1e4d2e3
Fix file permissions on windows (#1758)
* [service] Set file permissions on windows

* [service] Fix minor windows permission bugs

* [service] Fix permission bugs

* [service] Fix windows non admin user start
2024-11-28 10:41:44 +02:00
Vladimir Stoilov
85031e861b
[desktop] Update tauri (#1760) 2024-11-28 10:41:14 +02:00
Vladimir Stoilov
f35256c025
Feature/kext default action drop (#1747)
* [windows_kext] Make default action to drop

* [windows_kext] Minor improvments
2024-11-28 10:37:51 +02:00
Daniel
590fe74610
Update deps 2024-11-28 10:37:51 +02:00
Daniel
ed861d606b
Make saving IP and CNAMEs more defensive 2024-11-28 10:36:46 +02:00
Daniel
1ff6f34631
Notify packet issues asynchronously 2024-11-28 10:36:46 +02:00
Vladimir Stoilov
d8f11aa650
Fix reading only the needed TCP/UDP header bytes (#1730)
* [windows_kext] Fix reading only the needed TCP/UDP header bytes

* [windows_kext] Disable debug mode

* [windows_kext] Block all fragment packets

* [windows_kext] Improve wording for compiler error
2024-11-28 10:36:45 +02:00
Vladimir Stoilov
2a40b42339
[windows_kext] Improve documentation (#1719) 2024-11-28 10:36:45 +02:00
Daniel
c02e0cdade
Bump kext version 2024-11-28 10:36:45 +02:00
Vladimir Stoilov
05f4f3fc6d
[service] Fix check for invalid kext handle (#1716)
* [service] Fix check for invalid kext handle

* [windows_kext] Use BTreeMap as cache structure

* [windows_kext] Fix synchronization bug

* Update windows_kext/kextinterface/kext_file.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update windows_kext/kextinterface/kext_file.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update windows_kext/kextinterface/kext_file.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-11-28 10:36:41 +02:00
Daniel
df4106fd70 Merge branch 'develop' 2024-11-27 16:40:03 +01:00
Daniel
614d8972a2 Improve logging 2024-11-27 16:37:59 +01:00
Daniel
acaf98144a Bump kext version 2024-11-27 16:19:09 +01:00
Daniel
473f05becc Update service deps 2024-11-27 16:19:02 +01:00
Daniel
706ce222d0 WIP 2024-11-27 16:16:15 +01:00
Vladimir Stoilov
1a1bc14804
Feature/systemd query events (#1728)
* [service] Subscribe to systemd-resolver events

* [service] Add disabled state to the resolver

* [service] Add ETW DNS event listener

* [service] DNS listener refactoring

* [service] Add windows core dll project

* [service] DNSListener refactoring, small bugfixes

* [service] Change dns bypass rule

* [service] Update gitignore

* [service] Remove shim from integration module

* [service] Add DNS packet analyzer

* [service] Add self-check in dns monitor

* [service] Fix go linter errors

* [CI] Add github workflow for the windows core dll

* [service] Minor fixes to the dns monitor
2024-11-27 17:10:47 +02:00