*** /propolice/lib/Makefile Fri Sep 1 18:32:46 2000 --- linux/lib/Makefile Fri Sep 1 18:33:10 2000 *************** *** 7,12 **** # L_TARGET := lib.a ! L_OBJS := errno.o ctype.o string.o vsprintf.o include $(TOPDIR)/Rules.make --- 7,12 ---- # L_TARGET := lib.a ! L_OBJS := errno.o ctype.o string.o vsprintf.o propolice.o include $(TOPDIR)/Rules.make *** /dev/null Wed May 6 05:32:27 1998 --- linux/lib/propolice.c Fri Sep 1 18:33:10 2000 *************** *** 0 **** --- 1,13 ---- + /* + * linux/lib/errno.c + * + * + */ + + int __guard = '\0\0\n\777'; + + void __stack_smash_handler (int damaged, char func[]) + { + static char *message = "propolice detects %x at function %s.\n" ; + panic (message, damaged, func); + } *** /propolice/kernel/ksyms.c Mon Sep 18 16:14:46 2000 --- linux/kernel/ksyms.c Mon Sep 18 16:15:23 2000 *************** *** 361,366 **** --- 361,368 ---- EXPORT_SYMBOL(get_random_bytes); EXPORT_SYMBOL(securebits); EXPORT_SYMBOL(cap_bset); + EXPORT_SYMBOL_NOVERS(__guard); + EXPORT_SYMBOL_NOVERS(__stack_smash_handler); /* Program loader interfaces */ EXPORT_SYMBOL(setup_arg_pages); *** /propolice/include/linux/kernel.h Mon Sep 18 17:01:48 2000 --- linux/include/linux/kernel.h Mon Sep 18 17:03:19 2000 *************** *** 50,55 **** --- 50,57 ---- extern long simple_strtol(const char *,char **,unsigned int); extern int sprintf(char * buf, const char * fmt, ...); extern int vsprintf(char *buf, const char *, va_list); + extern int __guard; + extern void __stack_smash_handler(int, char []); extern int session_of_pgrp(int pgrp);