platform/upstream/connman.git
9 years agoSync with Tizen 2.4(1.29.36) 53/49053/1 accepted/tizen/mobile/20151020.111002 accepted/tizen/tv/20151020.111019 accepted/tizen/wearable/20151020.111030 submit/tizen/20151020.082803
taesub.kim [Tue, 6 Oct 2015 02:04:26 +0000 (11:04 +0900)]
Sync with Tizen 2.4(1.29.36)

Change-Id: I02fc50820cccc66aed702a97a9928981e73b43cf
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
9 years agoFix the configuration for cynara 83/48583/1 accepted/tizen/mobile/20150930.115522 accepted/tizen/tv/20150930.115535 accepted/tizen/wearable/20150930.115547 submit/tizen/20150930.093405 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
hyunuktak [Wed, 23 Sep 2015 08:33:16 +0000 (17:33 +0900)]
Fix the configuration for cynara

Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: I533978c327a710ffa090520563a4ed9a5878dafb

9 years agoAdd configuration file for DBus access 22/47822/2 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150911.091342 accepted/tizen/tv/20150911.091358 accepted/tizen/wearable/20150911.091407 submit/tizen/20150911.004810 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
hyunuktak [Wed, 9 Sep 2015 07:19:09 +0000 (16:19 +0900)]
Add configuration file for DBus access

Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: I42ae30e8573517939651194227b21d73086cc5e0

9 years agodnsproxy: Fix crash on closing socket 27/46927/1 accepted/tizen/mobile/20150902.101338 accepted/tizen/tv/20150902.101343 accepted/tizen/wearable/20150902.101358 submit/tizen/20150902.062838
Saurav Babu [Thu, 27 Aug 2015 08:37:49 +0000 (14:07 +0530)]
dnsproxy: Fix crash on closing socket

Change-Id: Ie99a531c8d9573ab2db41ed3ea9e2ecd3cce5284
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
9 years agoFixed Tizen Profile Build Flag as per Tizen 3.0 95/46895/2 accepted/tizen/mobile/20150828.011438 accepted/tizen/tv/20150828.011444 accepted/tizen/wearable/20150828.011454 submit/tizen/20150827.063541
Seonah Moon [Thu, 27 Aug 2015 04:36:39 +0000 (13:36 +0900)]
Fixed Tizen Profile Build Flag as per Tizen 3.0

Change-Id: I68c8951a77b542eb72b1ec90941fdee4b2dae1e9
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
9 years agoRemove the smack_fsetlabel for system::use_internet 68/46268/1 accepted/tizen/mobile/20150819.072249 accepted/tizen/tv/20150819.072302 accepted/tizen/wearable/20150819.072331 submit/tizen/20150819.025736
hyunuktak [Wed, 19 Aug 2015 01:20:17 +0000 (10:20 +0900)]
Remove the smack_fsetlabel for system::use_internet

Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: Iae03c564dfba3b9fd35ca751856aecbfcc58d7fc

9 years ago[connman]Add configuration file for DBus access 26/46226/1 accepted/tizen/mobile/20150818.101121 accepted/tizen/tv/20150818.101426 accepted/tizen/wearable/20150818.101749 submit/tizen/20150818.092858
Yu Jiung [Tue, 18 Aug 2015 07:32:07 +0000 (16:32 +0900)]
[connman]Add configuration file for DBus access

Change-Id: Ieb47b782877284de519b07df524f9e358343b363

9 years agoChange the manifest file 92/46192/1 accepted/tizen/mobile/20150818.040752 accepted/tizen/tv/20150818.040900 accepted/tizen/wearable/20150818.040939 submit/tizen/20150818.023012
hyunuktak [Tue, 18 Aug 2015 01:59:18 +0000 (10:59 +0900)]
Change the manifest file

Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: I51cd2dc2ff18c3719e292a63d036f9ef3ec1b29c

9 years agoRemove the unknown tag for systemd_requires 72/45772/1 accepted/tizen/mobile/20150817.080545 accepted/tizen/tv/20150817.080608 accepted/tizen/wearable/20150817.080627 submit/tizen/20150811.072848 submit/tizen_mobile/20150817.000000
hyunuktak [Tue, 11 Aug 2015 06:36:01 +0000 (15:36 +0900)]
Remove the unknown tag for systemd_requires

Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: I91d639ca6297ff8c4dae580fd4e804cde19ba39e

9 years agoFix the build break by changing the version for upstream 42/45642/1 submit/tizen/20150811.060131
hyunuktak [Mon, 10 Aug 2015 06:03:51 +0000 (15:03 +0900)]
Fix the build break by changing the version for upstream

Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: Ifa5400fd8135edc29bf7725a42567189c5967198

