diff options
| author | fanquake <[email protected]> | 2020-03-25 08:11:20 +0800 |
|---|---|---|
| committer | fanquake <[email protected]> | 2020-03-26 11:39:34 +0800 |
| commit | edaca2dd123cef958699c07ab248cf0ffc71af07 (patch) | |
| tree | 74b0acce3a4276ffd5dea1338514c1b7672780bc /contrib/devtools/test-security-check.py | |
| parent | scripts: add MACHO tests to test-security-check.py (diff) | |
| download | discoin-edaca2dd123cef958699c07ab248cf0ffc71af07.tar.xz discoin-edaca2dd123cef958699c07ab248cf0ffc71af07.zip | |
scripts: add MACHO NX check to security-check.py
Diffstat (limited to 'contrib/devtools/test-security-check.py')
| -rwxr-xr-x | contrib/devtools/test-security-check.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/devtools/test-security-check.py b/contrib/devtools/test-security-check.py index d65e75f12..1ca0314f3 100755 --- a/contrib/devtools/test-security-check.py +++ b/contrib/devtools/test-security-check.py @@ -60,6 +60,8 @@ class TestSecurityChecks(unittest.TestCase): cc = 'clang' write_testcode(source) + self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-flat_namespace', '-Wl,-allow_stack_execute']), + (1, executable+': failed PIE NOUNDEFS NX')) self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie','-Wl,-flat_namespace']), (1, executable+': failed PIE NOUNDEFS')) self.assertEqual(call_security_check(cc, source, executable, ['-Wl,-no_pie']), |