[namcap] Ignore .so for no PIE check
diff mbox

Message ID 20180911162139.3997-1-jelle@vdwaa.nl
State New
Headers show

Commit Message

Jelle van der Waa Sept. 11, 2018, 4:21 p.m. UTC
---
 Namcap/rules/elffiles.py | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox

diff --git a/Namcap/rules/elffiles.py b/Namcap/rules/elffiles.py
index d707a58..41fd1cd 100644
--- a/Namcap/rules/elffiles.py
+++ b/Namcap/rules/elffiles.py
@@ -223,6 +223,8 @@  class NoPIERule(TarballRule):
 		for entry in tar:
 			if not entry.isfile():
 				continue
+			if '.so' in entry.name:
+				continue
 			fp = tar.extractfile(entry)
 			if not is_elf(fp):
 				continue