summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-13 17:44:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-13 17:44:49 +0000
commit8b13e710716d6256664c5376f8e6e3822888f9db (patch)
treefe6a0209f0b7ae4d099681b3c33d241ead28c9da /perl-install
parentd7d79789800c9d64ade1bd5370c03763f97bc891 (diff)
downloaddrakx-8b13e710716d6256664c5376f8e6e3822888f9db.tar
drakx-8b13e710716d6256664c5376f8e6e3822888f9db.tar.gz
drakx-8b13e710716d6256664c5376f8e6e3822888f9db.tar.bz2
drakx-8b13e710716d6256664c5376f8e6e3822888f9db.tar.xz
drakx-8b13e710716d6256664c5376f8e6e3822888f9db.zip
add a warning when choosing security level > 2 and having a windows partition
(since in that case we won't have umask=0) (bugzilla #4731)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_steps_interactive.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 37f7cf09e..e94058163 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -1246,6 +1246,11 @@ sub miscellaneous {
if ($o->{meta_class} ne 'desktop' && !$o->{isUpgrade}) {
require security::level;
security::level::level_choose($o, \$o->{security}, \$o->{libsafe}, \$o->{security_user});
+
+ if ($o->{security} > 2 && find { isFat($_) } @{$o->{fstab}}) {
+ $o->ask_okcancel('', N("In this security level, access to the files in the Windows partition is restricted to the administrator."))
+ or goto &miscellaneous;
+ }
}
install_steps::miscellaneous($o);