summaryrefslogtreecommitdiffstats
path: root/perl-install/security/libsafe.pm
blob: 1001ce4dbcee065a74b7f211eea3da923d2860eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;