Bug 13803

Summary: wpa_supplicant does not write anything to log - /var/log/wpa_supplicant.log
Product: Mageia Reporter: Florian Hubold <doktor5000>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: doktor5000
Version: 4   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: wpa_supplicant-2.0-2.mga4.src.rpm CVE:
Status comment:

Description Florian Hubold 2014-07-25 16:54:03 CEST
Description of problem:

If authentication fails due to wpa_supplicant.conf containing conflicting credentials/AP data, wpa_supplicant should write to the log file.

It is configured by default to write to /var/log/wpa_supplicant.log :

$ ps -ef | grep -v grep | grep -i wpa
root     18176     1  0 Jul18 ?        00:00:16 /usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant.conf -P /run/wpa_supplicant.pid

log file is empty:

$ sudo wc -l /var/log/wpa_supplicant.log
0 /var/log/wpa_supplicant.log

timestamp has been updated at system bootup:

$ LC_ALL=C ls -al /var/log/wpa_supplicant.log
-rw------- 1 root root 0 Jul 20 04:02 /var/log/wpa_supplicant.log

Reproducible: 

Steps to Reproduce:
Comment 1 Florian Hubold 2014-08-24 17:59:22 CEST
Hmmm, according to https://forums.gentoo.org/viewtopic-t-930204-start-0.html and and http://wiki.gentoo.org/wiki/Wpa_supplicant#Enable_Logging and comparing the man page to --help output, seems this is only for debug output.

  -f = log output to debug file instead of stdout

From https://bugs.launchpad.net/ubuntu/+source/wpasupplicant/+bug/175970/comments/1 it seems to also log to syslog, to /var/log/wpa_supplicant:

[doktor5000@Mageia4 ~]$ ls -ltr /var/log/wpa_supplicant*
-rw------- 1 root root   5392 Aug  5 22:33 /var/log/wpa_supplicant.log.4.gz
-rw------- 1 root root   2379 Aug 12 07:56 /var/log/wpa_supplicant.log.3.gz
-rw------- 1 root root   1594 Aug 17 13:55 /var/log/wpa_supplicant.log.2.gz
-rw------- 1 root root      0 Aug 19 04:02 /var/log/wpa_supplicant.log
-rw------- 1 root root 248936 Aug 24 17:57 /var/log/wpa_supplicant.log.1

Status: NEW => RESOLVED
CC: (none) => doktor5000
Resolution: (none) => INVALID