SOURCES (LINUX_2_6): kernel-grsec_fixes.patch - check if -fno-stac...
zbyniu
zbyniu at pld-linux.org
Thu Apr 17 03:31:05 CEST 2008
Author: zbyniu Date: Thu Apr 17 01:31:05 2008 GMT
Module: SOURCES Tag: LINUX_2_6
---- Log message:
- check if -fno-stack-protector is accessible
---- Files affected:
SOURCES:
kernel-grsec_fixes.patch (1.1.4.4 -> 1.1.4.5)
---- Diffs:
================================================================
Index: SOURCES/kernel-grsec_fixes.patch
diff -u SOURCES/kernel-grsec_fixes.patch:1.1.4.4 SOURCES/kernel-grsec_fixes.patch:1.1.4.5
--- SOURCES/kernel-grsec_fixes.patch:1.1.4.4 Tue Mar 25 22:49:52 2008
+++ SOURCES/kernel-grsec_fixes.patch Thu Apr 17 03:31:00 2008
@@ -1,4 +1,5 @@
netlink
+no-stack-protector
diff -upr a/grsecurity/gracl_cap.c c/grsecurity/gracl_cap.c
--- a/grsecurity/gracl_cap.c 2007-12-01 00:54:57.312774500 +0000
+++ c/grsecurity/gracl_cap.c 2007-12-01 01:09:34.923621750 +0000
@@ -90,3 +91,19 @@
return 0;
}
+===
+=== check if -fno-stack-protector is accessible
+===
+--- linux-2.6.24/arch/x86/kernel/Makefile_64~ 2008-04-16 21:15:48.278373002 +0000
++++ linux-2.6.24/arch/x86/kernel/Makefile_64 2008-04-16 21:18:33.833661431 +0000
+@@ -42,6 +42,7 @@
+ obj-y += topology.o
+ obj-y += pcspeaker.o
+
+-CFLAGS_vsyscall_64.o := $(PROFILING) -g0 -fno-stack-protector
+-CFLAGS_hpet.o := -fno-stack-protector
+-CFLAGS_tsc_64.o := -fno-stack-protector
++nostackp := $(call cc-option, -fno-stack-protector)
++CFLAGS_vsyscall_64.o := $(PROFILING) -g0 $(nostackp)
++CFLAGS_hpet.o := $(nostackp)
++CFLAGS_tsc_64.o := $(nostackp)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/kernel-grsec_fixes.patch?r1=1.1.4.4&r2=1.1.4.5&f=u
More information about the pld-cvs-commit
mailing list