From: Jeremy Allison Date: Thu, 22 Aug 2019 21:52:43 +0000 (-0700) Subject: s3: VFS: vfs_full_audit. Remove readlink_fn(). No longer used. X-Git-Tag: tevent-0.10.1~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=021da2f1522b373afeb20350ab2f86aae6f785e6;p=thirdparty%2Fsamba.git s3: VFS: vfs_full_audit. Remove readlink_fn(). No longer used. NB, this will now fail smb_vfs_assert_all_fns() until we remove the mknod_fn() from the VFS definitions. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme --- diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 9773166d5d0..2f74c4ccc4a 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -152,7 +152,6 @@ typedef enum _vfs_op_type { SMB_VFS_OP_LINUX_SETLEASE, SMB_VFS_OP_GETLOCK, SMB_VFS_OP_SYMLINK, - SMB_VFS_OP_READLINK, SMB_VFS_OP_READLINKAT, SMB_VFS_OP_LINKAT, SMB_VFS_OP_MKNODAT, @@ -296,7 +295,6 @@ static struct { { SMB_VFS_OP_LINUX_SETLEASE, "linux_setlease" }, { SMB_VFS_OP_GETLOCK, "getlock" }, { SMB_VFS_OP_SYMLINK, "symlink" }, - { SMB_VFS_OP_READLINK, "readlink" }, { SMB_VFS_OP_READLINKAT,"readlinkat" }, { SMB_VFS_OP_LINKAT, "linkat" }, { SMB_VFS_OP_MKNODAT, "mknodat" }, @@ -1741,21 +1739,6 @@ static int smb_full_audit_symlink(vfs_handle_struct *handle, return result; } -static int smb_full_audit_readlink(vfs_handle_struct *handle, - const struct smb_filename *smb_fname, - char *buf, - size_t bufsiz) -{ - int result; - - result = SMB_VFS_NEXT_READLINK(handle, smb_fname, buf, bufsiz); - - do_log(SMB_VFS_OP_READLINK, (result >= 0), handle, "%s", - smb_fname->base_name); - - return result; -} - static int smb_full_audit_readlinkat(vfs_handle_struct *handle, files_struct *dirfsp, const struct smb_filename *smb_fname, @@ -2910,7 +2893,6 @@ static struct vfs_fn_pointers vfs_full_audit_fns = { .linux_setlease_fn = smb_full_audit_linux_setlease, .getlock_fn = smb_full_audit_getlock, .symlink_fn = smb_full_audit_symlink, - .readlink_fn = smb_full_audit_readlink, .readlinkat_fn = smb_full_audit_readlinkat, .linkat_fn = smb_full_audit_linkat, .mknodat_fn = smb_full_audit_mknodat,