RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1353138 - „-f /var/log/wpa_supplicant.log” option appears two times on the command line for wpa_supplicant
Summary: „-f /var/log/wpa_supplicant.log” option appears two times on the command line...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: wpa_supplicant
Version: 7.2
Hardware: All
OS: Linux
medium
low
Target Milestone: rc
: ---
Assignee: Davide Caratti
QA Contact: Ken Benoit
URL:
Whiteboard:
Depends On:
Blocks: 1203710 1393481 1409480
TreeView+ depends on / blocked
 
Reported: 2016-07-06 08:30 UTC by Steffen Froemer
Modified: 2019-11-14 08:36 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
: 1409480 (view as bug list)
Environment:
Last Closed: 2017-08-01 20:58:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2427291 0 None None None 2016-08-02 08:28:31 UTC
Red Hat Product Errata RHBA-2017:2053 0 normal SHIPPED_LIVE wpa_supplicant bug fix and enhancement update 2017-08-01 18:35:57 UTC

Description Steffen Froemer 2016-07-06 08:30:45 UTC
Description of problem:
The option „-f /var/log/wpa_supplicant.log” appears two time on the commandline of wpa_supplicant. 
It is defined twice. First in /etc/sysconfig/wpa_supplicant and second in /usr/lib/systemd/system/wpa_supplicant.service

Version-Release number of selected component (if applicable):
wpa_supplicant-2.0-17.el7_1.x86_64

How reproducible:
always

Steps to Reproduce:
1. yum install wpa_supplicant
2. systemctl start wpa_supplicant
3. ps -ef | grep [w]pa_supplicant

Actual results:
root      1277     1  0 06:49 ?        00:00:00 /usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid

Expected results:
root      1277     1  0 06:49 ?        00:00:00 /usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf -P /var/run/wpa_supplicant.pid

Additional info:

$: cat /etc/sysconfig/wpa_supplicant 
# Use the flag "-i" before each of your interfaces, like so:
#  INTERFACES="-ieth1 -iwlan0"
INTERFACES=""

# Use the flag "-D" before each driver, like so:
#  DRIVERS="-Dwext"
DRIVERS=""

# Other arguments
#   -u   Enable the D-Bus interface (required for use with NetworkManager)
#   -f   Log to /var/log/wpa_supplicant.log
#   -P   Write pid file to /var/run/wpa_supplicant.pid 
#        required to return proper codes by init scripts (e.g. double "start" action)
#        -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"


---

$: cat /usr/lib/systemd/system/wpa_supplicant.service 
[Unit]
Description=WPA Supplicant daemon
Before=network.target
After=syslog.target

[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
EnvironmentFile=-/etc/sysconfig/wpa_supplicant
ExecStart=/usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf $INTERFACES $DRIVERS $OTHER_ARGS

[Install]
WantedBy=multi-user.target

Comment 23 Ken Benoit 2017-04-25 15:30:00 UTC
Installed RHEL-7.4-20170424.n.1 on a test system. Verified that /etc/sysconfig/wpa_supplicant now only contains:

OTHER_ARGS="-P /var/run/wpa_supplicant.pid"

While /usr/lib/systemd/system/wpa_supplicant.service contains:

ExecStart=/usr/sbin/wpa_supplicant -u -f /var/log/wpa_supplicant.log -c /etc/wpa_supplicant/wpa_supplicant.conf $INTERFACES $DRIVERS $OTHER_ARGS

Marking as verified.

Comment 24 errata-xmlrpc 2017-08-01 20:58:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2053


Note You need to log in before you can comment on or make changes to this bug.