diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-06-10 08:55:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-06-10 08:55:06 +0000 |
commit | c3d3b30362c8499cf813dc47a2cdd029b11f5b60 (patch) | |
tree | ff26727b0b19aa5866f1600059d8fa277d183aa3 /perl-install/security | |
parent | f10a9e1aeb6115154dfc3986a56c3e4d11bc133a (diff) | |
download | drakx-backup-do-not-use-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.tar drakx-backup-do-not-use-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.tar.gz drakx-backup-do-not-use-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.tar.bz2 drakx-backup-do-not-use-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.tar.xz drakx-backup-do-not-use-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.zip |
(get) default to standard level; else security::msec won't be able to
load any values when level is not set (thus resulting in an empty
draksec GUI)
Diffstat (limited to 'perl-install/security')
-rw-r--r-- | perl-install/security/level.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/security/level.pm b/perl-install/security/level.pm index 2c5d299f4..c6a260c74 100644 --- a/perl-install/security/level.pm +++ b/perl-install/security/level.pm @@ -26,7 +26,7 @@ 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 - $ENV{SECURE_LEVEL}; + $ENV{SECURE_LEVEL} || 2; } sub set { |