summaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2013-03-08vpn: Set immutable flag of the VPN serviceJukka Rissanen1-0/+1
2013-03-08vpn: Remember the immutable flag from vpndJukka Rissanen1-0/+3
2013-03-05wifi: Preliminary fix for autoscanning known hidden SSIDsTomasz Bursztyka1-16/+15
Currently, it relies on max_ssids to know how many SSIDs it can provide as paremeters. However, patch 6af0579c434058536fb40480f40f5e9895cfe863, which fixes an issue about fast scanning, affects such feature. Therefore, as a default, it will fallback to 1 if given max_ssids is 0. There is still the issue that it will autoscan only max_ssid (1 or more) known hidden SSIDs. This need to be fixed. Reported by Sameer Naik
2013-02-27neard: Use a timeout instead of DBUS_TIMEOUT_USE_DEFAULT for compatibilityTomasz Bursztyka1-1/+3
DBUS_TIMEOUT_USE_DEFAULT appeared in dbus-1.4.12, but earlier dbus versions are still in use in some distributions like Fedora 17.
2013-02-26dundee: Increase timeout to 60 secondsPatrik Flykt1-1/+1
D-Bus method calls to may trigger pairing and/or pop up a dialog in the remote Bluetooth device to which the user needs to react.
2013-02-26bluetooth_legacy: Increase Bluez 4 plugin timeout to 60 secondsPatrik Flykt1-1/+1
D-Bus method calls to Bluez 4 may trigger pairing and/or pop up a dialog in the remote device to which the user needs to react.
2013-02-26neard: Add partial support for wifi provisionning via NFCTomasz Bursztyka1-16/+257
PushOOB() method implementation. Currently only basic open/psk based provisioning is supported.
2013-02-26neard: Add neard plugin with tethering info sharing supportTomasz Bursztyka1-0/+381
Implement also RequestOOB() neard Agent method.
2013-02-19vpn: Ignore VPN UserRoutes and ServerRoutes propertiesJukka Rissanen1-0/+4
These properties are not needed here so ignore them.
2013-02-19config: Read only wifi configJukka Rissanen1-1/+1
2013-01-30dundee: Set network available is needed only when scanningPatrik Flykt1-2/+0
2013-01-30ofono: Set network available is needed only when scanningPatrik Flykt1-2/+0
2013-01-30ethernet: Set network available is needed only when scanningPatrik Flykt1-2/+0
2013-01-30bluetooth: Implement tethering for the Bluez 5 bluetooth pluginPatrik Flykt1-0/+117
2013-01-30bluetooth: Connect and disconnect a PAN NAP networkPatrik Flykt1-5/+137
Implement connect and disconnect functionality for a ConnMan network. On network creation check the connection status of the Bluez 5 Network1 object and set the network to connected when needed.
2013-01-30bluetooth: Expose Bluez 5 org.bluez.Network1 objects as networksPatrik Flykt1-4/+133
Create ConnMan networks for those Bluez 5 org.bluez.Network1/Device1 objects that support PAN NAP. A network is created or removed in response to the Network1/Device1 being created or when the Device1 object's UUID changed. The ConnMan network struct is added to and removed from the ConnMan device when the device is created, enabled or disabled.
2013-01-30bluetooth_legacy: Check network in probe functionPatrik Flykt1-4/+18
The network probed can belong to the new Bluez 5 bluetooth plugin or to this plugin. Check if this plugin created the network and proceed accordingly.
2013-01-30bluetooth: Keep track of Bluez 5 org.bluez.Network1 objectsPatrik Flykt1-0/+172
Set up functions monitoring Bluez 5 org.bluez.Network1 objects being added and removed. Add a GDBusProxy for the org.bluez.Device1 object that corresponds to the Network1 object. Set up functions monitoring Network1 'Connected' and Device1 'UUID' properties.
2013-01-30bluetooth: Expose Bluez 5 adapters as ConnMan devicesPatrik Flykt1-0/+308
Set up functions monitoring Bluez 5 objects being added and removed using GDBusProxy. When an adapter appears, create a new device for it and set up a watch function for the adapter's 'Powered' property. Keep the adapter 'Powered' property in sync with the device state and if they differ reset the adapter to the device state. Also update the Bluez 5 adapter 'Powered' property when the device is enabled or disabled.
2013-01-30bluetooth: Register technology driverPatrik Flykt1-1/+31
2013-01-30bluetooth: Add new bluetooth pluginPatrik Flykt1-0/+49
2013-01-30bluetooth: Rename bluetooth plugin to bluetooth_legacyPatrik Flykt1-6/+9
Set the plugin priority to CONNMAN_PLUGIN_PRIORITY_LOW and the technology priority to -10. Update strings to "bluetooth_legacy" and use ordinary string instead of ident.
2013-01-30ofono: Use ordinary string instead of identPatrik Flykt1-1/+1
The string is only used for debugging purposes.
2013-01-30dundee: Use ordinary string instead of identPatrik Flykt1-1/+1
The string is only used for debugging purposes.
2013-01-04core: Remove WiMAX definitions from codePatrik Flykt1-1/+0
2013-01-04plugins: Remove WiMAX plugin filesPatrik Flykt3-1822/+0
2012-12-21session-policy-local: Check policy being non-NULL before usingPatrik Flykt1-1/+3
When running unit/test-session the following happens if SELinux is disabled but --enable-session-policy-local is specified for ./configure: connmand[6468]: src/session.c:__connman_session_create() owner :1.269 connmand[6468]: src/dbus.c:selinux_get_context_reply() Failed to retrieve SELinux context connmand[6468]: src/session.c:session_create_cb() session 0x2388dc0 config (nil) connmand[6468]: Aborting (signal 11) [src/connmand] connmand[6468]: ++++++++ backtrace ++++++++ connmand[6468]: #0 0x7f5b2b8184f0 in /lib/x86_64-linux-gnu/libc.so.6 connmand[6468]: #1 0x4379b4 in policy_local_destroy() at plugins/session_policy_local.c:245 connmand[6468]: #2 0x46703f in free_session() at src/session.c:258 connmand[6468]: #3 0x468603 in session_create_cb() at src/session.c:1710 connmand[6468]: #4 0x4377e7 in selinux_context_reply() at plugins/session_policy_local.c:201 connmand[6468]: #5 0x461366 in selinux_get_context_reply() at src/dbus.c:475 connmand[6468]: #6 0x7f5b2c66b1ca in /lib/x86_64-linux-gnu/libdbus-1.so.3 connmand[6468]: #7 0x7f5b2c66e293 in /lib/x86_64-linux-gnu/libdbus-1.so.3 connmand[6468]: #8 0x410aa8 in message_dispatch() at gdbus/mainloop.c:76 connmand[6468]: #9 0x7f5b2c8eeeeb in /lib/x86_64-linux-gnu/libglib-2.0.so.0 connmand[6468]: #10 0x7f5b2c8ee355 in /lib/x86_64-linux-gnu/libglib-2.0.so.0 connmand[6468]: #11 0x7f5b2c8ee688 in /lib/x86_64-linux-gnu/libglib-2.0.so.0 connmand[6468]: #12 0x7f5b2c8eea82 in /lib/x86_64-linux-gnu/libglib-2.0.so.0 connmand[6468]: #13 0x410592 in main() at src/main.c:672 connmand[6468]: #14 0x7f5b2b804ead in /lib/x86_64-linux-gnu/libc.so.6 connmand[6468]: +++++++++++++++++++++++++++
2012-12-14vpn: Clear pending connect flag on connect attemptPatrik Flykt1-0/+2
Fixes BMC#25894
2012-12-10vpn-plugin: Check completion of configure and connectPatrik Flykt1-16/+14
When creating a configuration, wait until both configuration and connection has been done. Otherwise NULL user data is passed to the callback which then cannot relay an error to the caller and the caller will get a timeout waiting for a reply from D-Bus.
2012-12-10vpn-plugin: Propagate most common errors to callback functionPatrik Flykt1-4/+14
Instead of always setting the create callback function error to -ECONNREFUSED, create a helper function to detect the two most often emitted errors.
2012-12-10session_policy_local: Create policy directory if necessaryDaniel Wagner1-0/+12
Create the policy directory as first thing. If we don't do this adding a watch on the non existing directory will fail and the whole plugin is not loaded. We need to figure out later how permissive the MODE of the directory should be. Currently, we play safe and have it tied down.
2012-12-05session_policy: Remove dummy pluginDaniel Wagner1-101/+0
The default configuration will be created by the core if no plugin is used. Therefore there is no need for this plugin.
2012-12-05session_policy_local: Rename session_policy_iviDaniel Wagner1-27/+27
On popular request the plugin is renamed. The plugin is reading local files and has nothing to do with IVI.
2012-12-05session_policy_ivi: Initialize variable and remove an unused oneDaniel Wagner1-2/+1
Remove unused 'err' variable and properly initialize 'ident' for error cases.
2012-11-26vpn: Cleanup properly if vpn connect failsJukka Rissanen1-2/+4
Make sure that user callback data is cleared correctly if vpn connect attempt fails.
2012-11-26vpn: Cleanup vpn connections when vpnd diesJukka Rissanen1-0/+2
2012-11-26vpn: Do not remove vpn connections hash when vpnd diesJukka Rissanen1-14/+9
We must keep the vpn connections hash alive as long as connman is running. We must not remove the hash when vpnd dies, otherwise we might feed null pointer to various glib hash functions.
2012-11-23session_policy_ivi: Implement policy load functionDaniel Wagner1-1/+105
If config file should also be parsed and the values then stored in the config object.
2012-11-23session_policy_ivi: Watch for changes on policy filesDaniel Wagner1-4/+92
Monitor changes on the config files. Either create, modify or destroy them according the events we get from the inotify interface.
2012-11-23session_policy_ivi: Add hash table to track identsDaniel Wagner1-0/+43
Introduce the second hash table which tracks the config object lifetime based on the file existens. The parsing of the file and creation of the config object is part of the next patch.
2012-11-23session_policy_ivi: Create session configDaniel Wagner1-3/+115
The policy data object is refcounted because the policy data object can be created either through the session core or from the file based policy. In order to avoid complex logic which tries to figure out when to is safe to destroy the object we just fall back to refcountig. polich_hash is the owner of the policy object. When a object is created it is stored there. The key is the identitfier. Since the session core does not know about the identifier we introduce an additional hash table which maps from session pointer to the policy object.
2012-11-23session_policy_ivi: Get SELinux context of session ownerDaniel Wagner1-1/+95
2012-11-23session_policy_ivi: Add policy plugin for IVIDaniel Wagner1-0/+91
Add only the empty 'framework'. In the following patches we add step by step the implementation.
2012-11-23vpn: Remove unused variableDaniel Wagner1-2/+0
2012-11-23provider: Add callback when creating vpn providerJukka Rissanen1-42/+126
Because the vpnd Create() in manager API only creates and does not connect the vpn, we must do the connect part after the vpn is created. This requires a callback which is called when the connection is established. Eventually this patch becomes obsolete because the CreateProvider() connman API is deprecated.
2012-11-23vpn: Hash provider data using the ident instead of pathJukka Rissanen1-39/+79
Needed as sometimes we do not know the path but know the ident.
2012-11-23vpn: Resolve vpn hostname if necessaryJukka Rissanen1-1/+105
2012-11-23provider: Refactor server and user route handlingJukka Rissanen1-25/+442
The server and user route handling is refactored in order to reflect the vpn dbus API changes. The routes are now array of dicts in dbus API.
2012-11-23plugin: Add VPN plugin that will interact with vpndJukka Rissanen1-0/+1164
2012-11-23vpn: New vpn daemon that handles vpn connections and clientsJukka Rissanen7-2403/+0