summaryrefslogtreecommitdiffstats
path: root/perl-install/security/libsafe.pm
diff options
context:
space:
mode:
authorChristian Belisle <cbelisle@mandriva.com>2002-07-30 21:09:51 +0000
committerChristian Belisle <cbelisle@mandriva.com>2002-07-30 21:09:51 +0000
commitfb625e71e7d8e8d86da175a13fb8d6ef0d7285c6 (patch)
treef24b17cc972dd6027c4f11a579b822dc4ff8629e /perl-install/security/libsafe.pm
parent576618525818737b129c285fbe562937dbcfe45d (diff)
downloaddrakx-fb625e71e7d8e8d86da175a13fb8d6ef0d7285c6.tar
drakx-fb625e71e7d8e8d86da175a13fb8d6ef0d7285c6.tar.gz
drakx-fb625e71e7d8e8d86da175a13fb8d6ef0d7285c6.tar.bz2
drakx-fb625e71e7d8e8d86da175a13fb8d6ef0d7285c6.tar.xz
drakx-fb625e71e7d8e8d86da175a13fb8d6ef0d7285c6.zip
- complete re-write of draksec. splitted all the libsafe related functions
in this file.
Diffstat (limited to 'perl-install/security/libsafe.pm')
-rw-r--r--perl-install/security/libsafe.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/perl-install/security/libsafe.pm b/perl-install/security/libsafe.pm
new file mode 100644
index 000000000..1001ce4db
--- /dev/null
+++ b/perl-install/security/libsafe.pm
@@ -0,0 +1,18 @@
+package security::libsafe;
+
+use diagnostics;
+use strict;
+
+use common;
+
+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});
+}
+
+1;