diff options
author | Christian Belisle <cbelisle@mandriva.com> | 2002-07-30 21:09:51 +0000 |
---|---|---|
committer | Christian Belisle <cbelisle@mandriva.com> | 2002-07-30 21:09:51 +0000 |
commit | fb625e71e7d8e8d86da175a13fb8d6ef0d7285c6 (patch) | |
tree | f24b17cc972dd6027c4f11a579b822dc4ff8629e | |
parent | 576618525818737b129c285fbe562937dbcfe45d (diff) | |
download | drakx-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.
-rw-r--r-- | perl-install/security/libsafe.pm | 18 |
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; |