Skip to content

Commit

Permalink
log deny because of dirty vnode (#267)
Browse files Browse the repository at this point in the history
* log dirty vnode blocks

* review update
  • Loading branch information
tburgin committed May 25, 2018
1 parent ac7b95c commit e9a835a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/santa-driver/SantaDecisionManager.cc
Expand Up @@ -459,6 +459,11 @@ int SantaDecisionManager::VnodeCallback(const kauth_cred_t cred,
if (vnode_hasdirtyblks(vp)) {
RemoveFromCache(vnode_id);
returnedAction = ACTION_RESPOND_DENY;

char path[MAXPATHLEN];
int len = MAXPATHLEN;
path[MAXPATHLEN - 1] = 0;
LOGW("file has dirty blocks: %s", vn_getpath(vp, path, &len) ? "unknown" : path);
}

switch (returnedAction) {
Expand Down

0 comments on commit e9a835a

Please sign in to comment.