9 years agoBase Code merged to SPIN 2.4 38/45538/1 submit/tizen/20150810.034432
hyunuktak [Fri, 7 Aug 2015 08:11:34 +0000 (17:11 +0900)]
Base Code merged to SPIN 2.4

Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17

9 years agoModified version 76/44976/1 accepted/tizen/mobile/20150730.121909 accepted/tizen/tv/20150730.122033 accepted/tizen/wearable/20150730.122154 submit/tizen/20150730.080617
taesub.kim [Thu, 30 Jul 2015 07:56:12 +0000 (16:56 +0900)]
Modified version

Change-Id: I4e23e944c88be59dcf42a88c575ba41319c4c985
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
9 years agoModified smack label for resolv.conf file 37/44837/1 submit/tizen/20150728.100704
taesub.kim [Tue, 28 Jul 2015 10:02:02 +0000 (19:02 +0900)]
Modified smack label for resolv.conf file

Change-Id: Ifd271983fdd1752bad4840f29964f5c103738aba
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
9 years agoAdd tizen extend code for dns proxy 77/43877/1 accepted/tizen/mobile/20150715.064045 accepted/tizen/tv/20150715.064056 accepted/tizen/wearable/20150715.064106 submit/tizen/20150715.043627
hyunuktak [Wed, 24 Jun 2015 12:53:53 +0000 (21:53 +0900)]
Add tizen extend code for dns proxy

Change-Id: Ib54bbd745645a53c86bb69655529f809b6586621
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
9 years agoRemove the unused code 48/43348/1 accepted/tizen/mobile/20150708.195659 accepted/tizen/tv/20150708.195736 accepted/tizen/wearable/20150708.195759 submit/tizen/20150708.081957
Seonah Moon [Wed, 8 Jul 2015 08:12:47 +0000 (17:12 +0900)]
Remove the unused code

Change-Id: I814035d1f29d93acbb0fd149dc43b44e069103f1
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
9 years agoFix for wifi_scan-->"no Wifi-ap found" 43/43343/1 submit/tizen/20150708.074848
pradeep kumar B [Fri, 3 Jul 2015 14:23:16 +0000 (19:53 +0530)]
Fix for wifi_scan-->"no Wifi-ap found"

Change-Id: Ia624ab6e2ddc967c1581ed48a7eababa0cdb909f
Signed-off-by: pradeep kumar B <b.pradeep@samsung.com
9 years agoFix for WPS Push Button & WPS router Pin 42/43342/1
pradeep kumar B [Wed, 1 Jul 2015 11:55:30 +0000 (17:25 +0530)]
Fix for WPS Push Button & WPS router Pin

Change-Id: Ie8374a6c8d401a2178ad701e94978a6cdc1517e7
Signed-off-by: pradeep kumar B <b.pradeep@samsung.com>
9 years agoFix MMS connection failure 41/43341/1
Jaehyun Kim [Tue, 30 Jun 2015 00:40:43 +0000 (09:40 +0900)]
Fix MMS connection failure

Change-Id: Id3847d1d8233c2177cfbd65ba42ead8ff44a06a8

9 years agoDisable rfkill block feature 40/43340/1
taesub.kim [Thu, 25 Jun 2015 07:00:22 +0000 (16:00 +0900)]
Disable rfkill block feature

Change-Id: I279ad9d0e623872f4dcf37a6c3c9cd012842e448
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
9 years agoMerge "Add support for ipv6" into tizen tizen_3.0.2015.q2_common accepted/tizen/common/20150601.145645 accepted/tizen/mobile/20150602.002901 accepted/tizen/tv/20150602.002833 accepted/tizen/wearable/20150602.002855 submit/tizen/20150530.015511 submit/tizen/20150603.094522
taesub.kim [Fri, 29 May 2015 07:08:28 +0000 (00:08 -0700)]
Merge "Add support for ipv6" into tizen

9 years agoRevert "Add TIZEN_EXT patch to ignore rfkill block" 99/40099/1
seonah moon [Fri, 29 May 2015 04:26:09 +0000 (21:26 -0700)]
Revert "Add TIZEN_EXT patch to ignore rfkill block"

This reverts commit 9e7ccc53900e9fe24bfcf56c22a4c6be7b002dc5.

Change-Id: I369ccf417c12a24c80aaed902127c80b3f109ce2

9 years agoAdd support for ipv6 94/39994/2
taesub.kim [Wed, 27 May 2015 09:40:23 +0000 (18:40 +0900)]
Add support for ipv6

Support the IPv6 auto in cellular network
desc : Add the logic if the IPv6 configuration is auto conf in cellular network

Change-Id: Ibb0602a449469d42d8caf4c6162caab95136aeff
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
9 years agoAdd TIZEN_EXT patch to ignore rfkill block 14/38614/2 accepted/tizen/common/20150423.074131 accepted/tizen/mobile/20150423.084813 accepted/tizen/tv/20150423.084606 accepted/tizen/wearable/20150423.084720 submit/tizen/20150423.014141
Seonah Moon [Thu, 23 Apr 2015 01:20:43 +0000 (10:20 +0900)]
Add TIZEN_EXT patch to ignore rfkill block

