return result;
}
-static int audit_mkdir(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- mode_t mode)
-{
- int result;
-
- result = SMB_VFS_NEXT_MKDIR(handle, smb_fname, mode);
-
- syslog(audit_syslog_priority(handle), "mkdir %s %s%s\n",
- smb_fname->base_name,
- (result < 0) ? "failed: " : "",
- (result < 0) ? strerror(errno) : "");
-
- return result;
-}
-
static int audit_mkdirat(vfs_handle_struct *handle,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
.connect_fn = audit_connect,
.disconnect_fn = audit_disconnect,
.opendir_fn = audit_opendir,
- .mkdir_fn = audit_mkdir,
.mkdirat_fn = audit_mkdirat,
.rmdir_fn = audit_rmdir,
.open_fn = audit_open,