Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69027 - baselayout 1.11.4 inhibits WPA security
Summary: baselayout 1.11.4 inhibits WPA security
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 69438 69484 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-26 08:34 UTC by Martin Gramatke
Modified: 2004-11-03 02:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Gramatke 2004-10-26 08:34:23 UTC
'/etc/init.d/net.ath0 start' produces the following output:
* Starting ath0
 *    Running preup function
 *    Configuring wireless network for ath0
 *    Scanning for access points
 *      Found "skylab" at 00:06:25:FF:7A:F6 (WEP required)
 *    WEP key is not set for "skylab" - not connecting
 *    Couldn't associate with any access points on ath0
 *    Failed to configure wireless for ath0

My network does not use WEP, I prefer the more secure WPA. It seems that the script is not aware of WPA and stops before bringing the interface up. Note that my net.ath0 is a symbolic link to net.eth0.

Reproducible: Always
Steps to Reproduce:
1./etc/init.d/net.ath0 start

Actual Results:  
The network does not work, see error message above. 

Expected Results:  
The script should not deal with access keys. In my case this is completely 
handled by the wpa_supplicant package/scripts. 

I found a workaround commenting out these line in /etc/init.d/net.eth0: 
       for mod in ${MODULES[@]}; do 
               if [[ $( type -t ${mod}_pre_start ) == function ]]; then 
                       ${mod}_pre_start ${IFACE} || return 1 
               fi 
       done 
But this is dissatisfactory of course.
Comment 1 Omer Hasan 2004-10-26 09:49:16 UTC
As far as I know UberLord's scripts in baselayout do not support WPA yet so you'll have to wait  and use WEP for now or use wpa_supplicant on your own for now. 
Comment 2 Martin Gramatke 2004-10-26 12:27:35 UTC
Sure, I use wpa_supplicant. But since 'emerge -uD world' pulled
baselayout 1.11.4 in, the net.ath0 start script fails.  
Comment 3 SpanKY gentoo-dev 2004-10-29 12:26:33 UTC
*** Bug 69438 has been marked as a duplicate of this bug. ***
Comment 4 Roy Marples (RETIRED) gentoo-dev 2004-10-30 15:11:36 UTC
*** Bug 69484 has been marked as a duplicate of this bug. ***
Comment 5 Pat Suwalski 2004-11-01 19:22:33 UTC
Just as a purely design decision, I'm not sure why an init script is handling the management of wireless connections. This seems rather silly, since over the last 6 months, a trend has started to not do that due to projects like:

 - wpa_supplicant
 - NetworkManager
 - netapplet

The network init script should simply bring the device to an "up" state, 
Comment 6 Pat Suwalski 2004-11-01 19:22:33 UTC
Just as a purely design decision, I'm not sure why an init script is handling the management of wireless connections. This seems rather silly, since over the last 6 months, a trend has started to not do that due to projects like:

 - wpa_supplicant
 - NetworkManager
 - netapplet

The network init script should simply bring the device to an "up" state, à la "ifconfig ethX up". Some wireless drivers cannot scan if the device is not up. Wireless/wired connections should be handled by another program in userspace, unless an explicit config is provided.

Besides that, when I use my laptop, I rarely end up in the same access point I started on. It doesn't make sense to have to restart the init script whenever I see a new base station.
Comment 7 Roy Marples (RETIRED) gentoo-dev 2004-11-02 09:26:59 UTC
This should be fixed in baselayout-1.11.5

You can put the following into /etc/conf.d/net to disable wireless configuration

module=( "!wireless" )

Not all wireless cards can work with wpa_supplicant or xsupplicant, so need to provide something.
Comment 8 Martin Gramatke 2004-11-02 15:07:51 UTC
baselayout-1.11.5 and module=( "!wireless" ) works for me. Well done and thanks a lot!
Comment 9 Pat Suwalski 2004-11-02 22:18:36 UTC
The correct (plural) syntax is:

    modules=( "!wireless" )

Took me ten minutes to figure that one out! :)
Comment 10 Roy Marples (RETIRED) gentoo-dev 2004-11-03 02:41:22 UTC
Sorry, yes should be modules=