Skip to contentSkip to conversation

support/testing: test_hardening disable PIC/PIE

PATCH New Romain Naour 2 participants 2 messages May 13, 2021 – May 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/testing: test_hardening disable PIC/PIE

Since [1], PIC/PIE is enabled by default but the TestRelroPartial test expect implicitely PIC/PIE being disabled.

Disable PIC/PIE from the config fragment provided by TestRelroPartial.

[1] 810ba387bec3c5b6904e8893fb4cb6f9d3717466

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/1255661757

---
 support/testing/tests/core/test_hardening.py | 1 +
 1 file changed, 1 insertion(+)
support/testing/tests/core/test_hardening.py +1 -0
index 60e14303a3..e9d30f3a38 100644
@@ -52,6 +52,7 @@ class TestRelroPartial(TestHardeningBase):
     config = TestHardeningBase.config + \
         """
         BR2_RELRO_PARTIAL=y
+        # BR2_PIC_PIE is not set
         """
 
     def test_run(self):
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/1 support/testing: test_hardening disable PIC/PIE

Quoted 6 lines · Romain Naour

Since [1], PIC/PIE is enabled by default but the TestRelroPartial test expect implicitely PIC/PIE being disabled.

Disable PIC/PIE from the config fragment provided by TestRelroPartial.

Quoted 6 lines

[1] 810ba387bec3c5b6904e8893fb4cb6f9d3717466

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/1255661757

Applied to master, thanks.

Regards,
Arnout

Quoted 17 lines
---
 support/testing/tests/core/test_hardening.py | 1 +
 1 file changed, 1 insertion(+)
support/testing/tests/core/test_hardening.py +1 -0
index 60e14303a3..e9d30f3a38 100644
@@ -52,6 +52,7 @@ class TestRelroPartial(TestHardeningBase):
     config = TestHardeningBase.config + \
         """
         BR2_RELRO_PARTIAL=y
+        # BR2_PIC_PIE is not set
         """
 
     def test_run(self):