summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-03-09 22:00:26 +0000
committerOlivier Blin <oblin@mandriva.org>2005-03-09 22:00:26 +0000
commitee68f478be1dee39af215105a65d203da58a7f85 (patch)
treeac2a2bf7f569a2ac03549801d28db5273ba6a30f /perl-install
parentf58797190f0979a9f703ccbaa9461df581f7b667 (diff)
downloaddrakx-ee68f478be1dee39af215105a65d203da58a7f85.tar
drakx-ee68f478be1dee39af215105a65d203da58a7f85.tar.gz
drakx-ee68f478be1dee39af215105a65d203da58a7f85.tar.bz2
drakx-ee68f478be1dee39af215105a65d203da58a7f85.tar.xz
drakx-ee68f478be1dee39af215105a65d203da58a7f85.zip
hide wlan-ng settings for non-root users
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/network.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index ba273b81b..4dd5dc8e8 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -518,6 +518,9 @@ sub wlan_ng_configure {
dot11WEPDefaultKey0 => qq("$ethntf->{WIRELESS_ENC_KEY}")
)
});
+ #- hide settings for non-root users
+ chmod 0600, $wlan_conf_file;
+ chmod 0600, $wlan_ssid_file;
}
#- apply settings on wlan interface
require services;