aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-03-09 23:35:51 -0400
committerMike Frysinger <vapier@gentoo.org>2015-03-09 23:35:51 -0400
commit52d761bc07f59eed70b71c862bdf8a389172e294 (patch)
treefb8bccf19386fe4fe4604cc14da86138e515c2f5 /scanelf.c
parentREADME: update Fedora URL (diff)
downloadpax-utils-52d761bc07f59eed70b71c862bdf8a389172e294.tar.gz
pax-utils-52d761bc07f59eed70b71c862bdf8a389172e294.tar.bz2
pax-utils-52d761bc07f59eed70b71c862bdf8a389172e294.zip
scanelf: respect QA_EXECSTACK for .note.GNU-stack sections
URL: https://bugs.gentoo.org/539606
Diffstat (limited to 'scanelf.c')
-rw-r--r--scanelf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scanelf.c b/scanelf.c
index 4db4c35..64c4fc8 100644
--- a/scanelf.c
+++ b/scanelf.c
@@ -475,6 +475,8 @@ static char *scanelf_file_phdr(elfobj *elf, char *found_phdr, char *found_relro,
continue; \
if (!strcmp(elf->data + offset, NOTE_GNU_STACK)) { \
if (multi_stack++) warnf("%s: multiple .note.GNU-stack's !?", elf->filename); \
+ if (file_matches_list(elf->filename, qa_execstack)) \
+ continue; \
flags = EGET(shdr[i].sh_flags); \
if (be_quiet && ((flags & check_flags) != check_flags)) \
continue; \