summaryrefslogtreecommitdiff
path: root/vpn
AgeCommit message (Collapse)AuthorFilesLines
2021-09-21Fix: Memory leak issue when tokenizing stringsubmit/tizen/20210924.013637accepted/tizen/unified/20210924.055913Nishant Chaprana1-0/+3
Change-Id: I71e88bb35384cf919263fa5dda8c4f0f06be6ef2 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2021-09-08Fix Crash in connman-vpnd in reboot scenario when config file is presentNiraj Kumar Goit1-0/+4
Change-Id: I3cfccf9f53bfbd92974e1dbba65a6952f21f6c19 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2021-09-08wireguard: Add routes for allowedIPsNishant Chaprana1-0/+205
Change-Id: Iad4c994dc7e40589f17db7c1b590cf7673b21bc0 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2021-08-04wireguard: Save plugin related settings in config fileNishant Chaprana1-0/+104
Change-Id: I76d12fa347d1211958463ccf38a043a0c6272ece Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2021-07-15vpn: Make domain parameter optionalNishant Chaprana2-8/+12
There is no technical requirement to provide the domain name. Thus, make the domain paremeter optional. Reported by Christian Hewitt Upstream Patch: https://git.kernel.org/pub/scm/network/connman/connman.git/patch/?id=82699007fa89e26206771047d8cbb7c160fd2990 Change-Id: Iac21532e3e310d67c633874a95566413beb4b3a4 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2021-07-13wireguard: Copy interfance names obeying lengths rulesDaniel Wagner1-1/+1
gcc points out the destination buffer has the same size the specified bound for the string. warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] Let's make sure we do not overflow the buffer (should not happen as the names are provide by the kernel and hence should fit). Change-Id: I1e8818f0820ffb32083e14cb88e4919fd8b12798 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2021-07-13vpn: Export vpn_ipconfig_foreach as linker symbolDaniel Wagner4-4/+4
Commit 95b25140bec7 ("vpn: Add WireGuard support") introduced a plugin dependency to __vpn_ipconfig_foreach. Because the linker does not export the prefixed functions, we need to rename it to vpn_ipconfig_foreach in order to export the linker symbol. Change-Id: I105159739dece4a675fa074ef304c6fd4d7b88bf Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2021-07-13wireguard: Fix struct sockaddr usageDaniel Wagner1-22/+25
wg_dns_reresolve_cb() tries to read 16 bytes from the addr variable in case of IPv6 but struct sockaddr has size of 8 bytes. Introduce a helper struct containing IPv4 and IPv6 sockaddr as superset of all IP based sockaddr. This helper struct is identically to the 'union endpoint' in wireguard.h. But we don't want to touch this header file as it is 100% copy from the upstream WireGuard project. Fixes: 90592f7a5835 ("wireguard: Regular reresolve endpoint address") Change-Id: I2b262e61e52c795ab0cab4b206bd25df8ae57738 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2021-07-13wireguard: Regular reresolve endpoint addressDaniel Wagner1-7/+80
In case the WireGuard endpoint is hosted on a dynamic IP address, the endpoint might change during runtime. Reresolve the endpoint on a regular basis and update the WireGuard device when it IP address has changed. Reported by Christian Hewitt Change-Id: Ice3b554a064585fb03ae8a7a89baccbe53e8576b Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2021-06-10Fix memory leaks and dereference without null checksubmit/tizen/20210615.081101accepted/tizen/unified/20210616.132525Jaehyun Kim2-0/+11
Change-Id: I7accd1386302c26e5bdfa8aee224fe60defc50af Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
2021-01-04Imported Upstream connman version 1.38Niraj Kumar Goit18-349/+5138
Change-Id: I9e650762f3b2b2a31945b66e044e67a77e3b4b12 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
2020-04-16Add intelligent Network Selectionsubmit/tizen/20200417.010643accepted/tizen/unified/20200417.152700hyunuk.tak1-0/+12
Change-Id: I049207e7d662f657ca21a4046be953f8f33bbd10 Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
2019-09-20Fixed dbus rules for connman-vpn-dbus.confsubmit/tizen/20190923.043320accepted/tizen/unified/20190923.110259Nishant Chaprana1-6/+0
Change-Id: Iaa437db1f9408f34f4f95ac47bbc2a2da49b2779 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-09-18Imported Upstream version 1.37submit/tizen/20190920.082459Nishant Chaprana11-61/+145
Change-Id: Idb47c1ddbedc9f97181b8e9a5eeac04ddd832a2c Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2019-08-14Remove duplicate dependency with implicit dependencies at "Type=dbus"submit/tizen/20190816.113014accepted/tizen/unified/20190818.224606INSUN PYO1-2/+0
Refs: https://www.freedesktop.org/software/systemd/man/systemd.service.html - Services with Type=dbus set automatically acquire dependencies of type Requires= and After= on dbus.socket. Change-Id: Ic6009027222e293f8525a6b4a97512d7580be3f0
2019-07-08Delete meaningless configurationINSUN PYO1-2/+0
Change-Id: Ida02a51bc1efe14b8d271e27898b3bd0d105797b
2019-07-04Imported Upstream version 1.37upstream/1.37Nishant Chaprana9-61/+137
Change-Id: Ib5957e7ee3a9315ee86a331189bc3e9e71751ee8 Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
2018-08-07Remove unnecessary rule in dbus.conf filetaesub.kim1-6/+0
Change-Id: I89ab130e5451756d9e8df6e576836f036be0b5b4 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-04-02Added dbus/cynara policytaesub kim1-14/+16
Change-Id: I82192eb00243dd45e64e37e806d7c7e90fa3fac2 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-01-23Updated connman to version 1.35Seonah Moon13-37/+243
Change-Id: I13526fbf80296a79be15548fc226a308941ac9ec Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2018-01-08Imported Upstream version 1.35upstream/1.35Seonah Moon12-38/+238
Change-Id: I174854914d9fd06a813270b57d1f7bc2bac63c6a Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-11-27Added cap_dac_override capabilitysubmit/tizen/20171126.232917accepted/tizen/unified/20171127.083314taesub kim1-1/+1
Change-Id: I0c668091b85bf1f4f31ea2d1a9c6d53d73cd5736 Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-11-22Remove openssl function to solve license conflictJiung1-484/+62
Change-Id: Ib902eed40c45365da17f64bf8b6ea504725ff478 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-10-24Regard host name as remote address and add it to vici argumentssubmit/tizen/20171030.235228accepted/tizen/unified/20171101.064659Jiung1-0/+3
Change-Id: I78beac887cc3c91165326c26511ad10e5aa194e0 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-10-24Add capabilities to run a charon IPsec daemonJiung1-1/+1
Change-Id: If32cff2a0e60d7e50d2b4cd5669536267d4bef4c Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-10-19[CID-32919, 33501] Unchecked return valuesubmit/tizen/20171025.003923accepted/tizen/unified/20171026.074637chleun.moon2-2/+12
Change-Id: I561f537c292f24af2e9956a7694e3868ee0ccd32 Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2017-10-10[CID-28720] Remove unused valuechleun.moon1-1/+0
Change-Id: Ie59288fededb1bb7a09d234d8300e6893fab99c1 Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2017-10-10[CID-32919, 33501] Fix bugchleun.moon2-0/+12
Change-Id: I8fc3c40c8a2cf3d9e5fb840796d0f0bf0b66a072 Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2017-09-27[CID-26975, 36747] Fix memory leak and dereference after null checkchleun.moon1-2/+4
Change-Id: Ief1a868d989cb2cc78bb55980e3d8bee03a4a42b Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2017-09-11[WGID-253397, 253398] Fix unreachable codesubmit/tizen/20170911.125730chleun.moon1-2/+2
Change-Id: Ie3faef9d95d95cbcfbd222d92f25e6eae8e41581 Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2017-07-20Migrate root daemon to non rootsubmit/tizen/20170724.063335taesub kim4-4/+17
Change-Id: I0d0afacc8a11fadc8128f6eef3f64f7a4ca8675b Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
2017-06-19Merge "Handle the failure case due to the invalid cert file" into tizensubmit/tizen/20170703.005838submit/tizen/20170620.103311accepted/tizen/unified/20170703.064314taesub kim1-24/+65
2017-06-07[IPSec] Unlink UDS file for charon when charon is killedsubmit/tizen/20170612.082510accepted/tizen/unified/20170612.171441chleun.moon1-1/+8
Change-Id: I2b6475c373bbf7410ecd779bc134f632ced626d5 Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-06-02Handle the failure case due to the invalid cert fileJiung Yu1-24/+65
Change-Id: I86d6e2324936417c3a454a35f480dadb65feb9a8 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-06-02Add child SA up/down event and terminate commandJiung Yu4-112/+334
Change-Id: I4616b3148782cfc3b0ebf0a2f2826d84c67c2bf3 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-06-01Add NULL check before referencechleun.moon1-0/+10
Change-Id: I0485f5c69a2a1699f922b4c2c130f6865f8b31d9 Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-05-31Fix crash during g_hash_table_destroy()submit/tizen/20170601.042236accepted/tizen/unified/20170602.154235chleun.moon1-1/+1
Change-Id: Ia3f6081ce49035f6b9126001161c6e804af71e3a Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-05-30Fix reference before null check (WGID 227715)chleun.moon1-0/+5
Change-Id: Iefe9af8c8a05877a16ed71cadf23aaed7053fa9a Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-05-30Wrap tizen specific codes with TIZEN_EXTchleun.moon2-0/+8
Change-Id: I4f30b15332aef3ceb2f0b601f1a18a170487c1f3 Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-05-26Fix crash and invalid IKEV ESP proposalschleun.moon1-4/+1
Change-Id: I129210bcc41398ad1686758d80d836db254b1368 Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-05-12[WGID-207858] Fixed memory leaktizen_4.0.m1_releasesubmit/tizen/20170512.071139accepted/tizen/unified/20170512.165707Seonah Moon1-0/+2
Change-Id: I2b291f130292951dcc962c1970f4d484463de9f5 Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
2017-05-10Fix svace issue (WGID 208127, 208128)submit/tizen/20170510.102153accepted/tizen/unified/20170510.183721chleun.moon1-1/+6
Change-Id: Ie8f4fe3e11c71111249f07d3a4bcdf4b3737d671 Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-05-04Fix svace issues (WGID-207858, 208122, 208137, 208138)submit/tizen/20170504.080025accepted/tizen/unified/20170504.114207chleun.moon1-1/+5
Change-Id: I31373fbb6ad79517e63f4023c1f4bac2f63424e5 Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-04-27Fix issues reported by a static analyzersubmit/tizen/20170427.090631accepted/tizen/unified/20170428.032833Jiung Yu2-8/+14
Change-Id: Ia57fc4f8b8b2740728d6df2972463f66a48b7b67 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-04-21Add license descriptionsubmit/tizen/20170425.040532submit/tizen/20170421.072430accepted/tizen/unified/20170427.015557accepted/tizen/unified/20170421.115140chleun.moon3-0/+57
Change-Id: I9953407e41b962de1e19ffbafad280a811c1e3a7 Signed-off-by: cheoleun <chleun.moon@samsung.com>
2017-04-13Add processing request & response vici message with socketipsecYu Jiung9-234/+1782
Change-Id: I06ff60de06fde1ac8f484b1eecf49afed6d02542 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-03-02Add code to parse section struct into vici requestYu Jiung4-148/+623
Change-Id: If19978b75ab53c43a641a5e51bb0ef6a2adaa545 Signed-off-by: Yu jiung <jiung.yu@samsung.com>
2017-02-24Add ipsec pluginchleun.moon4-0/+462
Change-Id: Iafe144233e8dd8bc066e00340a5853e4e16d925a Signed-off-by: cheoleun <chleun.moon@samsung.com>
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>