diff options
author | fanquake <fanquake@gmail.com> | 2020-04-28 09:30:35 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-05-14 14:36:27 +0800 |
commit | 13f606b4f940e5820ff21ea62fc27a5a91774b05 (patch) | |
tree | 4350542b3ecb7db67cd129f22af31c15d257c4fb | |
parent | 061acf62a15ad3dbb9f055b7c2569b9832ed623a (diff) |
scripts: remove NONFATAL from security-check.py
-rwxr-xr-x | contrib/devtools/security-check.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/contrib/devtools/security-check.py b/contrib/devtools/security-check.py index 2171ee2e0c..5180238021 100755 --- a/contrib/devtools/security-check.py +++ b/contrib/devtools/security-check.py @@ -15,7 +15,6 @@ import os READELF_CMD = os.getenv('READELF', '/usr/bin/readelf') OBJDUMP_CMD = os.getenv('OBJDUMP', '/usr/bin/objdump') OTOOL_CMD = os.getenv('OTOOL', '/usr/bin/otool') -NONFATAL = {} # checks which are non-fatal for now but only generate a warning def check_ELF_PIE(executable): ''' @@ -279,18 +278,12 @@ if __name__ == '__main__': continue failed = [] - warning = [] for (name, func) in CHECKS[etype]: if not func(filename): - if name in NONFATAL: - warning.append(name) - else: - failed.append(name) + failed.append(name) if failed: print('%s: failed %s' % (filename, ' '.join(failed))) retval = 1 - if warning: - print('%s: warning %s' % (filename, ' '.join(warning))) except IOError: print('%s: cannot open' % filename) retval = 1 |