From f6b197970ba833ea3e629a29805681fde8d4b811 Mon Sep 17 00:00:00 2001 From: Yoann Vandoorselaere Date: Wed, 8 Mar 2000 14:01:47 +0000 Subject: *** empty log message *** --- init-sh/custom.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'init-sh/custom.sh') diff --git a/init-sh/custom.sh b/init-sh/custom.sh index b8b8402..9d46bd1 100755 --- a/init-sh/custom.sh +++ b/init-sh/custom.sh @@ -61,6 +61,18 @@ if [[ ${answer} == yes ]]; then AddRules "tty5" /etc/securetty quiet AddRules "tty6" /etc/securetty fi +### +echo "Do you want to enable the libsafe stack overflow protection ?" +echo "This stack overflow protection work by catching dangerous function call" +echo "like strcpy, strcat, getwd, gets, [vf]scanf, realpath, [v]sprintf" +echo "and verify the address & the size of the destination buffer in the stack" +echo "this is done by searching in the stack frame the one which contain the" +echo "destination address, and by substracting the frame address to the destination buffer one" +WaitAnswer; clear +if [[ ${answer} == yes ]]; then + AddRules "export LD_PRELOAD=/usr/lib/libsafe.so.1.2" /etc/profile +fi + ### echo "Do you want your system to daily check important security problem ?" WaitAnswer; clear -- cgit v1.2.1