From c62686535f025e1a33b8f329d3486b10468bbe19 Mon Sep 17 00:00:00 2001 From: damien Date: Fri, 31 Aug 2001 14:05:42 +0000 Subject: libsafe modification --- perl-install/standalone/draksec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/draksec') diff --git a/perl-install/standalone/draksec b/perl-install/standalone/draksec index f9a92a576..e6152917f 100755 --- a/perl-install/standalone/draksec +++ b/perl-install/standalone/draksec @@ -56,11 +56,17 @@ $secure_level = ${{ getVarsFromSh("/etc/profile") }}{SECURE_LEVEL} || $ENV{SECUR # ) my ($level, $libsafe); +my %h = getVarsFromSh("$prefix/etc/sysconfig/system"); +$libsafe = $h{LIBSAFE}; + if ($in->ask_from('', _("Choose security level") . "\n\n" . join('', map { "$l{$_}: $help{$_}\n\n" } keys %l), [ { label => _('Security level'), val => \$level, list => [ (values %l) ] }, - { label => _('Use libsafe'), val => \$libsafe, type => 'bool' } + if_(pkgs_interactive::is_installed('libsafe') && arch() =~ /^i.86/, + { label => _('Use libsafe for servers'), val => \$libsafe, type => 'bool', text => + _('A library which defends against buffer overflow and format string attacks.') } + ) ] )) { my $w = $in->wait_message('', _("Setting security level")); -- cgit v1.2.1