summaryrefslogtreecommitdiffstats
path: root/perl-install/security/libsafe.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-09-10 08:24:01 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-09-10 08:24:01 +0000
commita22f9e34f0dab6621f90e066e15fa563f836e468 (patch)
tree763c53ff8a8cb9a788d7c5d788e723edf30bbff2 /perl-install/security/libsafe.pm
parent18bca884ae5a1dd7a78019e39448129a5d66ff8c (diff)
downloaddrakx-a22f9e34f0dab6621f90e066e15fa563f836e468.tar
drakx-a22f9e34f0dab6621f90e066e15fa563f836e468.tar.gz
drakx-a22f9e34f0dab6621f90e066e15fa563f836e468.tar.bz2
drakx-a22f9e34f0dab6621f90e066e15fa563f836e468.tar.xz
drakx-a22f9e34f0dab6621f90e066e15fa563f836e468.zip
move back draksec's files in drakxtools
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..1d6436b86
--- /dev/null
+++ b/perl-install/security/libsafe.pm
@@ -0,0 +1,18 @@
+package draksec::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;