diff --git a/Source/santad/EventProviders/SNTEndpointSecurityFileAccessAuthorizer.mm b/Source/santad/EventProviders/SNTEndpointSecurityFileAccessAuthorizer.mm index 7c688d81c..2c85713f0 100644 --- a/Source/santad/EventProviders/SNTEndpointSecurityFileAccessAuthorizer.mm +++ b/Source/santad/EventProviders/SNTEndpointSecurityFileAccessAuthorizer.mm @@ -688,7 +688,7 @@ - (FileAccessPolicyDecision)handleMessage:(const Message &)msg // Notify users on block decisions if (ShouldNotifyUserDecision(policyDecision) && - (!policy->silent || (!policy->silent_tty && msg->process->tty->path.length > 0))) { + (!policy->silent || (!policy->silent_tty && TTYWriter::CanWrite(msg->process)))) { SNTCachedDecision *cd = [self.decisionCache cachedDecisionForFile:msg->process->executable->stat];