aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools-grsec/putname.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/open-vm-tools-grsec/putname.patch')
-rw-r--r--main/open-vm-tools-grsec/putname.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/open-vm-tools-grsec/putname.patch b/main/open-vm-tools-grsec/putname.patch
new file mode 100644
index 0000000000..b605e12fa0
--- /dev/null
+++ b/main/open-vm-tools-grsec/putname.patch
@@ -0,0 +1,13 @@
+diff --git a/modules/linux/vmblock/linux/control.c b/modules/linux/vmblock/linux/control.c
+index 79716bd..2dd83fe 100644
+--- a/modules/linux/vmblock/linux/control.c
++++ b/modules/linux/vmblock/linux/control.c
+@@ -293,7 +293,7 @@ ExecuteBlockOp(const char __user *buf, // IN: buffer with name
+
+ retval = i < 0 ? -EINVAL : blockOp(name, blocker);
+
+- putname(name);
++ __putname(name);
+
+ return retval;
+ }