Change-Id: I624a38019f853988eabe65fb8552710d5dd7aeb7
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
9 years agoAdd settings file 62/36562/1 accepted/tizen/common/20150310.094524 accepted/tizen/mobile/20150310.122132 accepted/tizen/tv/20150310.113221 accepted/tizen/wearable/20150310.114525 submit/tizen/20150310.061003
Seonah Moon [Tue, 10 Mar 2015 05:25:59 +0000 (14:25 +0900)]
Add settings file

Bluetooth is off when BT is aready enable.
It is because persistent_enable is false.
Connman daemon checks persistent_enable in /var/lib/connman/settings.
So settings file is added to enable persistent_enable.

Change-Id: I8526bb1227841a6b9f5d43777cdd0688d02b9131
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
9 years agoconfig: Fix service provision issue 07/33807/3 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20150119.084328 accepted/tizen/ivi/20150116.052317 accepted/tizen/mobile/20150119.094359 accepted/tizen/tv/20150119.093517 accepted/tizen/wearable/20150119.093941 submit/tizen/20150116.024418 tizen_3.0_ivi_release
Zhang zhengguang [Thu, 15 Jan 2015 08:27:30 +0000 (16:27 +0800)]
config: Fix service provision issue

Fixes TC-2298

Root cause:
ConnMan will check the wifi security type from nfc daemon
to decide whether to auto connect the related wifi service,
but it can't get the security type in current mechanism,
So that the wifi AP got from nfc tag will not be connected.

Solution:
ConnMan doesn't need to check wifi security type when it
tries to provision service.

Change-Id: I4ee3294214b756f9a39b6dc21cb658acd0640cc7

9 years agoTizen: Clean up spec file 88/32788/1 accepted/tizen/common/20141224.100618 accepted/tizen/ivi/20150112.060117 accepted/tizen/mobile/20141224.105911 accepted/tizen/tv/20141224.104516 accepted/tizen/wearable/20141224.105126 submit/tizen/20141224.062932
Zhang zhengguang [Wed, 24 Dec 2014 02:31:13 +0000 (10:31 +0800)]
Tizen: Clean up spec file

Change-Id: Ic19f0aa18a0701bd6d2abf2d67d130b14a78288a

9 years agomulti-user: Fix service auto connect issue 27/31327/2 accepted/tizen/common/20141208.080901 accepted/tizen/ivi/20141217.060504 accepted/tizen/mobile/20141208.084229 accepted/tizen/tv/20141210.133225 accepted/tizen/wearable/20141210.194841 submit/tizen/20141208.013030
Zhang zhengguang [Thu, 4 Dec 2014 05:25:42 +0000 (13:25 +0800)]
multi-user: Fix service auto connect issue

In curernt IVI image, systemd doesn't write utmp entries
for logged in users, so that ConnMan can't get the related
user info, under which condition, it doesn't need to forbid
service auto connect for this user.

Change-Id: I4ca33b2b43ac351d1be8c862808304d8a17d8d7d

9 years agoPull systemd-devel to get RPM macros 96/31196/1 accepted/tizen/common/20141202.165308 accepted/tizen/ivi/20141209.110758 submit/tizen_common/20141201.121739 submit/tizen_ivi/20141208.111111 submit/tizen_ivi/20141209.000000
Łukasz Stelmach [Tue, 2 Dec 2014 10:49:18 +0000 (11:49 +0100)]
Pull systemd-devel to get RPM macros

Change-Id: I532306d4a912c8f1f6b7f8a7bdd6e45ff0823982
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
9 years agomulti-user: Fix service load/save issues 13/30613/2
Zhang zhengguang [Fri, 21 Nov 2014 08:34:11 +0000 (16:34 +0800)]
multi-user: Fix service load/save issues

Refine service load/save to be multi-user complicant.

Change-Id: Icc8a0507826f4cae72319191e4fdbebe548434fc

9 years agomulti-user: Expose function to check service user favorite 05/30505/3
Zhang zhengguang [Wed, 19 Nov 2014 01:50:45 +0000 (09:50 +0800)]
multi-user: Expose function to check service user favorite

Expose the function to check whether the service is favorite
to the current user.

Change-Id: Ib232f16c652ec94ef2e10b199a638a98554a1066

9 years agomulti-user: Add multi-user support for auto connect service 15/29715/3 accepted/tizen/common/20141121.180554 accepted/tizen/ivi/20141202.020921 accepted/tizen/mobile/20141117.090654 submit/tizen/20141117.030429
Zhang zhengguang [Sat, 11 Oct 2014 08:46:50 +0000 (16:46 +0800)]
multi-user: Add multi-user support for auto connect service

