Commit Graph

  • b07835dfd5 santad: Cache user/group id->name lookups. Russell Hancox 2016-08-09 12:51:36 -04:00
  • 4c33aa2aae santad: Improve loggedInUsers:sessions: Russell Hancox 2016-08-05 13:59:21 -04:00
  • 3c255640cb santad: Speed up TTY message creation Russell Hancox 2016-08-05 12:36:59 -04:00
  • 3d08ba9ebc santa-driver: Use msleep/wakeup instead of IOSleep. Russell Hancox 2016-08-03 09:27:53 -04:00
  • f64482500e santa-driver: Add debug logging of decision times to GetFromDaemon Russell Hancox 2016-08-02 16:49:43 -04:00
  • 215902f192 SantaCache: Extract entry value before unlocking bucket. Russell Hancox 2016-07-19 16:28:35 -04:00
  • 3e9c3a069d Project: Pod update Russell Hancox 2016-07-19 14:44:51 -04:00
  • 841fb48479 santa-driver: Only send file mod notifications to queue if client is connected. Russell Hancox 2016-07-14 13:45:13 -04:00
  • df8e41925f SNTFileInfo: Check NSURLQuarantinePropertiesKey is usable Russell Hancox 2016-07-13 17:29:53 -04:00
  • 6b0994a990 santad: Avoid properties in critical path 0.9.12 Russell Hancox 2016-07-12 15:34:40 -04:00
  • 7dd616e891 santa-driver: Switch SantaCache from an array to a linked list Russell Hancox 2016-06-21 13:04:18 -04:00
  • c672edbe4d Whitespace clean-up Russell Hancox 2016-07-12 14:51:10 -04:00
  • 687ecc7097 santad: Close more file descriptors on exec Russell Hancox 2016-07-11 16:23:38 -04:00
  • b8882b4826 santactl/fileinfo: Wait longer for daemon response. Russell Hancox 2016-07-08 16:54:22 -04:00
  • 51de0b38a4 santad: Change watchdog thread interval to 30s Russell Hancox 2016-07-07 12:40:27 -04:00
  • e0309c0482 SantaGUI: In keyPathsForValuesAffectingValueForKey, return an empty set rather than nil Russell Hancox 2016-07-11 15:53:04 -04:00
  • 5dbe86869d santad: Move event storage out of the high priority decision queue Russell Hancox 2016-07-01 16:37:21 -04:00
  • 14a11279c7 Project: Remove activesupport from travis settings. Russell Hancox 2016-07-01 14:13:19 -04:00
  • df0ce42377 Merge pull request #54 from georgekola/gk-avoid-string-copy Russell Hancox 2016-07-01 17:09:54 -04:00
  • 4c03411405 Avoid two string copies George Kola 2016-07-01 14:07:23 -07:00
  • f020e18238 Project: Update to MOLCertificate 1.5 Russell Hancox 2016-07-01 13:02:07 -04:00
  • 629bd4aff9 santad: argsForPid: Don't replace last NULL but still count up to it Russell Hancox 2016-06-30 16:36:32 -04:00
  • f20825a66c Project: Increase optimization level for Pods Russell Hancox 2016-06-30 14:36:16 -04:00
  • f098ca0d02 santad: Update argsForPid to append to a given string. Russell Hancox 2016-06-28 21:17:00 -07:00
  • 1f96f74f4d Merge pull request #52 from georgekola/gk-pread Russell Hancox 2016-06-29 14:27:22 -04:00
  • 7a3a98c27a Correctly use pread George Kola 2016-06-28 21:17:00 -07:00
  • 1130448cb9 Merge pull request #53 from georgekola/gk-cacheCalls Russell Hancox 2016-06-29 08:20:59 -04:00
  • d388e99c0e Cache method call George Kola 2016-06-28 21:26:35 -07:00
  • 2baea9a6b4 Project: Xcode recommended updates. Russell Hancox 2016-06-28 17:34:58 -04:00
  • 0629625a9a santad: Move log queue down to BACKGROUND priority. Russell Hancox 2016-06-28 17:21:07 -04:00
  • a2d0acc761 santad: sanitizeString: Use cached length value, use lengthOfBytesUsingEncoding: instead of length. Russell Hancox 2016-06-28 17:02:37 -04:00
  • 28a6bce90f santad: sanitizeString: Only allocate buffer if necessary. Russell Hancox 2016-06-28 16:35:50 -04:00
  • 9058192ffe santad: Use memcpy instead of strncpy where appropriate Russell Hancox 2016-06-28 16:17:04 -04:00
  • 465b358271 SantaCache: Initialize count_ to 0. Russell Hancox 2016-06-28 15:01:57 -04:00
  • 7de585fe1d santad: Replace sanitizeString with simple loop. Russell Hancox 2016-06-28 13:05:20 -04:00
  • 8479730c95 SNTFileInfo: Catch potential NULL-pointer deref in isScript and isXARArchive. Russell Hancox 2016-06-28 14:54:21 -04:00
  • 7102e2df4c SNTFileInfo: More speed-ups in hashing, use RDAHEAD, don't use NOCACHE, catch EINTR. Russell Hancox 2016-06-28 14:52:28 -04:00
  • c3bd99ff93 santad: Use serial queues instead of NSLock Russell Hancox 2016-06-28 14:51:27 -04:00
  • c560405a46 SNTFileInfo: Speed up hashing - increase chunksize, read directly, use fcntl Russell Hancox 2016-06-27 17:36:27 -04:00
  • 0c0fb28ccc santad: Make argsForPid more reliable and 33% faster Russell Hancox 2016-06-27 15:52:41 -04:00
  • a33fce942c santad: Use regex to sanitize incoming strings, which is ~6x faster. Russell Hancox 2016-06-27 13:11:15 -04:00
  • 369cd40ee5 santad: Also optimize file logging by using NSMutableString Russell Hancox 2016-06-27 12:51:29 -04:00
  • 577b431a41 santad: Put locks around NSMutableDictionary in SNTEventLog and SNTExecutionController. Russell Hancox 2016-06-27 12:48:36 -04:00
  • 75cf8acd33 Project: Enable more compiler optimizations. Russell Hancox 2016-06-27 10:08:38 -04:00
  • d70983962b Merge pull request #50 from georgekola/gk-optimize-log1 Russell Hancox 2016-06-27 10:05:46 -04:00
  • ff440984b0 Merge pull request #51 from georgekola/gk-optimize-fprintf Russell Hancox 2016-06-27 09:48:53 -04:00
  • c631155be7 Using fwrite as we know the length of string George Kola 2016-06-25 18:50:03 -07:00
  • 6038930755 Optimize logging by using one pre-allocated NSMutableString George Kola 2016-06-25 18:47:05 -07:00
  • 9edc119c62 Merge pull request #49 from russellhancox/kernel-hashtable Tom Burgin 2016-06-20 13:16:09 -04:00
  • 269a94bf03 SantaCache: Updates from PR: Russell Hancox 2016-06-20 13:14:50 -04:00
  • 7f3e4d7468 santa-driver: Re-implement caching to avoid OSDictionary. Russell Hancox 2016-05-12 17:20:47 -04:00
  • eb89891cdd Merge pull request #48 from tburgin/tom Russell Hancox 2016-06-17 16:17:38 -04:00
  • 038b068370 u_int64_t --> uint64_t. CacheCheck --> RemoveFromCache. Tom Burgin 2016-06-17 15:53:42 -04:00
  • d2017a59de Get back file status from the kernel cache Tom Burgin 2016-06-17 12:45:05 -04:00
  • 3435b56a84 Add checkcache command to santactl. It will check to see if the vnode id of a file is in the kernel cache Tom Burgin 2016-06-17 12:03:26 -04:00
  • a812558d2d santad: Remove hashes from file write logs Russell Hancox 2016-06-14 17:00:04 -04:00
  • aefd85455e Project: s/OS X/macOS/g Russell Hancox 2016-06-14 11:59:14 -04:00
  • e42f1347b7 santad: Use IORegistryEntryFromPath instead of IORegistryEntryCopyFromPath. Russell Hancox 2016-06-13 21:38:31 -04:00
  • c7442a03d1 santa-driver: Use KAUTH_VNODE_WRITE_DATA instead of KAUTH_FILEOP_CLOSE to catch writes Russell Hancox 2016-06-13 17:48:47 -04:00
  • 1eda8bdd9d KernelTests: Add test for overwritten file that was auto-closed Russell Hancox 2016-06-13 17:35:56 -04:00
  • c4d0628bdb santad: Increase detail in TTY messages. Russell Hancox 2016-06-13 12:38:55 -04:00
  • d51ae66242 santactl: Only resume in CommandContoller when its required, otherwise leave it to individual command Russell Hancox 2016-06-10 12:46:55 -04:00
  • 121dde6b8b KernelTests: Add cache speed test and secondary client rejection test Russell Hancox 2016-06-08 18:06:23 -04:00
  • 98081b067d Merge pull request #45 from clburlison/patch-1 Russell Hancox 2016-06-09 16:53:54 -04:00
  • 8cc9345b42 Update style guide links Clayton Burlison 2016-06-09 15:52:48 -05:00
  • f7528365b0 Project: Have rake dist make the correct folder name from the version tag 0.9.11 Russell Hancox 2016-06-07 12:05:17 -04:00
  • 7baa1a345e SNTFileWatcher: Don't call handler on main thread, sleep between handler invocations Russell Hancox 2016-06-07 11:40:12 -04:00
  • acf7f4fd52 SantaGUI: Don't reload config file if attributes change (as it will trigger an attribute change) Russell Hancox 2016-06-07 11:38:48 -04:00
  • f43e8680b8 santad: Improve SNTFileWatcher, update config file permissions if they change 0.9.10 Russell Hancox 2016-06-06 16:15:28 -04:00
  • 545a6c1b36 santad: Ensure config file reloading is handled on main thread Russell Hancox 2016-06-06 11:31:36 -04:00
  • f01fd8c850 Project: Try and fix CocoaPods on Travis Russell Hancox 2016-06-03 12:54:41 -04:00
  • c9ec69b0b5 Tests: Fix OCMock misuse in testPreflightDatabaseCounts. Russell Hancox 2016-06-03 12:43:03 -04:00
  • 3640e2c5f0 santad: Add a workaround for PrinterProxy Russell Hancox 2016-06-02 17:44:15 -04:00
  • b3659cb456 santad: Don't spawn an event upload if one for this hash happened in the last 10 minutes Russell Hancox 2016-05-31 18:07:56 -04:00
  • 76284a2916 santad: Log disk mount/unmount events Russell Hancox 2016-05-31 18:07:34 -04:00
  • 40b1e011bd SantaGUI/santad: Add option to send bundled binaries to a different detail URL Russell Hancox 2016-05-27 17:35:32 -04:00
  • e0bebecd59 santactl/sync: Switch bundle binary uploading Russell Hancox 2016-05-27 17:11:51 -04:00
  • 8ac0cf6831 santad: Catch exceptions writing to TTY Russell Hancox 2016-05-26 16:23:11 -04:00
  • 992163206d Project: Switch to MOLAuthenticatingURLSession Pod. Russell Hancox 2016-05-25 18:21:33 -04:00
  • 86dd5d8078 santactl/sync: Refactor to reduce repetition, support XSRF tokens and add tests. Russell Hancox 2016-04-28 22:28:23 -04:00
  • 932aa9d052 santad: For single-event syncs, use syslog logging Russell Hancox 2016-05-25 17:52:53 -04:00
  • 5f7f5204ec santad: Flush cache when switching into lockdown mode Russell Hancox 2016-05-25 11:04:53 -04:00
  • a154d23637 SantaGUI: Add customizable notifications when client switches modes. Russell Hancox 2016-05-25 11:04:35 -04:00
  • ac2bb9d362 SNTBlockMessage: Move HTML stripping to separate method Russell Hancox 2016-05-24 16:32:25 -04:00
  • b918958bfa santactl/fileinfo: Don't fail if santad isn't running, colorize rule output on a TTY. Russell Hancox 2016-05-12 14:46:01 -04:00
  • 215df4ffa6 santactl: Always try to get daemonConn but only log and exit if it's marked as required Russell Hancox 2016-05-12 14:41:49 -04:00
  • bb28bc5875 SNTXPCConnection: Ensure validation completes before returning remoteObjectProxy Russell Hancox 2016-05-12 14:40:42 -04:00
  • a82bc3f712 SNTXPCConnection: Don't track accepted connections, it isn't useful. Russell Hancox 2016-05-12 14:39:49 -04:00
  • b3a507014b Project: Update to CocoaPods 1.0 Russell Hancox 2016-05-12 12:47:35 -04:00
  • 49c5e35a14 santad: Improve TTY message output. Russell Hancox 2016-05-19 19:08:03 -04:00
  • 869ed33bd4 santactl/fileinfo: Show when code signature is adhoc Russell Hancox 2016-05-03 14:15:22 -04:00
  • 0c4a9be482 santad: Write message to TTY when blocking execution Russell Hancox 2016-04-20 12:53:58 +02:00
  • 4410ec575a santactl/fileinfo: Include rule state info Russell Hancox 2016-04-28 16:07:24 -04:00
  • e3b92fc948 santactl/sync: Upload rule counts in preflight Russell Hancox 2016-04-28 16:07:04 -04:00
  • 4ca4692a67 santactl/flushcache: Disable flushcache in release builds. Russell Hancox 2016-04-28 15:00:10 -04:00
  • c1284d3c23 Project: Re-organize file structure, again Russell Hancox 2016-04-28 14:11:50 -04:00
  • c8c0eadf72 santactl/fileinfo: Make file type output more accurate for executables Russell Hancox 2016-04-28 10:54:54 -04:00
  • f4bbc8abc7 santactl/sync: Log successful stages as debug Russell Hancox 2016-04-27 14:41:50 -04:00
  • a0f6ea57f8 SantaGUI: If SilencedNotifications key doesn't exist, create it Russell Hancox 2016-04-27 14:19:25 -04:00
  • 88d21a07ac santad, santactl/sync: Include Bundle Path in event upload data. Russell Hancox 2016-04-26 17:35:29 -04:00