2017-09-28 13:35:09 +02:00
|
|
|
Index: rpmlint-rpmlint-1.10/BinariesCheck.py
|
2017-07-04 14:30:44 +02:00
|
|
|
===================================================================
|
2017-09-28 13:35:09 +02:00
|
|
|
--- rpmlint-rpmlint-1.10.orig/BinariesCheck.py
|
|
|
|
+++ rpmlint-rpmlint-1.10/BinariesCheck.py
|
|
|
|
@@ -537,6 +537,9 @@ class BinariesCheck(AbstractCheck.Abstra
|
2017-07-04 14:30:44 +02:00
|
|
|
if not is_shobj and pie_exec_re and pie_exec_re.search(fname):
|
|
|
|
printError(pkg, 'non-position-independent-executable',
|
|
|
|
fname)
|
|
|
|
+ if not is_shobj:
|
|
|
|
+ printError(pkg, 'position-independent-executable-suggested',
|
|
|
|
+ fname)
|
|
|
|
|
|
|
|
if bin_info.readelf_error:
|
|
|
|
continue
|
2017-09-28 13:35:09 +02:00
|
|
|
@@ -789,6 +792,10 @@ stripping process.''',
|
2017-07-04 14:30:44 +02:00
|
|
|
'''This executable must be position independent. Check that it is built with
|
|
|
|
-fPIE/-fpie in compiler flags and -pie in linker flags.''',
|
|
|
|
|
|
|
|
+'position-independent-executable-suggested',
|
|
|
|
+'''This executable should be position independent (all binaries should). Check
|
|
|
|
+that it is built with -fPIE/-fpie in compiler flags and -pie in linker flags.''',
|
|
|
|
+
|
|
|
|
'missing-call-to-setgroups-before-setuid',
|
|
|
|
'''This executable is calling setuid and setgid without setgroups or
|
|
|
|
initgroups. There is a high probability this means it didn't relinquish all
|