]>
git.ipfire.org Git - people/stevee/pakfire.git/blob - src/quality-agent/050-relro
3 . $
(dirname ${0})/qa-include
5 DESC
="Text relocations force the dynamic linker to perform extra \
6 work at startup, waste system resources, and may pose a security \
7 risk. On some architectures, the code may not even function \
14 for file in $
(find_elf_files
--prefix=${BUILDROOT} ${BINARY_PATHS}); do
15 if filter_startfiles
${file}; then
19 # Skip all files that are not a shared object.
20 file_is_shared_object
${file} ||
continue
22 if ! file_is_relro_full
${file}; then
23 if [ "${QUALITY_AGENT_PERMIT_NOT_FULL_RELRO}" = "yes" ]; then
24 log_warning
" Is not full relro: ${file}"
26 log_error
" Is not relro: ${file}"