Use case:

For wifi auto connect mechamnism, only when the user who owns the
wifi service login, the service is allowed to be auto connected.

Change-Id: I99135117facafda41532e0280c89194b27baac16

9 years agomulti-user: Add multi-user support in manager 14/29714/3
Zhang zhengguang [Fri, 17 Oct 2014 03:21:37 +0000 (11:21 +0800)]
multi-user: Add multi-user support in manager

Use case:

Given 2 users: UserA and UserB

If UserA is connected to a wifi service, then UserB is not allowed
to turn on offline mode.

Change-Id: I54b108beb580a805c7fa2d3ae9dac192b836ba77

9 years agomulti-user: Add multi-user support in technology 13/29713/3
Zhang zhengguang [Sat, 11 Oct 2014 07:09:09 +0000 (15:09 +0800)]
multi-user: Add multi-user support in technology

Use case:

Given 2 users: UserA and UserB

If UserA is connected to a wifi service, then UserB is not allowed
to set wifi technology properties.

Change-Id: Ia783b22bc28e9e487ddfa3a4c249c9d1ea76bde8

9 years agomulti-user: Add multi-user support in service 12/29712/3
Zhang zhengguang [Sat, 11 Oct 2014 07:08:18 +0000 (15:08 +0800)]
multi-user: Add multi-user support in service

Use cases:

Given 2 users: UserA and UserB

1. If UserA is connected to a wifi service, then UserB is not allowed
to connect wifi service, and not allowed to disconnect the service
UserA connected.

2. If UserA is connected to a wifi service, then UserB is allowed to
use the same connection, but he is not allowed to modify the connection.

3. If UserA is connected to a wifi service with security wep/wpa/psk,
then UserA disconnects it, when UserB tries to connect the same wifi
service, it must input passphrase to connect it.

Change-Id: Id686ebd7d1f3490875a9d8f877219bd004907227

9 years agomulti-user: Add function to get dbus user id synchronously 11/29711/3
Zhang zhengguang [Sat, 11 Oct 2014 07:06:14 +0000 (15:06 +0800)]
multi-user: Add function to get dbus user id synchronously

Change-Id: Ic41643e5f8b6e1a28ce00e0456d961fe2de7a7fb

10 years agoTethering: Get the client mac info of Gadget tether accepted/tizen/common/20141103.141112 accepted/tizen/ivi/20141107.062620 accepted/tizen/mobile/20141117.073754 submit/tizen/20141103.030434 submit/tizen_mobile/20141120.000000
guoqiang.liu [Wed, 25 Sep 2013 08:36:21 +0000 (16:36 +0800)]
Tethering: Get the client mac info of Gadget tether

Change-Id: Icfa6cd683c659e6728060d6201b90109c63fe56d

10 years agoTethering: Watch the connection and disconnection signal of Bluetooth
Chengyi Zhao [Sun, 22 Sep 2013 06:14:06 +0000 (14:14 +0800)]
Tethering: Watch the connection and disconnection signal of Bluetooth

Signed-off-by: Chengyi Zhao <chengyix.zhao@intel.com>
Change-Id: I38bb9b799c3e4c4c25acd9d264a4225bf59401dc

10 years agoTethering: Add tethering interfaces description to technology-api.txt
Chengyi Zhao [Fri, 26 Jul 2013 06:58:32 +0000 (14:58 +0800)]
Tethering: Add tethering interfaces description to technology-api.txt

Change-Id: I59768258d5f2515311ed3dad5db91618b1c459ec

10 years agoTethering: Add test script of open and hidden AP
Chengyi Zhao [Thu, 11 Jul 2013 02:29:38 +0000 (10:29 +0800)]
Tethering: Add test script of open and hidden AP

Change-Id: I8dbeaeba5848c8a8739422a93786b2ca6ed31b21

10 years agoTethering: Add hidden access point support in technology
Chengyi Zhao [Thu, 11 Jul 2013 02:00:31 +0000 (10:00 +0800)]
Tethering: Add hidden access point support in technology

Change-Id: I73fccf5f322ee2597f8f58d5e3d7f60ddeb0a641

10 years agoTethering: Add open access point support in technology
Chengyi Zhao [Thu, 11 Jul 2013 01:12:01 +0000 (09:12 +0800)]
Tethering: Add open access point support in technology

Change-Id: I86f4a22567f5df2fbd5d0c0c03c6cc5b6fc24a2d

10 years agoTethering: Notify listeners when station connection changes
Chengyi Zhao [Wed, 10 Jul 2013 12:00:36 +0000 (20:00 +0800)]
Tethering: Notify listeners when station connection changes

Change-Id: I048c1a8a348b6f862ca104ad2fbe971f580fe180

