Russell Hancox
a67801d5ed
santactl/status: Remove driver connected, re-org USB blocking status ( #826 )
2022.6
2022-06-22 14:59:46 -04:00
Russell Hancox
3d37a3a5ae
santad: Update assert usage to avoid a string-to-bool conversion ( #825 )
2022-06-22 12:55:57 -04:00
Russell Hancox
bfae5dc828
fix some style issues ( #824 )
2022-06-22 10:41:05 -04:00
Pete Markowsky
fde5f52a11
Added handling for Remount events to USB mass storage blocking ( #818 )
...
* Added handling for Remount events to USB mass storage blocking.
2022-06-22 09:39:20 -04:00
Russell Hancox
01bd1bfdca
santad: Use multiple semaphores to avoid freeing ES message before use of it has ended. ( #822 )
...
This slightly complex solution is necessary because while on macOS 11+ there are retain/release methods that can be used on ES messages, on 10.15 the only option is a copy which is comparatively expensive (and on 11+ the copy/free methods are aliases for retain/release)
Fixes #821
2022-06-08 11:21:40 -04:00
Matt W
ae13900676
Mute self to reduce message volume. Remove noisy log message. ( #820 )
...
* Mute self to reduce message volume. Remove noisy log message.
* Bail if self muting failed. Remove selfPid.
* Fix tests by mocking es_mute_process
2022-05-31 11:36:35 -04:00
Matt W
a65c91874b
Copy new PrinterProxy file instead of overwriting ( #819 )
...
* Copy new PrinterProxy file instead of overwriting
* Update log type for error message
* Update log message severity
2022-05-27 13:08:25 -04:00
Matt W
6a3fda069c
Remove unused testing scripts ( #816 )
...
* Remvoe unused testing scripts
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com >
2022-05-27 11:03:10 -04:00
Khalid Jamal Abdulnasser
4d34099142
santad: log decision when failing to read file ( #817 )
2022-05-27 09:52:06 -04:00
Russell Hancox
e639574973
Project: Fix layering for tests ( #813 )
2022.5
2022-05-12 16:52:11 -04:00
Russell Hancox
636f9ea873
Project: Layering, missed a dependency ( #812 )
2022-05-12 14:49:18 -04:00
Russell Hancox
9099409915
Project: Enable layering check, fix all dependency violations ( #811 )
2022-05-12 14:26:08 -04:00
Russell Hancox
976f483a99
syncservice: Fix SNTSyncTest ( #810 )
...
Failing preflight early if the daemonConn doesn't return a response the tests. This fix is a bit awkward, I tried to add the defaults in setUp but then you can't overwrite the stubs in methods that need to do it
2022-05-12 09:54:00 -04:00
Tom Burgin
8a32b7a56b
preflight sync: fix dispatch_group_wait return polarity ( #809 )
...
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-05-11 14:55:42 -04:00
Tom Burgin
7eeb06b406
preflight sync: stop the sync if we cannot communicate with the daemon ( #808 )
...
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-05-11 18:45:58 +00:00
Tom Burgin
4540a1c656
SNTConfigurator: remove mutability from sync state dict ( #807 )
...
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-05-11 14:35:43 -04:00
Russell Hancox
acc7b32b24
GUI: Switch to UserNotification.framework notifications ( #806 )
2022-05-11 12:32:08 -04:00
Russell Hancox
b92d513f5d
GUI: Fix message queuing ( #805 )
2022-05-11 09:59:38 -04:00
Tom Burgin
3458fccd4e
santasyncservice: handle loading and unloading of the service in the pkg ( #804 )
...
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-05-10 14:59:34 -04:00
Russell Hancox
fdfb00368c
GUI: Update keys for EventDetailURL. ( #802 )
...
The previous change here (#797 ) was not backward compatible and would be difficult to roll out. This change restores the previously used key and adds 2 new ones for migration. The previous key is marked deprecated and will be removed in the future.
2022-05-09 13:46:13 -04:00
Tom Burgin
6bd369cfb2
santad: remove sema from sync service queue ( #803 )
...
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-05-09 13:32:28 -04:00
Pete Markowsky
0df26c6214
Fix ES Mock Client Subscription issues ( #801 )
...
Fixes an issue with the ES mock where it was deleting all clients on an unsubscribe.
2022-05-06 14:34:42 -04:00
Russell Hancox
6e22da1d97
santad: Add 'null' event logger. Fixes #754 ( #799 )
2022-05-06 12:22:04 -04:00
Russell Hancox
1725809335
Add config to allow uploading all events ( #800 )
...
* Add config to allow uploading all events
This config can be enabled locally or by a sync server and causes the
client to upload all events, not just those for binaries that are or
would be blocked.
Fixes #689
2022-05-06 11:45:53 -04:00
Pete Markowsky
3eff49feda
Added macos-12 to the build matrix. ( #798 )
2022-05-03 21:14:15 -04:00
Pete Markowsky
5caedebb06
Created a profiles package so provisioning profiles only need to be in one place. ( #794 )
2022-05-03 17:14:02 -04:00
Russell Hancox
d823028b72
Sync: Add option to enable event upload despite clean sync. ( #796 )
...
Related to #789
2022-05-03 15:15:42 -04:00
Russell Hancox
49b2d6e22a
GUI: Add %bundle_or_file_sha% translation key ( #797 )
...
* GUI: Add %bundle_or_file_sha% translation key
This mimics the current behavior that %file_sha% previously had and
moves %file_sha% to the expected behavior or just showing the file's
SHA.
Related to #795
2022-05-03 14:59:01 -04:00
Russell Hancox
4236d57e96
Project: Update packaging script to do tarball creation in a scratch dir ( #793 )
2022.4
2022-04-28 15:25:48 -04:00
Russell Hancox
36d463a1dc
Project: Include syncservice.plist in release builds and loads ( #792 )
2022-04-28 14:42:19 -04:00
Tom Burgin
adbafd6bab
syncservice: sign and package ( #790 )
...
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-04-28 13:31:20 -04:00
Tom Burgin
b5ebe1259c
syncservice: implementation and migration ( #775 )
...
* review updates
* fix test
* review updates
* log level cleanup
Co-authored-by: Tom Burgin <bur@chromium.org >
Co-authored-by: Russell Hancox <russellhancox@users.noreply.github.com >
2022-04-27 14:54:56 -04:00
Ryan Diers
e0ae0f481b
santa/gui: Update buttons to push style to better stand out ( #788 )
2022-04-19 20:08:35 -04:00
Matt W
8037c79fc0
Populate critical paths from the ES default mute set ( #786 )
...
* Populate critical paths from the ES default mute set
* Attempt to fix build on older macos
* Link ES to build SNTRuleTableTest
* Workflow test
* Use preprocessor macros to support building on older SDKs
* Add API availability
2022-04-18 15:11:43 -04:00
Walter Lee
892d303de1
Disable layering check for Objective-C, part two ( #787 )
2022-04-18 12:15:08 -04:00
Russell Hancox
ff3979263e
santad: Use TTY path provided by ES ( #785 )
2022-04-15 12:48:06 -04:00
np5
01afefd3d4
santactl/sync: Fix event team ID decision value ( #784 )
2022-04-15 10:27:48 -04:00
Kent Ma
830627e7bc
Docs: Add "Team ID" to description on AllowedPathRegex ( #782 )
2022-04-14 13:13:51 -04:00
Walter Lee
601d726fcc
Disable layering check for Objective-C ( #781 )
2022-04-12 09:06:55 -04:00
Tom Burgin
0be1ca0199
ES_EVENT_TYPE_NOTIFY_UNMOUNT: flush the cache off the ES handler thread ( #778 )
...
Co-authored-by: Tom Burgin <bur@chromium.org >
2022-04-06 12:07:08 -04:00
Kent Ma
8602593149
Fix dead link ( #774 )
2022-03-25 13:33:08 -04:00
Matt W
9bca601ce6
Modified build target names for santa proto ( #772 )
2022-03-25 13:07:57 -04:00
Kent Ma
c73acd59d4
Update logo image of Santa ( #773 )
2022-03-25 12:46:34 -04:00
Russell Hancox
3c334e8882
Project: Fix coverage collection ( #770 )
2022-03-24 11:33:46 -04:00
Russell Hancox
5f811cadf8
Project: Update apple_rules dep, add .bazelversion for bazelisk users ( #769 )
2022-03-23 17:34:04 -04:00
Russell Hancox
4252475de0
Project: Fix fallback version ( #767 )
2022-03-23 15:13:30 -04:00
Kent Ma
45f1822681
Exclude bazel-out from test coverage generation ( #768 )
2022-03-23 15:10:46 -04:00
Russell Hancox
498a23d907
Project: Make versioning dynamic through bazel's --embed-label. ( #766 )
...
The apple_rules allow versioning using an apple_bundle_version rule that extracts elements from an embedded label. We haven't been able to use this until now because the kernel extension needed access to the version in a define.
2022-03-23 14:53:51 -04:00
Russell Hancox
5dff8a18f4
santad: Split ES cache into root/non-root varieties ( #765 )
2022-03-23 09:43:14 -04:00
Russell Hancox
676c02626d
santactl/metrics: Allow filtering metrics ( #763 )
2022-03-22 18:12:14 +00:00