diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-04-24 19:00:12 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-04-24 19:00:12 +0000 |
commit | 73c851144720e28b21a491b6250385170db9d752 (patch) | |
tree | dcc9fae4302b3d083ad7cc7a808e5d17f970bb8c /perl-install/security | |
parent | 0dc3338257439d2265c1eb13c3a66c9431c88cb5 (diff) | |
download | drakx-73c851144720e28b21a491b6250385170db9d752.tar drakx-73c851144720e28b21a491b6250385170db9d752.tar.gz drakx-73c851144720e28b21a491b6250385170db9d752.tar.bz2 drakx-73c851144720e28b21a491b6250385170db9d752.tar.xz drakx-73c851144720e28b21a491b6250385170db9d752.zip |
perl_checker adaptations + fixes
Diffstat (limited to 'perl-install/security')
-rw-r--r-- | perl-install/security/level.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/security/level.pm b/perl-install/security/level.pm index 234fb2d4b..cc4dac187 100644 --- a/perl-install/security/level.pm +++ b/perl-install/security/level.pm @@ -5,7 +5,7 @@ use common; use run_program; -sub level_list { +sub level_list() { ( 0 => N("Welcome To Crackers"), 1 => N("Poor"), @@ -19,10 +19,10 @@ sub level_list { sub to_string { +{ level_list() }->{$_[0]} } sub from_string { +{ reverse level_list() }->{$_[0]} || 2 } -sub get_string { to_string(get() || 2) } -sub get_common_list { map { to_string($_) } (2, 3, 4) } +sub get_string() { to_string(get() || 2) } +sub get_common_list() { map { to_string($_) } (2, 3, 4) } -sub get { +sub get() { cat_("$::prefix/etc/profile") =~ /export SECURE_LEVEL=(\d+)/ && $1 || #- 8.0 msec cat_("$::prefix/etc/profile.d/msec.sh") =~ /export SECURE_LEVEL=(\d+)/ && $1 || #- 8.1 msec ${{ getVarsFromSh("$::prefix/etc/sysconfig/msec") }}{SECURE_LEVEL} || #- 8.2 msec |