10 years agoTethering: Add interface that save lease in DHCP information
Chengyi Zhao [Wed, 10 Jul 2013 11:17:02 +0000 (19:17 +0800)]
Tethering: Add interface that save lease in DHCP information

Change-Id: Ia09c875954d8a20a3e6c39f87076780d8a6582e4

10 years agoTethering: Add station information management feature
Chengyi Zhao [Wed, 10 Jul 2013 09:54:32 +0000 (17:54 +0800)]
Tethering: Add station information management feature

Change-Id: I2f699e42ec5ce7f148b8c1d685b52ee32e2e236b

10 years agoTethering: Add handling for wpa_supplicant authorized/deauthorized signals
Chengyi Zhao [Wed, 10 Jul 2013 07:37:50 +0000 (15:37 +0800)]
Tethering: Add handling for wpa_supplicant authorized/deauthorized signals

Change-Id: Iff022e257ee9d2c5227585bf0b84e726914cc62b

10 years agoTizen: Unify bluetooth tethering enable logic
Zhang zhengguang [Tue, 25 Mar 2014 06:16:52 +0000 (14:16 +0800)]
Tizen: Unify bluetooth tethering enable logic

In bluez 4.x plugin, when bluetooth tethering is enabled,
set_tethering() returns 0, while in bluez 5.x plugin,
it returns -EINPROGRESS, which is not compatiable for
ConnMan to handle both of them, this patch makes bluez
5.x tethering enable logic consistent with bluez 4.x.

Change-Id: I618efd32b5f123fe9bdb58d10adb29c67a87796f

10 years agoTizen: Check some telephony flags before active context
guoqiang.liu [Fri, 27 Dec 2013 06:22:52 +0000 (14:22 +0800)]
Tizen: Check some telephony flags before active context

Telephony active maybe fail if data_allowed or ps_attached is false,
so check it before actived.

When data_allowed is false, if connman starts to auto connect 3G
service, it will result in 3G service auto connected fail, which
leads to it will not be auto connected next time.

Change-Id: Ibdd9c34fee7a612c1788a364c69550c4f7e79123
Signed-off-by: guoqiang.liu <guoqiang.liu@archermind.com>
10 years agoTizen: Fix wifi enterprise to support SIM and AKA
Arron Wang [Fri, 12 Oct 2012 02:10:28 +0000 (10:10 +0800)]
Tizen: Fix wifi enterprise to support SIM and AKA

Revise Wi-Fi enterprise to enable PEAP, TLS, TTLS
Fix wifi enterprise to support SIM and AKA

Change-Id: Ib9c10615fd0668b2ebca57eac9285bf8a3564427

10 years agoTizen: Integrate telephony plugin
Arron Wang [Wed, 10 Oct 2012 01:56:13 +0000 (09:56 +0800)]
Tizen: Integrate telephony plugin

Change-Id: Ia178f5de981501296573bf3f48e329d5a1355af6

10 years agoTizen: Export network proxy API for telephony plugin
Arron Wang [Tue, 9 Oct 2012 08:20:45 +0000 (16:20 +0800)]
Tizen: Export network proxy API for telephony plugin

Telephony plug-in requires manual PROXY setting function
Telephony stack provides proxy address (3G profile).

Change-Id: Iaa02f59465a687961c303667ee09051b419507d2

10 years agoTizen: Append extra wifi service property
Arron Wang [Mon, 24 Sep 2012 06:42:02 +0000 (14:42 +0800)]
Tizen: Append extra wifi service property

Append wifi property bssid, maxrate, frequency, encryptionmode to wifi
service

Change-Id: I1d5987334ab288fc04ff931fda5108f4afe864f0

10 years agoTizen: Export more wifi info in ConnMan network API
Arron Wang [Mon, 24 Sep 2012 06:18:07 +0000 (14:18 +0800)]
Tizen: Export more wifi info in ConnMan network API

Network client requires additional wifi specific info

Export the BSSID property
Export the MaxRate property
Export the detailed info for encryption mode(mixed,aes,tkip,wep,none)

Export the connman_network get/set method for bssid, maxrate,
encryption_mode property

Change-Id: Ic5744978282e49cb2f70165aaadc7822dc718dfb

10 years agoAdd connmanctl to the built rpm
Zhang zhengguang [Tue, 19 Aug 2014 01:41:09 +0000 (09:41 +0800)]
Add connmanctl to the built rpm

Change-Id: I84fb13ea9224985ad9e15b5c3c5f616bcf7431a4

10 years agoEnable ConnMan VPND/OpenVPN/OpenConnect configurable in spec file
Zhang zhengguang [Fri, 4 Jul 2014 06:37:58 +0000 (14:37 +0800)]
Enable ConnMan VPND/OpenVPN/OpenConnect configurable in spec file

