summaryrefslogtreecommitdiff
path: root/vpn
AgeCommit message (Collapse)AuthorFilesLines
2016-11-17Revert "Change attribute for connmand and set uid/gid into service"submit/tizen/20161117.061227accepted/tizen/wearable/20161117.084156accepted/tizen/tv/20161117.084129accepted/tizen/mobile/20161117.084114accepted/tizen/ivi/20161117.084214accepted/tizen/common/20161117.085403seonah moon1-2/+2
This reverts commit 04bfa23db4a121adcd17c35bb1d9378cebc66b51. Change-Id: I1af9c34aed1496757f20cf1dc0411afc744bc990
2016-11-11Change attribute for connmand and set uid/gid into servicesubmit/tizen/20161114.043131accepted/tizen/wearable/20161114.074444accepted/tizen/tv/20161114.074425accepted/tizen/mobile/20161114.074404accepted/tizen/ivi/20161114.074501accepted/tizen/common/20161114.171550hyunuktak1-2/+2
Change-Id: I7c89d697792aff2521a31d1772e696c19313fc44 Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
2016-10-10Modify dbus conf file as policyhyunuktak1-1/+0
Change-Id: I7238ffe3c28d499e7561d2b0986c1e51c72d9cbe Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
2016-07-20Set SmackProcessLabel to Systemsubmit/tizen/20160721.003054accepted/tizen/wearable/20160721.091048accepted/tizen/tv/20160721.091334accepted/tizen/mobile/20160721.090519accepted/tizen/ivi/20160721.090802accepted/tizen/common/20160721.175857Yunjin Lee1-0/+1
Change-Id: I233c41596ec8fb4424e18c80e043658f3d510d47 Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
2016-06-09Remove capability and Change from dbus to systemd for vpn servicehyunuktak2-1/+4
Change-Id: I7ef5583cfc148b4835abec4bf57ad76369ed9b8e Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
2016-03-14on-demand connman-vpnd startDeepak Kumar Sahu1-1/+0
Change-Id: I88da48264b9506b58335c4dbefa7dccb08215245 Signed-off-by: Deepak Kumar Sahu <deepak.sahu@samsung.com>
2016-01-21Remove option (route-noexec, ifconfig-noexec)submit/tizen/20160212.065902taesub.kim1-0/+2
Change-Id: I346d6c7325741f9ac44ba452e56a8a9ad55af869 route-noexec Don't add or remove routes automatically. Instead pass routes to --route-up script using environmental variables ifconfig-noexec Don't actually execute ifconfig/netsh commands, instead pass --ifconfig parameters to scripts using environmental Change-Id: Ib245d8ba5928b31f0da29843dd43b4c8a1f61b54
2016-01-04Added Connman VPN packagehyunuktak1-0/+23
Change-Id: I0f33c30fc20c9e6b48f159e0a0a5a13193cf8ab9 Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
2015-08-07Base Code merged to SPIN 2.4submit/tizen/20150810.034432hyunuktak25-2/+2
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com> Change-Id: I84a42375b5c59739e4caca1f726699ea7647ef17
2014-10-29Imported Upstream version 1.26upstream/1.26Zhang zhengguang11-49/+136
2014-07-17Imported Upstream version 1.24upstream/1.24Zhang zhengguang19-764/+828
2013-05-30vpn-config: Log a warning if the provider ident already existsPatrik Flykt1-2/+7
Also set the returned value appropriately when removing or adding configuration files.
2013-05-30vpn-config: Remove obsolete protected codePatrik Flykt1-63/+1
For VPN connections created via configuration files the immutable flag is set and it ensures no modifications are allowed. The protected feature implementation was a left-over from service configuration code. Removing the code fixes a bug where only VPN entries of different types can be provisioned in the same provisioning file.
2013-04-03vpn-provider: Send domain name to connman when connection is readyJukka Rissanen1-0/+7
Fixes BMC#25994
2013-04-03openvpn: Update domain name if received from OpenVPN serverJukka Rissanen1-0/+30
2013-03-27vpn-provider: Nameservers were not sent to connmand vpn pluginJukka Rissanen1-21/+27
We got some nameservers from VPN server but we never sent the nameserver list to connmand vpn plugin. Fixes BMC#25966
2013-03-27openvpn: Set the nameservers in correct orderJukka Rissanen1-17/+71
The nameservers that we get from OpenVPN server can be received in any order. Make sure that we sort them in correct order before sending them to connmand.
2013-03-27vpn-provider: Fix uninitialized memory readJukka Rissanen1-1/+1
The immutable field might be left uninitialized without this.
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-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-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-02-28vpn-provider: Parse user networks correctlyJukka Rissanen1-1/+5
Check NULL string before passing it to g_strsplit()
2013-02-19vpn-provider: SetProperty works with all propertiesJukka Rissanen1-2/+6
2013-02-19vpn-provider: ClearProperty works with all propertiesJukka Rissanen1-0/+2
2013-02-19vpn-provider: Allow use of Domain property nameJukka Rissanen1-3/+6
Allow use of both VPN.Domain and Domain property strings.
2013-02-19vpn-provider: Add GetProperties method implementationJukka Rissanen1-0/+42
2013-02-19vpn-provider: Do not send state property if state is not changedJukka Rissanen1-1/+5
2013-02-19vpn-provider: Setting VPN properties will send PropertyChanged signalJukka Rissanen1-31/+67
2013-02-19vpn-provider: Set the state to FAILURE after auth errorJukka Rissanen1-0/+1
2013-02-19vpn-provider: Go internally into IDLE after FAILUREJukka Rissanen1-0/+7
Do not stay in FAILURE state as clients like connmand can get confused about our current state. Symptom for the problem is that after a failed connect attempt, a new connect attempt by the client would cause immediately a failure return code because vpnd is still in FAILURE state. The actual connect attempt might still succeed but then the client would not know about the success status. By setting the state to IDLE we avoid this confusion.
2013-02-19pptp: Set the username/password before starting daemonJukka Rissanen1-4/+4
This is required in order to avoid free memory access that is happening if we call vpn_provider_set_string() with same string that is already in the settings db.
2013-02-19l2tp: Set the username/password before starting daemonJukka Rissanen1-4/+4
This is required in order to avoid free memory access that is happening if we call vpn_provider_set_string() with same string that is already in the settings db.
2013-02-19vpn-provider: Make state debug print more usefulJukka Rissanen1-2/+1
Print the state value as a string as it is useful information.
2013-02-19vpn-provider: Avoid printing password to log filesJukka Rissanen4-5/+22
Add a variant to vpn_provider_set_string() that does not print sensitive data like password in clear text to log files.
2013-02-19l2tp: Clear password if authentication failsJukka Rissanen1-1/+7
This allows plugin to query agent so that user can give correct password.
2013-02-19pptp: Clear password if authentication failsJukka Rissanen1-1/+7
This allows plugin to query agent so that user can give new password. Fixes BMC#25963
2013-02-19main: Create VPN_STORAGEDIR when starting upJukka Rissanen1-0/+10
Eventually all VPN directories from STORAGEDIR is to be migrated into VPN_STORAGEDIR
2013-02-19vpn-provider: Add extra whitespaceJukka Rissanen1-1/+1
2013-02-19vpn-provider: Add route support in vpn config fileJukka Rissanen2-16/+86
2013-02-19vpn-provider: Remove unprovisioned providers at startupJukka Rissanen1-1/+79
Check if there are any providers that were provisioned but their .config file is removed. If such providers are found, then remove the provider files from file system.
2013-02-19vpn-provider: Type string in provider needs to be in lower caseJukka Rissanen1-1/+1
2013-02-19vpn-config: Provision providers from .config fileJukka Rissanen3-0/+605
2013-02-19vpn-provider: Initial .config file supportJukka Rissanen2-17/+140
2013-02-19pptp: Use PPPD prefix for pppd specific optionsJukka Rissanen1-18/+44
For backward compatibility purposes, support also the PPTP prefix for PPPD options.
2013-02-19l2tp: Use PPPD prefix for pppd specific optionsJukka Rissanen1-21/+47
For backward compatibility purposes, support also the L2TP prefix for PPPD options.
2013-02-19l2tp: Add rx and tx bps pppd optionsJukka Rissanen1-0/+2
2013-02-19l2tp: Fixed the nodeflate pppd option nameJukka Rissanen1-1/+1