diff mbox series

[RFC,2/3] hardening testing: busybox test case to verify linker wrapper behavior with -r

Message ID 1534220803-26737-3-git-send-email-matthew.weber@rockwellcollins.com
State Superseded
Headers show
Series Hardening Wrapper Support | expand

Commit Message

Matt Weber Aug. 14, 2018, 4:26 a.m. UTC
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
---
 support/testing/tests/core/test_hardening.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jan Kundrát Aug. 21, 2018, 7:10 a.m. UTC | #1
On úterý 14. srpna 2018 6:26:42 CEST, Matt Weber wrote:
> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
> ---
>  support/testing/tests/core/test_hardening.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/support/testing/tests/core/test_hardening.py 
> b/support/testing/tests/core/test_hardening.py
> index fcec46f..ab8d078 100644
> --- a/support/testing/tests/core/test_hardening.py
> +++ b/support/testing/tests/core/test_hardening.py
> @@ -21,7 +21,7 @@ class TestHardeningBase(infra.basetest.BRTest):
>          BR2_PACKAGE_HOST_CHECKSEC=y
>          # BR2_TARGET_ROOTFS_TAR is not set
>          """
> -    checksec_files = ["usr/sbin/lighttpd"]
> +    checksec_files = ["usr/sbin/lighttpd", "target/bin/busybox"]
>  
>      def checksec_run(self, target_file):
>          filepath = os.path.join(self.builddir, "target", target_file)

This patch does not apply to neither master nor next for me because there's 
no support/testing/tests/core/test_hardening.py in there.
diff mbox series

Patch

diff --git a/support/testing/tests/core/test_hardening.py b/support/testing/tests/core/test_hardening.py
index fcec46f..ab8d078 100644
--- a/support/testing/tests/core/test_hardening.py
+++ b/support/testing/tests/core/test_hardening.py
@@ -21,7 +21,7 @@  class TestHardeningBase(infra.basetest.BRTest):
         BR2_PACKAGE_HOST_CHECKSEC=y
         # BR2_TARGET_ROOTFS_TAR is not set
         """
-    checksec_files = ["usr/sbin/lighttpd"]
+    checksec_files = ["usr/sbin/lighttpd", "target/bin/busybox"]
 
     def checksec_run(self, target_file):
         filepath = os.path.join(self.builddir, "target", target_file)