summaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools-grsec/0004-Use-new-link-helpers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/open-vm-tools-grsec/0004-Use-new-link-helpers.patch')
-rwxr-xr-xmain/open-vm-tools-grsec/0004-Use-new-link-helpers.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/main/open-vm-tools-grsec/0004-Use-new-link-helpers.patch b/main/open-vm-tools-grsec/0004-Use-new-link-helpers.patch
deleted file mode 100755
index a60fa6fae..000000000
--- a/main/open-vm-tools-grsec/0004-Use-new-link-helpers.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From 20437d731289126ee5363a6f73e4171d39f2e3d9 Mon Sep 17 00:00:00 2001
-From: "Scott M. Kroll" <skroll@gmail.com>
-Date: Mon, 14 Jul 2014 11:32:35 -0400
-Subject: [PATCH 4/5] Use new link helpers
-
-* vfs_follow_link was removed in 3.12.
-* vfs_readlink was removed in 3.15.
----
- open-vm-tools/modules/linux/vmhgfs/link.c | 15 +++++++++++++++
- 1 file changed, 15 insertions(+)
-
-diff --git a/open-vm-tools/modules/linux/vmhgfs/link.c b/open-vm-tools/modules/linux/vmhgfs/link.c
-index 9fb95a5..06ea953 100644
---- a/modules/linux/vmhgfs/link.c
-+++ b/modules/linux/vmhgfs/link.c
-@@ -110,9 +110,15 @@ HgfsFollowlink(struct dentry *dentry, // IN: Dentry containing link
- "on something that wasn't a symlink\n"));
- error = -EINVAL;
- } else {
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 12, 0)
-+ LOG(6, (KERN_DEBUG "VMware hgfs: HgfsFollowlink: calling "
-+ "nd_set_link\n"));
-+ nd_set_link(nd, fileName);
-+#else
- LOG(6, (KERN_DEBUG "VMware hgfs: HgfsFollowlink: calling "
- "vfs_follow_link\n"));
- error = vfs_follow_link(nd, fileName);
-+#endif
- }
- kfree(fileName);
- }
-@@ -172,9 +178,18 @@ HgfsReadlink(struct dentry *dentry, // IN: Dentry containing link
- "on something that wasn't a symlink\n"));
- error = -EINVAL;
- } else {
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)
-+ LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: calling "
-+ "readlink_copy\n"));
-+ LOG(6, (KERN_DEBUG "VMware hgfs: %s: calling "
-+ "readlink_copy\n",
-+ __func__));
-+ error = readlink_copy(buffer, buflen, fileName);
-+#else
- LOG(6, (KERN_DEBUG "VMware hgfs: HgfsReadlink: calling "
- "vfs_readlink\n"));
- error = vfs_readlink(dentry, buffer, buflen, fileName);
-+#endif
- }
- kfree(fileName);
- }
---
-2.0.1
-