diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2019-02-25 16:02:52 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-26 23:04:31 +0000 |
commit | 9ea8ca7f62ea5e9865f871ef79337b2fa9867cdc (patch) | |
tree | e5f2b788b75b585bb55409769392cbd0f4032b0d /meta/recipes-extended/ltp/ltp_20190115.bb | |
parent | ce9a6606d7791320502383f92cf4d9935f09a2b3 (diff) | |
download | poky-9ea8ca7f62ea5e9865f871ef79337b2fa9867cdc.tar.gz |
ltp: Add patch for string formatting security warning
A revamp of the syscalls/setregid tests made to use a new
library [LTP:7a1b4427] required a conversion to test messages.
This test in particular did not include a formatted string,
but a just a string element:
testcases/kernel/syscalls/setregid/setregid01.c
This patch allows LTP to be built with -Wformat,
-Wformat-security, and -Werror=format-security.
(From OE-Core rev: ecee899dec53d324053112ed8764268fef930408)
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp_20190115.bb')
-rw-r--r-- | meta/recipes-extended/ltp/ltp_20190115.bb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/recipes-extended/ltp/ltp_20190115.bb b/meta/recipes-extended/ltp/ltp_20190115.bb index ed1cb27112..ddf97e26ce 100644 --- a/meta/recipes-extended/ltp/ltp_20190115.bb +++ b/meta/recipes-extended/ltp/ltp_20190115.bb | |||
@@ -29,11 +29,6 @@ CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__" | |||
29 | CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__" | 29 | CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__" |
30 | SRCREV = "a6a5caef13632e669dda27b0461726eba546a2f3" | 30 | SRCREV = "a6a5caef13632e669dda27b0461726eba546a2f3" |
31 | 31 | ||
32 | # ltp doesn't currently build cleanly with | ||
33 | # "-Wformat -Wformat-security -Werror=format-security" in CFLAGS | ||
34 | # remove this when it does | ||
35 | SECURITY_STRINGFORMAT = "" | ||
36 | |||
37 | SRC_URI = "git://github.com/linux-test-project/ltp.git \ | 32 | SRC_URI = "git://github.com/linux-test-project/ltp.git \ |
38 | file://0004-build-Add-option-to-select-libc-implementation.patch \ | 33 | file://0004-build-Add-option-to-select-libc-implementation.patch \ |
39 | file://0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch \ | 34 | file://0005-kernel-controllers-Link-with-libfts-explicitly-on-mu.patch \ |
@@ -53,6 +48,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ | |||
53 | file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \ | 48 | file://0039-commands-ar01-Fix-for-test-in-deterministic-mode.patch \ |
54 | file://0001-open_posix_testsuite-mmap24-2-Relax-condition-a-bit.patch \ | 49 | file://0001-open_posix_testsuite-mmap24-2-Relax-condition-a-bit.patch \ |
55 | file://define-sigrtmin-and-sigrtmax-for-musl.patch \ | 50 | file://define-sigrtmin-and-sigrtmax-for-musl.patch \ |
51 | file://setregid01-security-string-formatting.patch \ | ||
56 | " | 52 | " |
57 | 53 | ||
58 | S = "${WORKDIR}/git" | 54 | S = "${WORKDIR}/git" |