Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 294452

Summary: User not able to see wpa_supplicant status after resume with hibernate_script
Product: Gentoo Linux Reporter: Róbert Čerňanský <openhs>
Component: [OLD] Core systemAssignee: Bjarke Istrup Pedersen (RETIRED) <gurligebis>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: alexxy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Róbert Čerňanský 2009-11-24 17:23:59 UTC
When using wpa_supplicant for network management during network start it creates few files in /var/run directory. Some of them (probably /var/run/wpa_supplicant/*) are used by wpa_cli and wpa_gui programs to access wpa_supplicant status info and to control it.

After resume these files and the wpa_supplicant directory are created with wrong permissions and thus inaccessible to users. wpa_cli and wpa_gui started under a user account are not able to access them and does not show any status.


After fresh start or manual network restart (/etc/init.d/net.wlan0 restart) -- correct permissions:

# ll -d /var/run/wpa_*
-rw-r--r-- 1 root root     5 Nov 24 18:13 /var/run/wpa_cli-wlan0.pid
drwxr-x--- 2 root users 4.0K Nov 24 18:13 /var/run/wpa_supplicant
-rw-r--r-- 1 root root     5 Nov 24 18:13 /var/run/wpa_supplicant-wlan0.pid


After resume -- wrong permissions:

# ll -d /var/run/wpa_*
-rw------- 1 root root     5 Nov 24 17:53 /var/run/wpa_cli-wlan0.pid
drwx------ 2 root users 4.0K Nov 24 17:53 /var/run/wpa_supplicant
-rw------- 1 root root     5 Nov 24 17:53 /var/run/wpa_supplicant-wlan0.pid

Using sys-power/hibernate-script-2.0-r1 for hibernating and net-wireless/wpa_supplicant-0.6.9 for network management.

Stable system with sys-apps/baselayout-1.12.13.
Comment 1 Pacho Ramos gentoo-dev 2012-11-18 12:55:14 UTC
Still valid with a fully updated system?