diff options
Diffstat (limited to 'source3/modules/vfs_audit.c')
-rw-r--r-- | source3/modules/vfs_audit.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c index 349600fc43..3377b5f849 100644 --- a/source3/modules/vfs_audit.c +++ b/source3/modules/vfs_audit.c @@ -25,6 +25,7 @@ #include "system/filesys.h" #include "system/syslog.h" #include "smbd/smbd.h" +#include "lib/param/loadparm.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_VFS @@ -40,7 +41,8 @@ static int audit_syslog_facility(vfs_handle_struct *handle) { LOG_LOCAL4, "LOCAL4" }, { LOG_LOCAL5, "LOCAL5" }, { LOG_LOCAL6, "LOCAL6" }, - { LOG_LOCAL7, "LOCAL7" } + { LOG_LOCAL7, "LOCAL7" }, + { -1, NULL} }; int facility; @@ -61,7 +63,8 @@ static int audit_syslog_priority(vfs_handle_struct *handle) { LOG_WARNING, "WARNING" }, { LOG_NOTICE, "NOTICE" }, { LOG_INFO, "INFO" }, - { LOG_DEBUG, "DEBUG" } + { LOG_DEBUG, "DEBUG" }, + { -1, NULL} }; int priority; @@ -103,9 +106,9 @@ static void audit_disconnect(vfs_handle_struct *handle) return; } -static SMB_STRUCT_DIR *audit_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr) +static DIR *audit_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr) { - SMB_STRUCT_DIR *result; + DIR *result; result = SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr); @@ -266,18 +269,18 @@ static int audit_fchmod_acl(vfs_handle_struct *handle, files_struct *fsp, mode_t static struct vfs_fn_pointers vfs_audit_fns = { .connect_fn = audit_connect, - .disconnect = audit_disconnect, - .opendir = audit_opendir, - .mkdir = audit_mkdir, - .rmdir = audit_rmdir, + .disconnect_fn = audit_disconnect, + .opendir_fn = audit_opendir, + .mkdir_fn = audit_mkdir, + .rmdir_fn = audit_rmdir, .open_fn = audit_open, .close_fn = audit_close, - .rename = audit_rename, - .unlink = audit_unlink, - .chmod = audit_chmod, - .fchmod = audit_fchmod, - .chmod_acl = audit_chmod_acl, - .fchmod_acl = audit_fchmod_acl + .rename_fn = audit_rename, + .unlink_fn = audit_unlink, + .chmod_fn = audit_chmod, + .fchmod_fn = audit_fchmod, + .chmod_acl_fn = audit_chmod_acl, + .fchmod_acl_fn = audit_fchmod_acl }; NTSTATUS vfs_audit_init(void) |