summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index e6552307f..57ac266ed 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -1078,6 +1078,18 @@ sub disable_user_view {
substInFile { s/^Browser=.*/Browser=0/ } "$prefix/etc/X11/gdm/gdm.conf";
}
+sub set_security {
+ my ($o) = @_;
+ {
+ local $ENV{DRAKX_PASSWORD} = $o->{bootloader}{password};
+ local $ENV{DURING_INSTALL} = 1;
+ security::level::set($o->{security});
+ }
+ require security::various;
+ security::various::config_libsafe($::prefix, $o->{libsafe});
+ security::various::config_security_user($::prefix, $o->{security_user});
+}
+
sub write_fstab {
my ($o) = @_;
fs::write_fstab($o->{all_hds}, $o->{prefix}) if !$::live && !$o->{isUpgrade};