From: Karoly Kasza <kaszak@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] openvmtools: add patch to use KVERS instead of shell exec.
Date: Wed, 25 Feb 2015 23:14:35 +0100 [thread overview]
Message-ID: <1424902476-24448-1-git-send-email-kaszak@gmail.com> (raw)
Add patch to use $(KVERS) instead of shell exec uname.
Originally from Debian.
Signed-off-by: Karoly Kasza <kaszak@gmail.com>
---
package/openvmtools/0008-kvers.patch | 75 ++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
create mode 100644 package/openvmtools/0008-kvers.patch
diff --git a/package/openvmtools/0008-kvers.patch b/package/openvmtools/0008-kvers.patch
new file mode 100644
index 0000000..f432dbb
--- /dev/null
+++ b/package/openvmtools/0008-kvers.patch
@@ -0,0 +1,75 @@
+Use KVERS instead of shell exec uname.
+
+Patch from Debian.
+
+Original author: Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>
+Original description: Replacing uname call with KVERS, overwriting seemed not to work.
+
+Signed-off-by: Karoly Kasza <kaszak@gmail.com>
+
+--- a/modules/linux/vmblock/Makefile
++++ b/modules/linux/vmblock/Makefile
+@@ -43,7 +43,7 @@ INCLUDE += -I$(SRCROOT)/shared
+ endif
+
+
+-VM_UNAME = $(shell uname -r)
++VM_UNAME = $(KVERS)
+
+ # Header directory for the running kernel
+ ifdef LINUXINCLUDE
+--- a/modules/linux/vmci/Makefile
++++ b/modules/linux/vmci/Makefile
+@@ -43,7 +43,7 @@ INCLUDE += -I$(SRCROOT)/shared
+ endif
+
+
+-VM_UNAME = $(shell uname -r)
++VM_UNAME = $(KVERS)
+
+ # Header directory for the running kernel
+ ifdef LINUXINCLUDE
+--- a/modules/linux/vmhgfs/Makefile
++++ b/modules/linux/vmhgfs/Makefile
+@@ -43,7 +43,7 @@ INCLUDE += -I$(SRCROOT)/shared
+ endif
+
+
+-VM_UNAME = $(shell uname -r)
++VM_UNAME = $(KVERS)
+
+ # Header directory for the running kernel
+ ifdef LINUXINCLUDE
+--- a/modules/linux/vmsync/Makefile
++++ b/modules/linux/vmsync/Makefile
+@@ -43,7 +43,7 @@ INCLUDE += -I$(SRCROOT)/shared
+ endif
+
+
+-VM_UNAME = $(shell uname -r)
++VM_UNAME = $(KVERS)
+
+ # Header directory for the running kernel
+ ifdef LINUXINCLUDE
+--- a/modules/linux/vmxnet/Makefile
++++ b/modules/linux/vmxnet/Makefile
+@@ -43,7 +43,7 @@ INCLUDE += -I$(SRCROOT)/shared
+ endif
+
+
+-VM_UNAME = $(shell uname -r)
++VM_UNAME = $(KVERS)
+
+ # Header directory for the running kernel
+ ifdef LINUXINCLUDE
+--- a/modules/linux/vsock/Makefile
++++ b/modules/linux/vsock/Makefile
+@@ -43,7 +43,7 @@ INCLUDE += -I$(SRCROOT)/shared
+ endif
+
+
+-VM_UNAME = $(shell uname -r)
++VM_UNAME = $(KVERS)
+
+ # Header directory for the running kernel
+ ifdef LINUXINCLUDE
--
1.7.10.4
next reply other threads:[~2015-02-25 22:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 22:14 Karoly Kasza [this message]
2015-02-25 22:14 ` [Buildroot] [PATCH 2/2] openvmtools: add patch to defend from lsb path walking attack Karoly Kasza
2015-03-08 21:24 ` Romain Naour
2015-03-08 21:39 ` [Buildroot] [PATCH 1/2] openvmtools: add patch to use KVERS instead of shell exec Romain Naour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424902476-24448-1-git-send-email-kaszak@gmail.com \
--to=kaszak@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox