s3: Allow full_audit to play nice with smbd if it's using syslog
authortprouty <tprouty@b72e2a10-2d34-0410-9a71-d3beadf02b57>
Wed, 26 Aug 2009 01:38:14 +0000 (01:38 +0000)
committerTim Prouty <tprouty@samba.org>
Wed, 26 Aug 2009 17:41:54 +0000 (10:41 -0700)
commit3ad9d108a7404d625454efda0d000e4caa543e7a
treefc683940170ab25a915f945bc43b0ab269dc9ad8
parent22ee1cd7dbcd07470c915343872ee83ae90e3511
s3: Allow full_audit to play nice with smbd if it's using syslog

Explictly pass the facility from both smbd and full_audit to syslog.
Really the only major change is to not call openlog() in full_audit if
WITH_SYSLOG is defined, which implies that smbd is already using
syslog.  This allows full audit to piggy-back on the same ident as
smbd, while still differentiating the logging via the facility.
source3/lib/debug.c
source3/modules/vfs_full_audit.c