summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-08-31 14:05:42 +0000
committerdamien <damien@mandriva.com>2001-08-31 14:05:42 +0000
commitc62686535f025e1a33b8f329d3486b10468bbe19 (patch)
tree7330c3e2685b367cea0fae0f677803f97776b770 /perl-install
parent1c0b316d514866e2394a052d1c56fbf2597e80dc (diff)
downloaddrakx-backup-do-not-use-c62686535f025e1a33b8f329d3486b10468bbe19.tar
drakx-backup-do-not-use-c62686535f025e1a33b8f329d3486b10468bbe19.tar.gz
drakx-backup-do-not-use-c62686535f025e1a33b8f329d3486b10468bbe19.tar.bz2
drakx-backup-do-not-use-c62686535f025e1a33b8f329d3486b10468bbe19.tar.xz
drakx-backup-do-not-use-c62686535f025e1a33b8f329d3486b10468bbe19.zip
libsafe modification
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/draksec8
1 files changed, 7 insertions, 1 deletions
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"));