Skip to content

Commit

Permalink
minor fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
mlw committed Mar 5, 2024
1 parent 106c788 commit e47bfdc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion Source/santactl/Commands/SNTCommandRule.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/// Copyright 2015 Google Inc. All rights reserved.
///
/// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions Source/santad/SNTPolicyProcessor.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ - (nonnull SNTCachedDecision *)decisionForFileInfo:(nonnull SNTFileInfo *)fileIn
// intentional fallthrough
case SNTRuleStateBlock:
cd.customMsg = rule.customMsg;
cd.customURL = rule.customURL;
cd.decision = SNTEventStateBlockCDHash;
return cd;
default: break;
Expand Down
3 changes: 2 additions & 1 deletion Source/santad/SantadTest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ static int HexCharToInt(char hex) {
return -1;
}
}
void SetBinaryDataFromHexString(const char *hexStr, uint8_t *buf, size_t bufLen) {

static void SetBinaryDataFromHexString(const char *hexStr, uint8_t *buf, size_t bufLen) {
assert(hexStr != NULL);
size_t hexStrLen = strlen(hexStr);
assert(hexStrLen > 0);
Expand Down
5 changes: 2 additions & 3 deletions docs/concepts/rules.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

---
parent: Concepts
---
Expand All @@ -12,8 +11,8 @@ binaries with Santa on macOS.

### CDHash Rules

CDHash rules use the a binary's code directory hash as an identifier. This is
the most specific rule in Santa. The code directory hash identifies a specific
CDHash rules use a binary's code directory hash as an identifier. This is the
most specific rule in Santa. The code directory hash identifies a specific
version of a program, similar to a file hash. Note that the operating system
evaluates the cdhash lazily, only verifying pages of code when they're mapped
in. This means that it is possible for a file hash to change, but a binary could
Expand Down

0 comments on commit e47bfdc

Please sign in to comment.