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