diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-02-14 14:09:33 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-02-14 14:09:33 +0000 |
commit | bd5b6b9f097d99a31e50b0b6b85cd278e0154891 (patch) | |
tree | ee9d2690dba1faaada0dfe5134617094f4e50f74 /perl-install/install_any.pm | |
parent | 4e0c9165b73cbc263a89bedaf8ccc619ce5d1226 (diff) | |
download | drakx-backup-do-not-use-bd5b6b9f097d99a31e50b0b6b85cd278e0154891.tar drakx-backup-do-not-use-bd5b6b9f097d99a31e50b0b6b85cd278e0154891.tar.gz drakx-backup-do-not-use-bd5b6b9f097d99a31e50b0b6b85cd278e0154891.tar.bz2 drakx-backup-do-not-use-bd5b6b9f097d99a31e50b0b6b85cd278e0154891.tar.xz drakx-backup-do-not-use-bd5b6b9f097d99a31e50b0b6b85cd278e0154891.zip |
create install_any::set_security() and use it
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 12 |
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}; |