diff options
author | Mystery Man <unknown@mandriva.org> | 2003-11-21 12:53:39 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2003-11-21 12:53:39 +0000 |
commit | 7396369ef190a049b3a779a54edd76ff118f3c28 (patch) | |
tree | 20c2a6d7fcd96433d0d91b1460b5604a6d7267ce /perl-install/security | |
parent | e41742b093fdb26bcae87e9d5b30d4d7bca93ea9 (diff) | |
download | drakx-backup-do-not-use-7396369ef190a049b3a779a54edd76ff118f3c28.tar drakx-backup-do-not-use-7396369ef190a049b3a779a54edd76ff118f3c28.tar.gz drakx-backup-do-not-use-7396369ef190a049b3a779a54edd76ff118f3c28.tar.bz2 drakx-backup-do-not-use-7396369ef190a049b3a779a54edd76ff118f3c28.tar.xz drakx-backup-do-not-use-7396369ef190a049b3a779a54edd76ff118f3c28.zip |
This commit was manufactured by cvs2svn to create tag 'MDK92-AMD64'.MDK92-AMD64
Diffstat (limited to 'perl-install/security')
-rw-r--r-- | perl-install/security/msec.pm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/perl-install/security/msec.pm b/perl-install/security/msec.pm index 706daf5b7..3a705b89e 100644 --- a/perl-install/security/msec.pm +++ b/perl-install/security/msec.pm @@ -19,7 +19,7 @@ sub load_defaults { my ($opt, $val) = split /$separator/; chop $val; if_($opt ne 'set_security_conf', $opt => $val); - } cat_($msec->{$category}{defaults_file}); + } cat_($msec->{$category}{defaults_file}), if_($category eq "checks", 'MAIL_USER'); } @@ -76,9 +76,14 @@ sub get_check_value { # list_(functions|checks) - # return a list of functions|checks handled by level.local|security.conf +sub raw_checks_list { + my ($msec) = @_; + keys %{$msec->{checks}{default}}; +} + sub list_checks { my ($msec) = @_; - grep { !member($_, qw(MAIL_WARN MAIL_USER)) } keys %{$msec->{checks}{default}}; + grep { !member($_, qw(MAIL_WARN MAIL_USER)) } $msec->raw_checks_list; } sub list_functions { @@ -141,7 +146,7 @@ sub apply_functions { sub apply_checks { my ($msec) = @_; - my @list = sort $msec->list_checks; + my @list = sort $msec->raw_checks_list; substInFile { foreach my $check (@list) { s/^$check.*\n// } if (eof) { |