summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-05-13 14:49:24 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-15 09:06:00 +0100
commiteecba7171dc18fd1015d29a4de0c5a6669bf1d70 (patch)
tree90cf8a3e888a289d9721260ec67bc2b9cb186468
parent574e9f4b4334807faad40a2d23c350f266d6febb (diff)
downloadpoky-eecba7171dc18fd1015d29a4de0c5a6669bf1d70.tar.gz
ltp: Fixes security string printf on testcases/network/nfsv4/acl/acl1.c
[YOCTO #9548] (From OE-Core rev: 9738bbcee1f0ad274a2c62bb483311ef99238ea6) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/ltp/ltp/0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch41
-rw-r--r--meta/recipes-extended/ltp/ltp_20160126.bb1
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch b/meta/recipes-extended/ltp/ltp/0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
new file mode 100644
index 0000000000..8f285d14a1
--- /dev/null
+++ b/meta/recipes-extended/ltp/ltp/0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
@@ -0,0 +1,41 @@
1From 672a56be14426eae44864673c6c2afca0ab89d46 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com>
3Date: Fri, 13 May 2016 11:11:28 -0500
4Subject: [PATCH] testcases/network/nfsv4/acl/acl1.c: Security fix on string
5 printf
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Fixes:
11
12acl1.c: In function 'test_acl_default':
13acl1.c:317:2: error: format not a string literal and no format arguments
14[-Werror=format-security]
15 printf(cmd);
16
17[YOCTO #9548]
18
19Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
20
21Upstream-status: Pending
22---
23 testcases/network/nfsv4/acl/acl1.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
25
26diff --git a/testcases/network/nfsv4/acl/acl1.c b/testcases/network/nfsv4/acl/acl1.c
27index b8b67b4..7c7c506 100644
28--- a/testcases/network/nfsv4/acl/acl1.c
29+++ b/testcases/network/nfsv4/acl/acl1.c
30@@ -314,7 +314,7 @@ void test_acl_default(char *dir, acl_t acl)
31 char *cmd = malloc(256);
32
33 strcpy(cmd, "chmod 7777 ");
34- printf(cmd);
35+ printf(cmd, NULL);
36 strcat(cmd, dir);
37 system(cmd);
38 acl2 = acl_get_file(path, ACL_TYPE_ACCESS);
39--
402.1.4
41
diff --git a/meta/recipes-extended/ltp/ltp_20160126.bb b/meta/recipes-extended/ltp/ltp_20160126.bb
index 097c16d570..278f492e81 100644
--- a/meta/recipes-extended/ltp/ltp_20160126.bb
+++ b/meta/recipes-extended/ltp/ltp_20160126.bb
@@ -62,6 +62,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \
62 file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \ 62 file://0033-shmat1-Cover-GNU-specific-code-under-__USE_GNU.patch \
63 file://0034-periodic_output.patch \ 63 file://0034-periodic_output.patch \
64 file://0035-fix-test_proc_kill-hang.patch \ 64 file://0035-fix-test_proc_kill-hang.patch \
65 file://0001-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch \
65 " 66 "
66 67
67S = "${WORKDIR}/git" 68S = "${WORKDIR}/git"