10 years agoEnable ConnMan NTP configurable in spec file
Zhang zhengguang [Fri, 4 Jul 2014 06:33:55 +0000 (14:33 +0800)]
Enable ConnMan NTP configurable in spec file

10 years agoSet ConnMan default settings in config files
Zhang zhengguang [Fri, 4 Jul 2014 06:49:18 +0000 (14:49 +0800)]
Set ConnMan default settings in config files

10 years agoSet manifest request domain to floor
Zhang zhengguang [Fri, 4 Jul 2014 05:50:49 +0000 (13:50 +0800)]
Set manifest request domain to floor

10 years agoAdd systemd service to manager ConnMan NTP
Zhang zhengguang [Fri, 4 Jul 2014 06:12:08 +0000 (14:12 +0800)]
Add systemd service to manager ConnMan NTP

10 years agoAdd package build spec file
Zhang zhengguang [Fri, 4 Jul 2014 05:45:07 +0000 (13:45 +0800)]
Add package build spec file

Change-Id: Ia8c78e122998da70565700d895dbf54688e7c8b9

10 years agoAdd bootstrap files
Zhang zhengguang [Fri, 11 Jul 2014 01:34:05 +0000 (09:34 +0800)]
Add bootstrap files

Change-Id: Ia3923cb1ff35e7bfbd4e45f13dd18af15ed89f56

10 years agoImported Upstream version 1.26 upstream/1.26
Zhang zhengguang [Wed, 29 Oct 2014 03:03:47 +0000 (11:03 +0800)]
Imported Upstream version 1.26

10 years agoImported Upstream version 1.24 upstream/1.24
Zhang zhengguang [Thu, 17 Jul 2014 02:37:39 +0000 (10:37 +0800)]
Imported Upstream version 1.24

11 years agoclient: Fix passphrase handling
Patrik Flykt [Wed, 12 Jun 2013 13:54:32 +0000 (16:54 +0300)]
client: Fix passphrase handling

An empty passphrase means that WPS is to be tried next. If WPS is not
supported by the service, passphrase can not be left empty.

11 years agoclient: Implement VPN Agent API RequestInput method call
Patrik Flykt [Wed, 12 Jun 2013 13:54:31 +0000 (16:54 +0300)]
client: Implement VPN Agent API RequestInput method call

Instead of having a global agent_input struct, make the structure a
member of the agent_data structure that gets passed around when
handling the RequestInput method call.

With this modification agent_data is self-contained with all needed
information and the RequestInput handling code can be shared between
ConnMan and VPN agent implementations.

11 years agoclient: Add vpnagent command to register and unregister VPN Agent
Patrik Flykt [Wed, 12 Jun 2013 13:54:30 +0000 (16:54 +0300)]
client: Add vpnagent command to register and unregister VPN Agent

11 years agoclient: Implement support for queueing Agent messages
Patrik Flykt [Wed, 12 Jun 2013 13:54:29 +0000 (16:54 +0300)]
client: Implement support for queueing Agent messages

ConnMan and ConnMan VPN daemon both send only one Agent message at
a time. Since they are two different daemons, they can be sending
messages at the same time independent of each other.

Implement a check for an agent request from the other daemon being
already processed and if so store the message for later. When the
current agent request has been processed, check if there are
pending requests from the other daemon and re-run the pending
function.

In order to support arbitrary queueing, make all method call
implementations asynchronous.

11 years agoclient: Add VPN Agent support for Release, Cancel and ReportError
Patrik Flykt [Wed, 12 Jun 2013 13:54:28 +0000 (16:54 +0300)]
client: Add VPN Agent support for Release, Cancel and ReportError

Create a new agent data structure for the VPN Agent and add the needed
minor modifications to Release, Cancel and ReportError method calls in
order to get them working both for Agent and VPN Agent.

Create new register and unregister functions for the VPN Agent code.

11 years agoclient: Create agent data structure and pass it in function callbacks
Patrik Flykt [Wed, 12 Jun 2013 13:54:27 +0000 (16:54 +0300)]
client: Create agent data structure and pass it in function callbacks

Collect the agent variables into a data structure and update the agent
functionality to pass this data structure around as function callback
user data.

Update the agent mode input functionality to store both the callback
function and user data pointers. Notice that only only one input
callback can be handled at any one time due to the input handling itself
and the simple storing of callback and user data pointers.

11 years agoclient: Don't handle Agent messages in monitor code
Patrik Flykt [Wed, 12 Jun 2013 13:54:26 +0000 (16:54 +0300)]
client: Don't handle Agent messages in monitor code

Agent messages need to be handled in the agent code, ignore them when
they get captured in the monitor code.

