commit | 7e8b8ee34816575b9059dd041ef29f91fe1d15c8 | [log] [tgz] |
---|---|---|
author | Peter Qiu <zqiu@chromium.org> | Tue Nov 25 13:55:57 2014 -0800 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Tue Dec 02 01:57:43 2014 +0000 |
tree | b7795928aa765358d241eb6620e10f6b081f9850 | |
parent | 6961f25d36a62dc8aef658f6622153b32c03a57a [diff] |
shill: add support for allowing remote dbus service to claim/release devices Add method ClaimInterface and ReleaseInterface to DBus interface org.chromium.flimflam.Manager to allow remote DBus service to claim the ownership of network interfaces from shill. To reduce complexity, this service will only support one DBus service at a time, which means disallow a DBus service from claiming interface from shill if another DBus service currently had ownership to one or more interfaces from shill. When an interface is claimed by a remote DBus service, shill will stop any activities on that interface, deregister it from the manager if it is registered, and put it in the blacklist to avoid any further usage. Once the interface is released by the remote DBus service, it will be removed from the blacklist and a new device will be created/registered when it is detected through RTNL. BUG=chromium:435704 TEST=unittests, manual test will be done using apmanager. Change-Id: Ie01945f083910345d4cbe9e1d2e64711b5d60891 Reviewed-on: https://chromium-review.googlesource.com/231930 Reviewed-by: Peter Qiu <zqiu@chromium.org> Commit-Queue: Peter Qiu <zqiu@chromium.org> Tested-by: Peter Qiu <zqiu@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org>