summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-29 12:01:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-29 12:01:07 +0000
commit8dd9ef7b5577c53d34568c32541edd17fe7400f5 (patch)
tree1f23dedb9b46b65e7b99e686b35d39c3c7dfdfaf /perl-install/any.pm
parent838b9f0b8668a4c81c39c9ea9f777952f1b46a0a (diff)
downloaddrakx-backup-do-not-use-8dd9ef7b5577c53d34568c32541edd17fe7400f5.tar
drakx-backup-do-not-use-8dd9ef7b5577c53d34568c32541edd17fe7400f5.tar.gz
drakx-backup-do-not-use-8dd9ef7b5577c53d34568c32541edd17fe7400f5.tar.bz2
drakx-backup-do-not-use-8dd9ef7b5577c53d34568c32541edd17fe7400f5.tar.xz
drakx-backup-do-not-use-8dd9ef7b5577c53d34568c32541edd17fe7400f5.zip
- move any::choose_security_level() to security::level::level_choose()
- move any::config_security_user() to security::various::config_security_user() - move any::config_libsafe() and security::libsafe::config_libsafe() to security::various::config_libsafe()
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm60
1 files changed, 0 insertions, 60 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 578d7c465..62de800ed 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -845,66 +845,6 @@ sub ddcxinfos {
@l;
}
-sub config_libsafe {
- my ($prefix, $libsafe) = @_;
- my %t = getVarsFromSh("$prefix/etc/sysconfig/system");
- if (@_ > 1) {
- $t{LIBSAFE} = bool2yesno($libsafe);
- setVarsInSh("$prefix/etc/sysconfig/system", \%t);
- }
- text2bool($t{LIBSAFE});
-}
-
-sub config_security_user {
- my ($prefix, $sec_user) = @_;
- my %t = getVarsFromSh("$prefix/etc/security/msec/security.conf");
- if (@_ > 1) {
- $t{MAIL_USER} = $sec_user;
- setVarsInSh("$prefix/etc/security/msec/security.conf", \%t);
- }
- $t{MAIL_USER};
-}
-
-sub choose_security_level {
- my ($in, $security, $libsafe, $email) = @_;
-
- my %l = (
- 0 => N("Welcome To Crackers"),
- 1 => N("Poor"),
- 2 => N("Standard"),
- 3 => N("High"),
- 4 => N("Higher"),
- 5 => N("Paranoid"),
- );
- my %help = (
- 0 => N("This level is to be used with care. It makes your system more easy to use,
-but very sensitive: it must not be used for a machine connected to others
-or to the Internet. There is no password access."),
- 1 => N("Password are now enabled, but use as a networked computer is still not recommended."),
- 2 => N("This is the standard security recommended for a computer that will be used to connect to the Internet as a client."),
- 3 => N("There are already some restrictions, and more automatic checks are run every night."),
- 4 => N("With this security level, the use of this system as a server becomes possible.
-The security is now high enough to use the system as a server which can accept
-connections from many clients. Note: if your machine is only a client on the Internet, you should choose a lower level."),
- 5 => N("This is similar to the previous level, but the system is entirely closed and security features are at their maximum."),
- );
- delete @l{0,1};
- delete $l{5} if !$::expert;
-
- $in->ask_from(
- N("DrakSec Basic Options"),
- N("Please choose the desired security level") . "\n\n" .
- join('', map { "$l{$_}: " . formatAlaTeX($help{$_}) . "\n\n" } ikeys %l),
- [
- { label => N("Security level"), val => $security, list => [ sort keys %l ], format => sub { $l{$_[0]} } },
- if_($in->do_pkgs->is_installed('libsafe') && arch() =~ /^i.86/,
- { label => N("Use libsafe for servers"), val => $libsafe, type => 'bool', text =>
- N("A library which defends against buffer overflow and format string attacks.") }),
- { label => N("Security Administrator (login or email)"), val => $email, },
- ],
- );
- }
-
sub running_window_manager {
my @window_managers = qw(kwin gnome-session icewm wmaker afterstep fvwm fvwm2 fvwm95 mwm twm enlightenment xfce blackbox sawfish olvwm);