1From fbf7b9e5a8e2978acd5b0a7a8311912a080ee9b9 Mon Sep 17 00:00:00 2001 2From: Qian Lei <qianl.fnst@cn.fujitsu.com> 3Date: Thu, 18 Dec 2014 11:09:01 +0800 4Subject: [PATCH] Makefile: remove strip 5 6Avoid QA error by removing strip from Makefile 7 8[...] 9ERROR: QA Issue: File '/sbin/gradm' from gradm was already stripped, 10this will prevent future debugging! [already-stripped] 11ERROR: QA Issue: File '/sbin/grlearn' from gradm was already stripped, 12this will prevent future debugging! [already-stripped] 13[...] 14 15Upstream-Status: Pending 16 17Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com> 18 19--- 20 Makefile | 7 ++----- 21 1 file changed, 2 insertions(+), 5 deletions(-) 22 23diff --git a/Makefile b/Makefile 24index 6c33fee..3570a4e 100644 25--- a/Makefile 26+++ b/Makefile 27@@ -24,7 +24,6 @@ MKNOD=/bin/mknod 28 #CC=/usr/bin/diet /usr/bin/gcc 29 CC=/usr/bin/gcc 30 FIND=/usr/bin/find 31-STRIP=/usr/bin/strip 32 LIBS := $(shell if [ "`uname -m`" != "sparc64" -a "`uname -m`" != "x86_64" ]; then echo "-lfl" ; else echo "" ; fi) 33 OPT_FLAGS := -O2 34 # for older versions of grsecurity, comment the above line and uncomment the below: 35@@ -140,15 +139,12 @@ install: $(GRADM_BIN) gradm.8 policy grlearn 36 @mkdir -p $(DESTDIR)/sbin 37 @echo "Installing gradm..." 38 @$(INSTALL) -m 0755 $(GRADM_BIN) $(DESTDIR)/sbin 39- @$(STRIP) $(DESTDIR)/sbin/$(GRADM_BIN) 40 @if [ -f $(GRADM_PAM) ] ; then \ 41 echo "Installing gradm_pam..." ; \ 42 $(INSTALL) -m 4755 $(GRADM_PAM) $(DESTDIR)/sbin ; \ 43- $(STRIP) $(DESTDIR)/sbin/$(GRADM_PAM) ; \ 44 fi 45 @echo "Installing grlearn..." 46 @$(INSTALL) -m 0700 grlearn $(DESTDIR)/sbin 47- @$(STRIP) $(DESTDIR)/sbin/grlearn 48 @mkdir -p -m 700 $(DESTDIR)$(GRSEC_DIR) 49 @if [ ! -f $(DESTDIR)$(GRSEC_DIR)/policy ] ; then \ 50 if [ -f $(DESTDIR)$(GRSEC_DIR)/acl ] ; then \ 51@@ -168,6 +164,7 @@ install: $(GRADM_BIN) gradm.8 policy grlearn 52 $(MKNOD) -m 0622 $(DESTDIR)/dev/grsec c 1 13 ; \ 53 fi \ 54 fi 55+ @mkdir -p $(DESTDIR)/etc/udev/rules.d 56 @if [ -d $(DESTDIR)/etc/udev/rules.d ] ; then \ 57 echo "ACTION!=\"add|change\", GOTO=\"permissions_end\"" > $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \ 58 echo "KERNEL==\"grsec\", MODE=\"0622\"" >> $(DESTDIR)/etc/udev/rules.d/80-grsec.rules ; \ 59-- 601.8.3.1 61 62