11 years agoclient: Fix DBUS_TYPE_UINT16 pretty-printing
Patrik Flykt [Wed, 12 Jun 2013 13:54:25 +0000 (16:54 +0300)]
client: Fix DBUS_TYPE_UINT16 pretty-printing

The previous pretty-printing fix causes another change to be
made for DBUS_TYPE_UINT16.

11 years agodhcpv6: Send domain list option to server
Jukka Rissanen [Wed, 12 Jun 2013 11:43:24 +0000 (14:43 +0300)]
dhcpv6: Send domain list option to server

OPTION_DOMAIN_LIST(24) was not sent to server.

11 years agounit: Multiple collisions with different pools
Jukka Rissanen [Wed, 12 Jun 2013 08:02:59 +0000 (11:02 +0300)]
unit: Multiple collisions with different pools

Existing tests did not test this scenario:
* new address is registered to 192.168.0.2
* new address is registered to 192.168.1.2
* ippool is created to 192.168.2.1 (no collision)
* ippool is created to 192.168.3.1 (no collision)
* new address is registered to 192.168.3.1 (collision detected)

11 years agounit: Test ippool collision differently
Jukka Rissanen [Wed, 12 Jun 2013 08:02:58 +0000 (11:02 +0300)]
unit: Test ippool collision differently

Existing tests did not test this scenario:
* new address is registered to 192.168.1.2
* ippool is created to 192.168.0.1 (no collision)
* ippool is created to 192.168.2.1 (there is a collision and the
  code should skip the 192.168.1.1 range)

11 years agoippool: Clear allocated block pointer at cleanup
Jukka Rissanen [Wed, 12 Jun 2013 08:02:57 +0000 (11:02 +0300)]
ippool: Clear allocated block pointer at cleanup

Without this the unit tests might core dump as the allocated_block
pointer would point to already freed memory.

11 years agoippool: Private address check was incorrect
Jukka Rissanen [Wed, 12 Jun 2013 08:02:56 +0000 (11:02 +0300)]
ippool: Private address check was incorrect

Fixes BMC#25993

11 years agoservice: Send proxy properties when connected or disconnected
Jukka Rissanen [Fri, 7 Jun 2013 13:49:34 +0000 (16:49 +0300)]
service: Send proxy properties when connected or disconnected

Fixes BMC#26019

11 years agotechnology: Offlinemode could not be disabled if no technology was powered
Jukka Rissanen [Fri, 7 Jun 2013 12:15:29 +0000 (15:15 +0300)]
technology: Offlinemode could not be disabled if no technology was powered

If all the technologies were powered off, then offline mode could
not be disabled.

Fixes BMC#26018

11 years agoTODO: Mark GSequence removal done
Daniel Wagner [Fri, 7 Jun 2013 11:41:13 +0000 (13:41 +0200)]
TODO: Mark GSequence removal done

11 years agoservice: Use GList instead of GSequence for service list
Daniel Wagner [Fri, 7 Jun 2013 11:41:12 +0000 (13:41 +0200)]
service: Use GList instead of GSequence for service list

The hash table is now the owner of the service entry instead of the
service list.

11 years agosession: Use GList instead of GSequence for service list
Daniel Wagner [Fri, 7 Jun 2013 11:41:11 +0000 (13:41 +0200)]
session: Use GList instead of GSequence for service list

The hash table is now the owner of the service entry instead of
the service list.

11 years agosession: Use service iterator instead of match/creation callbacks
Daniel Wagner [Fri, 7 Jun 2013 11:41:10 +0000 (13:41 +0200)]
session: Use service iterator instead of match/creation callbacks

When a new session is created we need to get the initial list
of services which match the session AllowedBearers criteria. As soon
the session is running add or removed services are tracked via the
notifier interface.

We concluded that exposing all the services is not really necessary
and therefore we are using currently two callbacks to get the initial
list. That exposes implementation details from session to service, that
is GSequence. We also need to expose the type 'struct service_entry'.

Instead doing so we are using an iterator and keep all the
implementation details in session.c.

11 years agoservice: Initialize tech_data
Daniel Wagner [Fri, 7 Jun 2013 11:41:09 +0000 (13:41 +0200)]
service: Initialize tech_data

tech_data is allocated on the stack and is therefore not initilized
with NULL.

11 years agoclient: Avoid printing extra prompt on RequestInput
Patrik Flykt [Fri, 7 Jun 2013 06:58:33 +0000 (09:58 +0300)]
client: Avoid printing extra prompt on RequestInput

11 years agoclient: Read D-Bus string type only if argument is 'Type'
Patrik Flykt [Fri, 7 Jun 2013 05:25:25 +0000 (08:25 +0300)]
client: Read D-Bus string type only if argument is 'Type'

A basic type was always read independent of the argument type which
on some systems lead to a crash and on others only to a warning
printout.

