Skip to content
Snippets Groups Projects
Commit a6f97601 authored by Caleb Maclennan's avatar Caleb Maclennan
Browse files

Merge branch 'ignore-debug-pkg' into 'master'

Ignore ELF/RELRO checks for .debug packages

See merge request pacman/namcap!3
parents 62e61a0b ec0189f6
Branches master
No related tags found
No related merge requests found
......@@ -161,6 +161,8 @@ class ELFGnuRelroRule(TarballRule):
fp = tar.extractfile(entry)
if not is_elf(fp):
continue
if '.debug' in entry.name:
continue
elffile = ELFFile(fp)
if any(seg['p_type'] == 'PT_GNU_RELRO' for seg in elffile.iter_segments()):
if self.has_bind_now(elffile):
......@@ -228,7 +230,7 @@ class NoPIERule(TarballRule):
for entry in tar:
if not entry.isfile():
continue
if '.so' in entry.name:
if any(x in entry.name for x in ['.so', '.debug']):
continue
fp = tar.extractfile(entry)
if not is_elf(fp):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment