]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
QA: Add workaround for relo and disabled BIND_NOW at x packages.
authorSchantl Stefan <Stevee@ipfire.org>
Fri, 10 Sep 2010 18:31:05 +0000 (20:31 +0200)
committerSchantl Stefan <Stevee@ipfire.org>
Fri, 10 Sep 2010 18:31:05 +0000 (20:31 +0200)
pkgs/Constants
tools/quality-agent.d/050-relro

index b1adf570a15600746fc24c770071bcba95a85c1f..83bfac45ac0845d8392905761b8cfc1fba1336d7 100644 (file)
@@ -84,3 +84,4 @@ export QUALITY_AGENT_WHITELIST_EXECSTACK
 export QUALITY_AGENT_WHITELIST_NX
 export QUALITY_AGENT_WHITELIST_RPATH
 export QUALITY_AGENT_WHITELIST_SONAME
+export QUALITY_AGENT_PERMIT_NOT_FULL_RELRO
index 061a00183b2189a7242ab590a5c4b99a61a19f16..d80da0b9a97acd815f01dcc07548535583b929d7 100755 (executable)
@@ -17,8 +17,12 @@ function check() {
                fi
 
                if ! is_relro_full ${file}; then
-                       log_error "  Is not full relro: ${file}"
-                       failed=1
+                       if [ "${QUALITY_AGENT_PERMIT_NOT_FULL_RELRO}" = "yes" ]; then
+                               log_warning "  Is not full relro: ${file}"
+                       else
+                               log_error "  Is not relro: ${file}"
+                               failed=1
+                       fi
                fi
        done