summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-06-10 08:55:06 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-06-10 08:55:06 +0000
commitc3d3b30362c8499cf813dc47a2cdd029b11f5b60 (patch)
treeff26727b0b19aa5866f1600059d8fa277d183aa3 /perl-install
parentf10a9e1aeb6115154dfc3986a56c3e4d11bc133a (diff)
downloaddrakx-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.tar
drakx-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.tar.gz
drakx-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.tar.bz2
drakx-c3d3b30362c8499cf813dc47a2cdd029b11f5b60.tar.xz
drakx-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')
-rw-r--r--perl-install/security/level.pm2
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 {