summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch')
-rw-r--r--meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch27
1 files changed, 14 insertions, 13 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch b/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
index b46325eaf3..350091a70c 100644
--- a/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
+++ b/meta/recipes-extended/ltp/ltp/0008-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
@@ -1,33 +1,34 @@
1From aa7a9185a037ad59012bd46713ac340458e95209 Mon Sep 17 00:00:00 2001 1From 4b7db094d6fc5659001ae8dc17078bb65d46b9c9 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com> 2From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com>
3Date: Fri, 13 May 2016 11:11:28 -0500 3Date: Fri, 13 May 2016 11:11:28 -0500
4Subject: [PATCH] testcases/network/nfsv4/acl/acl1.c: Security fix on 4Subject: [PATCH] acl: Security fix on string printf
5 string printf
6MIME-Version: 1.0 5MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
9 8
10Fixes: 9Fixes build error when compiled with -Werror=format-security:
11 10
12acl1.c: In function 'test_acl_default': 11acl1.c: In function ‘test_acl_default’:
13acl1.c:317:2: error: format not a string literal and no format arguments 12acl1.c:305:2: error: format not a string literal and no format arguments [-Werror=format-security]
14[-Werror=format-security] 13 305 | printf(cmd);
15 printf(cmd);
16 14
17[YOCTO #9548] 15Patch taken from openembedded-core,
16original bug report: https://bugzilla.yoctoproject.org/9548
18 17
19Upstream-Status: Pending 18[YOCTO #9548]
20 19
21Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> 20Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
21Signed-off-by: Petr Vorel <pvorel@suse.cz>
22Upstream-Status: accepted in 4b7db094d6fc5659001ae8dc17078bb65d46b9c9
22--- 23---
23 testcases/network/nfsv4/acl/acl1.c | 2 +- 24 testcases/network/nfsv4/acl/acl1.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-) 25 1 file changed, 1 insertion(+), 1 deletion(-)
25 26
26diff --git a/testcases/network/nfsv4/acl/acl1.c b/testcases/network/nfsv4/acl/acl1.c 27diff --git a/testcases/network/nfsv4/acl/acl1.c b/testcases/network/nfsv4/acl/acl1.c
27index bdf0180..898b7ca 100644 28index aae9484e5..ad778cd33 100644
28--- a/testcases/network/nfsv4/acl/acl1.c 29--- a/testcases/network/nfsv4/acl/acl1.c
29+++ b/testcases/network/nfsv4/acl/acl1.c 30+++ b/testcases/network/nfsv4/acl/acl1.c
30@@ -303,7 +303,7 @@ void test_acl_default(char *dir, acl_t acl) 31@@ -302,7 +302,7 @@ void test_acl_default(char *dir, acl_t acl)
31 char *cmd = malloc(256); 32 char *cmd = malloc(256);
32 33
33 strcpy(cmd, "chmod 7777 "); 34 strcpy(cmd, "chmod 7777 ");
@@ -37,5 +38,5 @@ index bdf0180..898b7ca 100644
37 system(cmd); 38 system(cmd);
38 acl2 = acl_get_file(path, ACL_TYPE_ACCESS); 39 acl2 = acl_get_file(path, ACL_TYPE_ACCESS);
39-- 40--
402.7.4 412.25.1
41 42