11 years agoclient: Pretty-print D-Bus signed integers
Patrik Flykt [Mon, 3 Jun 2013 10:11:38 +0000 (13:11 +0300)]
client: Pretty-print D-Bus signed integers

To keep it more logical, rename the unsigned variable in the code.

11 years agoclient: Add VPN monitoring support
Patrik Flykt [Mon, 3 Jun 2013 10:04:19 +0000 (13:04 +0300)]
client: Add VPN monitoring support

When adding VPN monitoring capabilities, also clean up the monitor code.

11 years agoclient: Add support for displaying VPN connections
Patrik Flykt [Mon, 3 Jun 2013 07:59:56 +0000 (10:59 +0300)]
client: Add support for displaying VPN connections

Show a list of VPN connections known to the VPN daemon.

Also allow D-Bus path names to start with numbers, as it is fine with
the D-Bus library to define such path names. Fix up help command
pretty-printing as the VPN command is slightly longer.

11 years agoclient: Add VPN connection helper function
Patrik Flykt [Mon, 3 Jun 2013 07:49:23 +0000 (10:49 +0300)]
client: Add VPN connection helper function

Add helper function for printing VPN connections. Show also configuration
and failure states using 'C' and 'F' as configuration might take some
time and failure conveys practical information to the user.

11 years agoclient: Add parameter to specify D-Bus service for method call
Patrik Flykt [Mon, 3 Jun 2013 07:27:38 +0000 (10:27 +0300)]
client: Add parameter to specify D-Bus service for method call

11 years agoclient: Add missing header file boilerplate
Patrik Flykt [Mon, 3 Jun 2013 07:20:20 +0000 (10:20 +0300)]
client: Add missing header file boilerplate

11 years agodhcpv6: Make sure release message is sent
Jukka Rissanen [Tue, 4 Jun 2013 09:34:37 +0000 (12:34 +0300)]
dhcpv6: Make sure release message is sent

Register an empty Release callback so that the message will be sent.

11 years agobuild: Add session policy format document
Daniel Wagner [Fri, 31 May 2013 12:13:55 +0000 (14:13 +0200)]
build: Add session policy format document

11 years agodoc: Document session policy file format
Daniel Wagner [Fri, 31 May 2013 07:13:38 +0000 (09:13 +0200)]
doc: Document session policy file format

11 years agosession-test: Add tests for session_policy_local
Daniel Wagner [Fri, 31 May 2013 07:13:37 +0000 (09:13 +0200)]
session-test: Add tests for session_policy_local

Use the UID as identification.

11 years agosession_policy_local: Set session identification method
Daniel Wagner [Fri, 31 May 2013 07:13:36 +0000 (09:13 +0200)]
session_policy_local: Set session identification method

For SELinux we need to store the complete context for iptables
to work.

11 years agosession: Add session identification method to config
Daniel Wagner [Fri, 31 May 2013 07:13:35 +0000 (09:13 +0200)]
session: Add session identification method to config

The session core needs to the know which kind of session
identification method has been selected in the plugin in order
to use the right iptables rules etc.

11 years agosession_policy_local: Retrieve UID/GID from session user
Daniel Wagner [Fri, 31 May 2013 07:13:34 +0000 (09:13 +0200)]
session_policy_local: Retrieve UID/GID from session user

When the session core ask to create a configuration, then we
first ask the D-Bus server which UID/GID the session belongs to.
If possible we also ask for the SELinux context. Then we try
to figure out which file containts the configuration for
SElinux, UID or GID identification.

The order of matching preference is SELinux, UID and finally GID.

11 years agosession_policy_local: Remove struct create_data
Daniel Wagner [Fri, 31 May 2013 07:13:33 +0000 (09:13 +0200)]
session_policy_local: Remove struct create_data

Use struct policy_data instead of struct create_data.

11 years agosession_policy_local: Rework policy file handling
Daniel Wagner [Fri, 31 May 2013 07:13:32 +0000 (09:13 +0200)]
session_policy_local: Rework policy file handling

The old assumption was that a config file is associtated
with one session only. With introducing UID/GID support a policy
might be used for several sessions. Furthermore, it was assumed
that the file name is the key/ident to identify a session and
a file containts exactly one policy.

Here are the new rules for writing a policy file.

- A valid file name contains letters or numbers and must have a '.policy'
  suffix.
- The file name has not semantical meaning
- A policy file may contain contain more than 1 policy
- Each policy entry starts with 'policy_'
- Each policy entry shall have one and exactly one valid key (e.g.
  selinux)

The implementation has two main hash tables, file_hash and session_hash
which owns 'the file' respectively the session config. Additionally there
is a hash table which connects a policy with a session (selinux_hash).

11 years agosession_policy_local: Add some more debug information
Daniel Wagner [Fri, 31 May 2013 07:13:31 +0000 (09:13 +0200)]
session_policy_local: Add some more debug information