aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorConrado Gouvea <conradoplg@gmail.com>2018-07-12 13:16:01 -0300
committerGitHub <noreply@github.com>2018-07-12 13:16:01 -0300
commit37d363dd4acf7d41196d44b295593019add241c3 (patch)
tree6ae65b6f57bac6a5cab51a8cd76b8a918777ef00 /contrib
parentdcb154e5aad80e49ff41a7851604ac46f38cb167 (diff)
Tools: fix BIND_NOW check in security-check.py
Previously, the BIND_NOW check would work only if it was the first value in FLAGS.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/devtools/security-check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/devtools/security-check.py b/contrib/devtools/security-check.py
index c9516ef83f..47195f73c8 100755
--- a/contrib/devtools/security-check.py
+++ b/contrib/devtools/security-check.py
@@ -97,7 +97,7 @@ def check_ELF_RELRO(executable):
raise IOError('Error opening file')
for line in stdout.splitlines():
tokens = line.split()
- if len(tokens)>1 and tokens[1] == '(BIND_NOW)' or (len(tokens)>2 and tokens[1] == '(FLAGS)' and 'BIND_NOW' in tokens[2]):
+ if len(tokens)>1 and tokens[1] == '(BIND_NOW)' or (len(tokens)>2 and tokens[1] == '(FLAGS)' and 'BIND_NOW' in tokens[2:]):
have_bindnow = True
return have_gnu_relro and have_bindnow