From: Timur I. Bakeyev Date: Fri, 22 Jun 2018 04:19:42 +0000 (+0800) Subject: Make "none" the default setting for the successful and failed operations in the vfs_f... X-Git-Tag: tevent-0.9.37~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d63b24d5ae7898d93cc5428b029bff83bd59e5dc;p=thirdparty%2Fsamba.git 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 Reviewed-by: Gary Lockyer Reviewed-by: Andrew Bartlett --- diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 5a7af1b7d47..7cef6a5e5cf 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -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,