Russell Hancox
32707fb501
santa-driver: Fix rare panic in CacheCheck where lock upgrade fails.
...
lck_rw_lock_shared_to_exclusive can return false if a previous reader upgraded. The result is the lock being unlocked and the panic is caused when unlocking a lock that isn't locked.
2015-05-20 11:13:19 -04:00
Russell Hancox
536b8969ed
santactl/sync: LogUpload - logsToUpload is part of the same class, use self.
2015-05-18 16:31:43 -04:00
Russell Hancox
0db3b6d955
santactl/sync: Split out Log Upload request generation and Rule Download rule parsing from main request methods.
2015-05-18 14:33:21 -04:00
Russell Hancox
78bb9a1bd6
common: Correct comment on default loglevels
2015-05-18 13:06:31 -04:00
Russell Hancox
567e0b6431
santad: If exiting because of a failed dequeue, log the return code at ERROR level.
2015-05-18 13:06:31 -04:00
Russell Hancox
f2f27c5675
santa-driver: Up ACTION_REQUEST_SHUTDOWN from 60->90
2015-05-18 13:06:31 -04:00
Russell Hancox
5a7ac2287b
santa-driver: Stop defining MAX_PATH_LEN, use MAXPATHLEN instead.
...
I can't recall why I did this.
2015-05-18 13:06:31 -04:00
Russell Hancox
f82da21b75
santactl/sync: Bug from 8cd9898, call completion handler even if no rules are downloaded.
2015-05-15 10:38:26 -04:00
Russell Hancox
969a5ef94e
santactl/sync: Don't release SecAsn1Coder until we're done with its data.
2015-05-14 17:35:06 -04:00
Russell Hancox
fd7ad07193
santactl/sync: Handle DER decoding failures more gracefully.
2015-05-14 17:01:49 -04:00
Russell Hancox
3f5400b264
santa-driver: Split FetchDecision, notify daemon of missed executions, reorganize some methods.
2015-05-14 17:01:49 -04:00
Russell Hancox
466b5ed491
santa-driver: Make SantaDecisionManager::AddToCache default the microsecs parameter to the current uptime
2015-05-14 17:01:48 -04:00
Russell Hancox
25f1b71f10
santa-driver: Move dataqueue to SantaDecisionManager rather than
...
recreating it on every connect.
2015-05-14 17:01:48 -04:00
Russell Hancox
d1295f97b9
santa-driver: Rename owning_pid/proc to client_pid/proc. Minor style
...
cleanup
2015-05-14 17:01:48 -04:00
Russell Hancox
f5eb274aa0
santa-driver: remove unnecessary dataqueue lock
2015-05-14 17:01:48 -04:00
Russell Hancox
58b9dab74f
santa-driver: SDM should call super::init
2015-05-14 17:01:48 -04:00
Russell Hancox
9f6b6d10dc
santa-driver: Make room in santa_message_t->path for the terminator so we don't miss a character.
2015-05-14 17:01:47 -04:00
Russell Hancox
57f6e516c2
santa-driver: Mark all overriden methods with 'override'
2015-05-14 17:01:42 -04:00
Russell Hancox
8cd9898cf3
santactl/sync: Don't send empty rules array to daemon.
2015-05-11 16:27:02 -04:00
Russell Hancox
d53b04213a
santa-driver: Remove empty spacing at end of line
2015-05-08 14:58:16 -04:00
Russell Hancox
30df44df96
santad: Correctly delete corrupt events. Add test for this.
2015-05-08 14:57:37 -04:00
Russell Hancox
fc55b86f30
santad: Switch to uint32_t for table version numbers
2015-05-08 14:56:20 -04:00
Russell Hancox
59ffb67554
santad: Reject addRules requests with empty/nil array. Also switch to NSUInteger for rule counts.
2015-05-08 14:55:28 -04:00
Russell Hancox
d46b156b85
santa-driver: vnode_getattr sometimes panics if a vfs_context isn't available (when used with osxfuse for instance).
2015-05-07 18:24:29 -04:00
Russell Hancox
6492e70599
santactl: Instead of rejecting authentication challenges and trying again, cancel the whole request.
2015-05-07 17:56:47 -04:00
Russell Hancox
bc5d0f8685
santa-driver: Don't allow StopListener to return until both kauth scopes are done
2015-05-06 14:57:33 -04:00
Russell Hancox
838da16da1
santad: Delete events that fail to unarchive
2015-05-06 14:44:09 -04:00
Russell Hancox
6e242bf98d
SantaGUI: Change Line to custom NSBox
2015-05-05 17:44:06 -04:00
Russell Hancox
be1e66c29d
Project: Enable more warnings and then fix them.
2015-05-01 17:40:39 -04:00
Russell Hancox
57866308e3
santad: Consider scripts that are part of installer packages as in-scope.
2015-04-30 18:37:04 -04:00
Russell Hancox
63bc8fca2d
santad: Don't post GUI notification for SILENT_BLACKLIST rules.
2015-04-30 18:36:43 -04:00
Russell Hancox
408712f00f
santad: Don't log when client mode is not set in defaultDecision, as that can't actually happen.
2015-04-30 18:36:20 -04:00
Russell Hancox
8cb6046f94
GUI: Add parent process name, only show part of the shasum, resize window.
2015-04-30 18:24:54 -04:00
Russell Hancox
297fb4cb68
Add parent process name collection and upload
2015-04-30 18:21:13 -04:00
Russell Hancox
e747ace0f3
santactl/binaryinfo: Add bundle details to file info
2015-04-30 12:34:31 -04:00
Russell Hancox
6b96f36b2b
SantaGUI: Re-create AboutWindowController each time it's needed so that More Info button state is correct
2015-04-22 15:59:04 -04:00
Russell Hancox
f16fa691b5
santactl: include zlib.h instead of import
2015-04-21 16:43:09 -04:00
Russell Hancox
4fd5e1139f
Project: Style clean-ups
2015-04-21 14:29:30 -04:00
Russell Hancox
c12adbc8e6
Project: Update schemes to make Xcode be quiet.
2015-04-20 18:35:10 -04:00
Russell Hancox
10333bba01
santa-driver: Change file-write cache check, use FileOp scope for most writes and use hasdirtyblks to catch flushed but still-open files.
2015-04-20 18:07:22 -04:00
Russell Hancox
96517573e7
santactl/sync: rename SyncStatus->SyncState, add cleanSync option that can be requested by client or server.
2015-04-10 12:39:22 -04:00
Russell Hancox
c996921c22
GUI: Move window centering to the fadeIn method so it's only called when the window is displayed
2015-04-10 10:07:53 -04:00
Russell Hancox
8365e00a50
Sync: Decision should be uploaded as a string, not an int. Rename serial_no to serial_num
2015-04-09 10:02:21 -04:00
Russell Hancox
a629e6cff1
Clean-up: NSString length is quicker than isEqual
2015-04-09 10:01:44 -04:00
Russell Hancox
cbb786c6d1
Kext: Check fSharedMemory and fDataQueue before trying to release them in terminate()
2015-04-09 10:01:04 -04:00
Russell Hancox
49b169ec36
SNTFileWatcher: unset source event handler correctly
2015-04-08 14:22:24 -04:00
Russell Hancox
41d1d7e3de
SNTFileWatcher: fix some dispatch bugs, move eventHandler property to
...
class extension, add tests.
2015-04-08 12:29:41 -04:00
Russell Hancox
323a38dc21
Project: Clean-up block style, order of public/private in C++ headers
2015-04-08 12:29:22 -04:00
Russell Hancox
c37f1eb006
SNTConfigurator: remove auto-reloading code, move to file watching
...
class.
2015-04-08 12:28:58 -04:00
Russell Hancox
b7b2b5b630
santactl/status: Add daemon status, currently just the mode.
2015-04-01 16:15:35 -04:00