Skip to content

Commit

Permalink
Fix debug logging messages to prevent confusion with RestrictEvents' …
Browse files Browse the repository at this point in the history
…messages.
  • Loading branch information
flagersgit committed Aug 6, 2021
1 parent 43266ba commit 12c2ec6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MDMBlock/MDMBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ struct MDMBlockPolicy {

if (err == 0) {
// Uncomment for more verbose output.
DBGLOG_COND(verboseProcessLogging, "rev", "got request %s", pathbuf);
DBGLOG_COND(verboseProcessLogging, "mdmb", "got request %s", pathbuf);

for (auto &proc : procBlacklist) {
if (strcmp(pathbuf, proc) == 0) {
DBGLOG("rev", "restricting process %s", pathbuf);
DBGLOG("mdmb", "restricting process %s", pathbuf);
return EPERM;
}
}
Expand All @@ -63,7 +63,7 @@ struct MDMBlockPolicy {
* Default dummy BSD init policy
*/
static void policyInitBSD(mac_policy_conf *conf) {
DBGLOG("rev", "init bsd policy on %u", getKernelVersion());
DBGLOG("mdmb", "init bsd policy on %u", getKernelVersion());
}

/**
Expand Down Expand Up @@ -109,7 +109,7 @@ PluginConfiguration ADDPR(config) {
KernelVersion::MountainLion,
KernelVersion::Monterey,
[]() {
DBGLOG("rev", "restriction policy plugin loaded");
DBGLOG("mdmb", "restriction policy plugin loaded");
verboseProcessLogging = checkKernelArgument("-mdmbproc");
mdmBlockPolicy.policy.registerPolicy();
}
Expand Down

0 comments on commit 12c2ec6

Please sign in to comment.