From 6d34e9d43a95795710b44ac3cecfda656d4952e1 Mon Sep 17 00:00:00 2001 From: khorben Date: Wed, 5 Jul 2017 15:49:00 +0000 Subject: Also check for RELRO in shared libraries --- mk/check/check-relro.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mk/check') diff --git a/mk/check/check-relro.mk b/mk/check/check-relro.mk index cc897de6c0a..1fc96f4206f 100644 --- a/mk/check/check-relro.mk +++ b/mk/check/check-relro.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-relro.mk,v 1.1 2017/07/04 18:29:24 khorben Exp $ +# $NetBSD: check-relro.mk,v 1.2 2017/07/05 15:49:00 khorben Exp $ # # This file verifies that RELRO was applied accordingly at build-time. # @@ -37,8 +37,8 @@ CHECK_RELRO?= no CHECK_RELRO_SUPPORTED?= yes CHECK_RELRO_SKIP?= # none -# All binaries. -_CHECK_RELRO_ERE= (bin/|sbin/|libexec/) +# All binaries and shared libraries. +_CHECK_RELRO_ERE= (bin/|sbin/|libexec/|\.so$$|lib/lib.*\.so) _CHECK_RELRO_FILELIST_CMD?= ${SED} -e '/^@/d' ${PLIST} | \ (while read file; do \ -- cgit v1.2.3