Bug 7769 - wpa_supplicant doesn't start with dbus control interface with sysvinit
Summary: wpa_supplicant doesn't start with dbus control interface with sysvinit
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: connectivity (show other bugs)
Version: 1.8.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.9 M1
Assignee: Otavio Salvador
QA Contact: Cristina Agurida
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-05-14 22:38 UTC by Andrei Gherzan
Modified: 2015-07-22 15:01 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Gherzan 2015-05-14 22:38:44 UTC
dbus: Could not request service name: org.freedesktop.DBus.Error.AccessDenied Connection ":1.9" is not allowed to own the service "fi.w1.wpa_supplicant1" due to security policies in the configuration file
Failed to initialize wpa_supplicant

Reproduce:
1. Build with sysvinit.
2. $ wpa_supplicant -u

This is due to this commit:
http://permalink.gmane.org/gmane.comp.handhelds.openembedded.scm/87752
Comment 1 Otavio Salvador 2015-05-15 12:41:39 UTC
In this case the right fix would be to move the dbus setting file outside of the systemd subdir. This erroneously implied it was systemd specific.
Comment 2 Andrei Gherzan 2015-05-17 00:58:14 UTC
What systemd subdir are you referring to?
Comment 3 Otavio Salvador 2015-05-18 11:48:41 UTC
${sysconfdir}/dbus-1/system.d
Comment 4 Andrei Gherzan 2015-05-18 11:52:11 UTC
It needs to be there. The only issue is that it has to be there for sysvinit too. I don't understand why you want to put the file outside of system.d.
Comment 5 Otavio Salvador 2015-05-18 12:09:32 UTC
Now I see your point and I missunderstood it.

The right thing to do is to just revert my patch.
Comment 6 Andrei Gherzan 2015-05-18 13:22:47 UTC
Exactly my point. Agreed.
Comment 7 Cristian Iorga 2015-06-18 17:02:00 UTC
Hi Otavio, can you take care of reverting the patch in question?

Thanks,
Cristian
Comment 8 Otavio Salvador 2015-06-18 20:20:22 UTC
Sent the patch for review.
Comment 10 Cristina Agurida 2015-07-22 15:01:38 UTC
Verified on master: 0f8d89ce66cfffccc9911d6c61470a585173b79d