struct bitmap *success_ops;
struct bitmap *failure_ops;
int syslog_facility;
+ int syslog_priority;
};
#undef DBGC_CLASS
* Specify the facility to interoperate with other syslog callers
* (smbd for example).
*/
- priority = audit_syslog_priority(handle) | pd->syslog_facility;
+ priority = pd->syslog_priority | pd->syslog_facility;
audit_pre = audit_prefix(talloc_tos(), handle->conn);
syslog(priority, "%s|%s|%s|%s\n",
return -1;
}
+ pd->syslog_priority = audit_syslog_priority(handle);
+
#ifdef WITH_SYSLOG
openlog("smbd_audit", 0, pd->syslog_facility);
#endif