mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Make "none" the default setting for the successful and failed operations in the vfs_full_audit, so you don't blow up your server by just adding this module to the configuration.
Signed-off-by: Timur I. Bakeyev <timur@iXsystems.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
32e5b18d49
commit
d63b24d5ae
@ -624,6 +624,7 @@ static int smb_full_audit_connect(vfs_handle_struct *handle,
|
||||
const char *svc, const char *user)
|
||||
{
|
||||
int result;
|
||||
const char *none[] = { "none" };
|
||||
struct vfs_full_audit_private_data *pd = NULL;
|
||||
|
||||
result = SMB_VFS_NEXT_CONNECT(handle, svc, user);
|
||||
@ -663,10 +664,10 @@ static int smb_full_audit_connect(vfs_handle_struct *handle,
|
||||
|
||||
pd->success_ops = init_bitmap(
|
||||
pd, lp_parm_string_list(SNUM(handle->conn), "full_audit",
|
||||
"success", NULL));
|
||||
"success", none));
|
||||
pd->failure_ops = init_bitmap(
|
||||
pd, lp_parm_string_list(SNUM(handle->conn), "full_audit",
|
||||
"failure", NULL));
|
||||
"failure", none));
|
||||
|
||||
/* Store the private data. */
|
||||
SMB_VFS_HANDLE_SET_DATA(handle, pd, NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user