From 656e142a62bdf24c0fac9b173077aad9427519cc Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 7 Sep 2004 07:41:41 +0000 Subject: (set_default) use "users" options for removable devices (so that users can unmount them if the devices were mounted by root) --- perl-install/fs/mount_options.pm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'perl-install') diff --git a/perl-install/fs/mount_options.pm b/perl-install/fs/mount_options.pm index dd9dfc93b..1ce622721 100644 --- a/perl-install/fs/mount_options.pm +++ b/perl-install/fs/mount_options.pm @@ -198,7 +198,7 @@ sub set_default { if (member('vfat', split(':', $part->{fs_type})) || $part->{fs_type} eq 'auto') { put_in_hash($options, { - user => 1, noexec => 0, + users => 1, noexec => 0, }) if $part->{is_removable}; put_in_hash($options, { @@ -223,13 +223,12 @@ sub set_default { # rationalize: no need for user if ($options->{autofs} || $options->{supermount}) { - $options->{user} = 0; + $options->{users} = $options->{user} = 0; } - # have noauto when we have user - $options->{noauto} = 1 if $options->{user}; - - if ($options->{user}) { + if ($options->{user} || $options->{users}) { + # have noauto when we have user + $options->{noauto} = 1; # ensure security (user_implies - noexec as noexec is not a security matter) $options->{$_} = 1 foreach 'nodev', 'nosuid'; } -- cgit v1.2.1