Russell Hancox
488b28bfd5
SantaGUI: Log to syslog
2016-04-11 15:15:03 -04:00
Russell Hancox
0fceb7b2e1
SantaGUI: Post notifications to main thread using dispatch_async
2016-04-11 15:14:52 -04:00
Russell Hancox
a79d1a98e7
santactl/fileinfo: Only print "Signing Chain" header if certificates array isn't empty
2016-04-08 16:21:15 -04:00
Russell Hancox
43434fd445
santactl/fileinfo: Don't crash on <512b files
2016-04-08 16:20:49 -04:00
Russell Hancox
492e523884
Project: Move enums in SNTCommonEnums to NS_ENUM, part 2
2016-04-08 15:41:26 -04:00
Russell Hancox
3d1fdb7a2b
Project: Move enums in SNTCommonEnums to NS_ENUM, part 1
2016-04-08 15:17:32 -04:00
Russell Hancox
95a4bf0ec7
santad: Ensure launchd/santad rules are whitelisted on every startup
...
If they weren't already and the database is not new, log an error.
2016-04-08 15:16:12 -04:00
Russell Hancox
0d4f261e14
santad: Have SNTRuleTable return NSError when failing to add rules so user can see why
2016-04-08 15:07:43 -04:00
Russell Hancox
e96288b41b
santad: Exclusive-lock rules.db when opening
2016-04-08 12:11:08 -04:00
Russell Hancox
deda1abcf7
SantaGUI: Detect value type for silenced notifications to prevent crashes from bad plist
2016-04-08 10:32:48 -04:00
Russell Hancox
0e9e445ddf
SantaGUI: Reconnect when listener loses a client.
...
Also move WEAKIFY/STRONGIFY macros into their own header.
2016-04-07 17:03:09 -04:00
Russell Hancox
6e27590b57
SantaGUI: Add 'dismiss for a day' checkbox.
...
Fixes #39 .
2016-04-07 14:40:33 -04:00
Russell Hancox
916c3c7a2a
SNTXPCConnection: Re-add forced establishment of clients, better tests.
...
Previously SNTXPCConnection had two-way validation which, due to the method of
implementation, forced a client to connect to a server straight away. Once that
was removed, it meant invalidationHandlers aren't called if either end dies
before the connection is established.
This also puts back the acceptedHandler, which can be used to know when the
connection has finished being established (particularly useful on the server
side), updates the __weak stuff to use WEAKIFY/STRONGIFY macros (and now
actually switch them back to strong within each block) and make the
tests a lot better by using in-process anonymousListener's rather than
lots of mocking.
2016-04-06 23:25:55 -04:00
Russell Hancox
f5bd9bde7f
SantaGUI: Use ultralight system font for title of message window
2016-04-06 15:23:18 -04:00
Russell Hancox
b987f61924
SantaGUI: Fix centering constraint for publisher label
2016-04-06 15:22:21 -04:00
Russell Hancox
482b51a2f9
santactl/sync: Fix userAgent not being set
2016-04-05 14:52:48 -04:00
Russell Hancox
93f2078eda
SantaGUI: Fix some constraint bugs in MessageWindow
2016-04-04 18:15:20 -04:00
Russell Hancox
d282388266
santactl/sync: Release certificate after use
2016-04-01 17:31:24 -04:00
Russell Hancox
6ecdfcba38
santactl/sync: If unable to find client identity, let default handling occur.
2016-04-01 09:54:15 -04:00
Russell Hancox
58e24b3c11
santagui: Remove old comment, don't activateIgnoringOtherApps twice.
2016-03-31 09:27:38 -04:00
Russell Hancox
5f1b3a2284
santad: Initialize ppath to (null) before calling proc_pidpath
2016-03-30 16:12:52 -04:00
Russell Hancox
a2311e5128
santad: Attempt to load santa-driver before connecting to it
2016-03-29 14:08:29 -04:00
Russell Hancox
e94d42187b
santactl/sync: Don't log successful stages
...
Currently a standard succesful sync will print 4 success lines, one for
each stage that was run, followed by a line that the entire sync was
successful. As each stage will also log if it did anything, these
success messages aren't useful. Instead, just log if they failed.
2016-03-25 16:44:06 -04:00
Russell Hancox
2b99cc3f62
Logging: strncmp for binaryName
2016-03-25 14:20:46 -04:00
Russell Hancox
cb7f782893
santad: Fix typo in cert protection error
2016-03-23 17:45:08 -04:00
Russell Hancox
d5a0f8a74b
Logging: Remove extraneous ;
2016-03-23 16:46:38 -04:00
Russell Hancox
2ebd71df24
santactl/sync: Fix single-event upload with extra arguments
2016-03-23 16:46:21 -04:00
Russell Hancox
479203f47c
santa-driver: Style and type cleanups, inlining some small functions
2016-03-22 15:38:48 -04:00
Russell Hancox
771c2c868f
SantaGUI: Increase contrast of user-defined block window messages.
2016-03-21 18:00:02 -04:00
Russell Hancox
5285a728b1
santa-driver: Don't record fileop events from santad
2016-03-21 16:15:20 -04:00
Russell Hancox
41e6583920
SantaGUI: Improve accessiblity of message dialog
...
+ VoiceOver: add more useful label descriptions
+ VoiceOver: skip some fields
+ Color: increase contrast
2016-03-21 13:49:50 -04:00
Russell Hancox
cbb60b3a05
SantaGUI: Have daemon reply when setting notification listener so GUI can ensure it connected
2016-03-17 17:55:31 -04:00
Russell Hancox
cf1d1e3557
santa-driver: Better handle secondary volumes
2016-03-15 15:10:41 -04:00
Russell Hancox
8f05ee7d79
santa-driver: Rename some action types
2016-03-15 12:53:44 -04:00
Russell Hancox
641bd07c0b
Project: New icon
2016-03-14 16:38:07 -04:00
Russell Hancox
e0a46be1b7
santactl/fileinfo: When resolving path, store bundle ref if possible.
2016-03-14 12:55:20 -04:00
Russell Hancox
fd82c67b56
santactl/fileinfo: Add disk image file type
2016-03-14 12:55:20 -04:00
Russell Hancox
f0a83b6f19
santactl/fileinfo: Add simultaneous hashing.
2016-03-14 12:52:25 -04:00
Russell Hancox
736b45bb46
SNTXPCConnection: Remove client validation of server
...
Now that santad<->SantaGUI work more like the client/server they are,
having an SNTXPCConnection 'client' validate its server is no longer necessary.
Having the validation in the 'server' only simplifies the code.
2016-03-11 17:06:43 -05:00
Russell Hancox
8eae9b7cb7
santad/SantaGUI: Refactor GUI<>santad connection logic and add queuing.
...
Instead of having santad create a listener for SantaGUI to connect to
and then reverse the client-server relationship, have SantaGUI create an
anonymous listener that it sends to santad using the control interface.
Also add a queue for notifications so that blocks that occur while
SantaGUI isn't running will show up once it starts.
2016-03-11 14:58:12 -05:00
Russell Hancox
0aa2d2c613
santactl/fileinfo: Print useful info when codesign validation fails
2016-03-10 18:23:21 -05:00
Russell Hancox
606f507422
Project: Update CocoaPods
2016-03-10 16:34:08 -05:00
Russell Hancox
0e00237e44
Project: Add clang-format file, apply most of the fixes it suggested
2016-03-10 15:53:06 -05:00
Russell Hancox
e9ec9a7d7f
santad: Log quarantine URL if one exists.
...
Fixes #34
2016-03-10 13:24:31 -05:00
Russell Hancox
6834507f3a
XPC: Allow multiple XPC clients to a server
2016-03-10 12:21:49 -05:00
Russell Hancox
90e99255b1
santa-driver/santad: Split decision making and logging onto 2 data queues
...
This resolves an issue where the data queue can be overwhelmed by logging requests and fail to respond to decisions for an extended period of time.
2016-03-10 12:21:17 -05:00
Russell Hancox
b6487000a3
SNTFileInfo: Use NSBundle to find executable path in bundles.
...
Fixes #37
2016-03-10 12:19:52 -05:00
Russell Hancox
18ce2f72ed
Config: Fix config reloading
2016-03-10 12:18:05 -05:00
Russell Hancox
8a2d04bf69
santactl/rule: Fix print error
2016-03-09 15:41:27 -05:00
Russell Hancox
a210ffecec
Logging: Create one ASL client per-thread.
2016-03-07 17:31:31 -05:00