summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-03-18test-iptables: Move file to tools and rename it to iptables-unitDaniel Wagner2-5/+5
Unit tests are suppessed to be run during 'make distcheck' but iptables-unit needs to be run with root rights.
2013-03-14doc: Information about activating debugging in ConnManJukka Rissanen1-0/+43
2013-03-14service: User cannot modify immutable serviceJukka Rissanen1-0/+15
If the service is provisioned via .config file, then user is only able to set the AutoConnect status of the service. All the other settings must be set from the .config file. Fixes BMC#25984
2013-03-08vpn: Make sure vpn connection really exists before removing itJukka Rissanen1-1/+6
2013-03-08vpn: Check whether we have already removed the providerJukka Rissanen1-0/+8
The dbus messages from vpnd might come in different order so make sure we are not trying to access already removed provider.
2013-03-08vpn: Add debug information when vpn state changesJukka Rissanen1-0/+2
2013-03-08vpn: Remove VPN provider from service list when destroying itJukka Rissanen1-1/+1
When provider is destroyed in vpnd, we get a notification about that. We must then remove the provider which will also unref it so the provider data will get removed properly. Old code just unreffed the provider but it was left hanging in service list.
2013-03-08provider: New provider removal function callable from vpn pluginJukka Rissanen2-0/+14
2013-03-08provider: Change the name of provider remove functionJukka Rissanen3-3/+3
Following patch will introduce provider remove function that can be used from vpn plugin so rename the current removal function to reflect better its usage.
2013-03-08vpn-config: Ignore IN_CREATE as IN_MODIFY is called anywayJukka Rissanen1-8/+20
Inotify will send modify event after create event when user has copied the config file into config directory. Because of this it is useless to act on create event. As a bonus we avoid create/modify/create loop that was earlier done in the modify event handling code.
2013-03-08vpn: Clear the data pointer from provider when destroyingJukka Rissanen1-0/+2
If the data pointer is left around, then vpn plugin might accidentally use it if dbus messages are received after we have cleared the vpn connection.
2013-03-08vpn-provider: Do not save or load provisioned VPN connectionsJukka Rissanen1-3/+13
The vpnd will not read or save provider data from disk. Only way to provision VPN is by setting necessary data in VPN .config file.
2013-03-08vpn-provider: SetProperty and ClearProperty do not work if immutableJukka Rissanen1-0/+6
Immutable VPN connection settings cannot be changed by SetProperty or ClearProperty dbus API.
2013-03-08vpn-provider: Introduce immutable flag to provider dataJukka Rissanen1-0/+5
2013-03-08vpn-provider: Do not allow changes to settings that are immutableJukka Rissanen2-5/+26
The immutable settings are those that are read from .config file.
2013-03-08service: Send signal only if immutable flag value changesJukka Rissanen1-0/+4
2013-03-08vpn: Set immutable flag of the VPN serviceJukka Rissanen1-0/+1
2013-03-08provider: Function to set the immutable flagJukka Rissanen2-0/+15
2013-03-08vpn: Remember the immutable flag from vpndJukka Rissanen1-0/+3
2013-03-08test: Pretty print the error when trying to set/unset VPN propertyJukka Rissanen1-2/+8
2013-03-08doc: Describe immutable flag for VPN connectionJukka Rissanen1-0/+8
The immutable flag is set if the VPN connection is provisioned via a .config file. The VPN connection can be removed only by removing the .config file from /var/lib/connman-vpn directory.
2013-03-08vpn-provider: Do not quit vpnd if there are no VPN configurationsJukka Rissanen3-27/+0
Because we now support provisioning of VPN services via .config file, we need to keep vpnd running so that it can monitor the connman-vpn directory for new config files.
2013-03-08doc: Typo fixes in the documentationJukka Rissanen3-4/+4
Fixes BMC#25978
2013-03-07device: Check positive device filter correctlyJukka Rissanen1-4/+10
The -i or --device command line option contains the device names that we should use. Unfortunately the check fails if there are multiple interfaces in that list and we ignore the interfaces instead. Fixes BMC#25979
2013-03-07iptables: Fix rule appendingDaniel Wagner1-9/+6
Commit ba052f1f "iptables: Add split out iptables commands" introduced a bug. __connman_iptables_append() should call iptables_append_rule() instead of iptables_insert_rule().
2013-03-07iptables: Valid policies are only ACCEPT and DROPDaniel Wagner1-1/+6
2013-03-07iptables: Fix setting policyDaniel Wagner1-1/+6
The policy is kept at the end of the chain not at the beginning. Currently, the code assumes that the builtin chain is empty.
2013-03-07iptables: Always update options tableDaniel Wagner1-4/+0
The linked list is tracking all loading modules. Since we do not unload once they are loaded (xtables does not support this), we might up leaving prepare_matches() before we update the option table. Since we carefully reset the global xtable state after executing one rule, this check is wrong, e.g. if we add to similar rules (same matches (mark, nfacct)). In this case the second rule would not be parsed correctly. Nasty nasty iptables parser!
2013-03-07iptables: Do not flush in the wrong orderDaniel Wagner1-0/+8
2013-03-07iptables: Fix and refactor iterate_entries()Daniel Wagner1-25/+46
Updating the builtin and hook index is more complex then one would expect. In order to be able to update them correctly we need also to pass in the underflow table to the iterate function. To improve the readability the valid_hook magic has been moved into next_hook_entry_index() which does exactly as the name says.
2013-03-07iptables: Fix is_fallthrough() checkDaniel Wagner1-2/+6
A fallthrough rule is one which has the default target name, does not have a verdict and is not a jump rule. is_fallthrough() is called excluslive from the insert path, thus the value of verdict will be 0 for a fallthrough rule.
2013-03-06build: vpn-property test script was missing from buildJukka Rissanen1-1/+1
2013-03-06service: Restart wispr on nameserver changeForest Bond1-0/+10
This is needed to make a service go online in the case where it was already connected and then manual IPv4 & nameservers settings are applied. In that case, wispr is restarted with the new IP settings, but the nameservers have not been set yet, so the wispr test fails and the service remains in ready state.
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-28vpn-provider: Parse user networks correctlyJukka Rissanen1-1/+5
Check NULL string before passing it to g_strsplit()
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-26Release 1.12upstream/1.121.12Marcel Holtmann2-1/+13
2013-02-26doc: Fix the path to VPN config filesJukka Rissanen1-2/+2
The correct default path is /var/lib/connman-vpn
2013-02-26doc: Update overview-api.txtTomasz Bursztyka1-4/+22
- Introduce the user to per SSID/Security Wifi networks grouping - Agent is no longer a future feature and user should be aware of how required information can be provided when connecting to a service.
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-26gsupplicant: Increase D-Bus timeout to 30 secondsPatrik Flykt1-1/+1
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-26config: Add a function to provision mutable serviceTomasz Bursztyka2-2/+104
The point here is to create a virtual configuration, which does not come from a real file. This is a handy way for plugins to be able to provision services without creating any file on the FS. In case of a wifi configuration type and if connect is requested, it will trigger a scan, thus leading to a possible service being provisioned by such virtual configuration. If so and if connect was requested: the service will be asked to connect.
2013-02-26config: Make load service from each keyfile group as a functionTomasz Bursztyka1-17/+24
2013-02-26config: Remove superfluous error codeTomasz Bursztyka1-22/+14
It simplifies the code removing uselesse variable, moreover such variable has the same name as an existing label in the same function.
2013-02-26neard: Add neard plugin with tethering info sharing supportTomasz Bursztyka3-0/+391
Implement also RequestOOB() neard Agent method.
2013-02-26technology: Provide a function to get WiFi tethering informationTomasz Bursztyka2-16/+42
2013-02-25gsupplicant: Remove pointless timeout constantMarcel Holtmann1-2/+0
2013-02-23gdbus: Always unreference the message in g_dbus_send_message()Tomasz Bursztyka1-2/+3
A quick fix on g_dbus_send_message(), if check_signal() fails it returns FALSE without unreferencing the message as it should. This patch fixes it.