aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorRichard Palethorpe <rpalethorpe@suse.com>2017-06-23 14:22:06 +0200
committerCyril Hrubis <chrubis@suse.cz>2017-07-19 12:43:45 +0200
commitb058919f905ad3a5f0e7aa633ba905808e26cf47 (patch)
tree7cb52dbda6f14872679650f639282318f5dac169 /m4
parent5bfa6fbed622fa09bc4ef9385a2e68580cf92b97 (diff)
downloadplatform_external_ltp-b058919f905ad3a5f0e7aa633ba905808e26cf47.tar.gz
platform_external_ltp-b058919f905ad3a5f0e7aa633ba905808e26cf47.tar.bz2
platform_external_ltp-b058919f905ad3a5f0e7aa633ba905808e26cf47.zip
Test for uname26 exploit CVE-2012-0957
Attempt to exploit the uname kernel memory leak which occurred when the UNAME26 personality was set. Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Diffstat (limited to 'm4')
-rw-r--r--m4/ltp-uname.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/m4/ltp-uname.m4 b/m4/ltp-uname.m4
new file mode 100644
index 000000000..5a3002200
--- /dev/null
+++ b/m4/ltp-uname.m4
@@ -0,0 +1,20 @@
+dnl Copyright (c) 2017 Richard Palethorpe <rpalethorpe@suse.com>
+dnl
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; either version 2 of the License, or
+dnl (at your option) any later version.
+dnl
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
+dnl the GNU General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+AC_DEFUN([LTP_CHECK_UNAME_DOMAINNAME],[
+AC_CHECK_MEMBERS([struct utsname.domainname],,,[
+#define _GNU_SOURCE
+#include <sys/utsname.h>
+])])