SHA256
1
0
forked from pool/rpmlint

- only consider executable ELF files for

non-position-independent-executable check

OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=50
This commit is contained in:
Ludwig Nussel 2011-08-05 07:51:00 +00:00 committed by Git OBS Bridge
parent 1ce65a61b6
commit 88c3913148
2 changed files with 9 additions and 2 deletions

View File

@ -135,8 +135,9 @@ class SUIDCheck(AbstractCheck.AbstractCheck):
else:
f += '/'
if type == 010:
if not 'shared object' in pkgfile.magic:
if type == 010 and mode&0111:
# pie binaries have 'shared object' here
if 'ELF' in pkgfile.magic and not 'shared object' in pkgfile.magic:
printError(pkg, 'non-position-independent-executable', f)
m = self.perms[f]['mode']

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Aug 5 07:50:21 UTC 2011 - lnussel@suse.de
- only consider executable ELF files for
non-position-independent-executable check
-------------------------------------------------------------------
Mon Aug 1 07:22:41 UTC 2011 - lnussel@suse.de