platform/core/connectivity/stc-manager.git
2 years agoAdd the module name in the gcov install path 46/270146/1 submit/tizen/20220126.073648
dh79pyun [Wed, 26 Jan 2022 05:50:07 +0000 (14:50 +0900)]
Add the module name in the gcov install path

Change-Id: I060a5f2a4adcdf6aab6551d33de50796960af5e8
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
3 years agoReplace pcap_lookupdev with pcap_findalldevs 60/260260/1 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20211028.101009 accepted/tizen/unified/20210624.131854 submit/tizen/20210622.224907 submit/tizen_6.5/20211028.162201 tizen_6.5.m2_release
hyunuk.tak [Tue, 22 Jun 2021 22:41:29 +0000 (07:41 +0900)]
Replace pcap_lookupdev with pcap_findalldevs

'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device

Change-Id: I5451f10f9f6db9f5a1106e02fba60b90569519af
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
3 years agoInitialize gchar pointer data type properly with NULL 10/258710/1 accepted/tizen/unified/20210622.125802 submit/tizen/20210602.004714 submit/tizen/20210622.012029
Nishant Chaprana [Mon, 24 May 2021 12:34:24 +0000 (18:04 +0530)]
Initialize gchar pointer data type properly with NULL

Change-Id: I4d57d2db270cf58f588d0d854f5a39c5aa85ca3f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoIgnore procfs status changes when pkg_id or app_id is NULL 09/258709/1
Nishant Chaprana [Mon, 24 May 2021 12:23:27 +0000 (17:53 +0530)]
Ignore procfs status changes when pkg_id or app_id is NULL

Change-Id: Ic5b8da6fb712b766ed7eb1f07048d2776ab7c562
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
3 years agoModify the conflicting value for db 57/248757/1 accepted/tizen/unified/20201203.123821 submit/tizen/20201202.072014 submit/tizen_base/20201130.032914
hyunuk.tak [Wed, 2 Dec 2020 05:23:58 +0000 (14:23 +0900)]
Modify the conflicting value for db

Change-Id: I7c0c5e4ecb2873dc29cc03c71c5fb08a11499b6e

4 years agoFix Buffer Overflow error. 09/245909/2 accepted/tizen/unified/20201102.124453 submit/tizen/20201027.080049
Niraj Kumar Goit [Mon, 19 Oct 2020 14:17:26 +0000 (19:47 +0530)]
Fix Buffer Overflow error.

Change-Id: I88a80f81723cf190ecf63b3fef46ca3bf7fd0c48
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
4 years agoFix asan build issue 55/245155/1 submit/tizen/20201006.003715
hyunuk.tak [Mon, 5 Oct 2020 02:29:22 +0000 (11:29 +0900)]
Fix asan build issue

Change-Id: Ic6ade44a07405d2ce87037318bc51dccf64b7797

4 years agoadd storage class specifier(static) 29/241929/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.120604 accepted/tizen/6.0/unified/hotfix/20201103.051439 accepted/tizen/unified/20200925.140228 submit/tizen/20200925.052850 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
Youngjae Shin [Fri, 21 Aug 2020 02:18:52 +0000 (11:18 +0900)]
add storage class specifier(static)

Change-Id: I77a9cf50ba7dec9bc5609f6bc87cffe05c26c396

4 years agoremove circular dependency among directories 28/241928/1
Youngjae Shin [Fri, 21 Aug 2020 02:17:29 +0000 (11:17 +0900)]
remove circular dependency among directories

Change-Id: Ida62a9a5f96ca555a7f8d36e5d87659a8dd2db1c

4 years agorevise build scripts and packaging 27/241927/1
Youngjae Shin [Fri, 21 Aug 2020 01:51:40 +0000 (10:51 +0900)]
revise build scripts and packaging

Change-Id: Id248941a4291a67d34b539ec04a4ecab39fc48cc

4 years ago[cleanup] chanage file names for readability 26/241926/1
Youngjae Shin [Fri, 21 Aug 2020 00:42:58 +0000 (09:42 +0900)]
[cleanup] chanage file names for readability

Change-Id: I90f348ca5c9f5e51e1cf32ba261b099358eb759b

4 years ago[cleanup] change file location and mode 25/241925/1
Youngjae Shin [Thu, 20 Aug 2020 08:35:39 +0000 (17:35 +0900)]
[cleanup] change file location and mode

Change-Id: I1f74ff9259a5c02a161bb75d4dd2ea15b0c6de6f

4 years agoAdd test cases for removing rule post warn and restriction limit are crossed 32/237732/2 submit/tizen/20200708.235825 submit/tizen/20200709.001505
Nishant Chaprana [Fri, 3 Jul 2020 05:51:46 +0000 (11:21 +0530)]
Add test cases for removing rule post warn and restriction limit are crossed

Change-Id: I47486ce363fb157b77824dd140052262c1b43495
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoMerge "Fix a coverity for 1142644" into tizen accepted/tizen/unified/20200707.140900 submit/tizen/20200707.012758
hyunuk tak [Tue, 7 Jul 2020 01:27:31 +0000 (01:27 +0000)]
Merge "Fix a coverity for 1142644" into tizen

4 years agoFix a coverity for 1142644 42/237942/1
hyunuk.tak [Tue, 7 Jul 2020 00:50:29 +0000 (09:50 +0900)]
Fix a coverity for 1142644

Change-Id: I2865c692003f0ae45a73918e84ad7810864903fc
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoFix build when using gcov and gtests build flags 52/237652/1
Nishant Chaprana [Thu, 2 Jul 2020 06:44:59 +0000 (12:14 +0530)]
Fix build when using gcov and gtests build flags

[   75s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/firewall.cpp: In member function 'error_e Firewall::GetLock(int*)':
[   75s] /usr/include/dlog/dlog-internal.h:72:31: error: format '%d' expects argument of type 'int', but argument 8 has type 'int*' [-Werror=format=]
[   75s]    72 |   __dlog_print(id, prio, tag, "%s: %s(%d) > " fmt, __MODULE__, __func__, __LINE__, ##__VA_ARGS__); \
[   75s] /usr/include/dlog/dlog-internal.h:166:27: note: in expansion of macro 'LOG_'
[   75s]   166 | #define LOGD(format, ...) LOG_(LOG_ID_MAIN, DLOG_DEBUG, LOG_TAG, format, ##__VA_ARGS__)
[   75s]       |                           ^~~~
[   75s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/stcmgr.h:30:32: note: in expansion of macro 'LOGD'
[   75s]    30 | #define GLOGD(format, args...) LOGD(format, ##args)
[   75s]       |                                ^~~~
[   75s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/firewall.cpp:484:2: note: in expansion of macro 'GLOGD'
[   75s]   484 |  GLOGD("Succeeded to get lock state[%d]", state);
[   75s]       |  ^~~~~
[   75s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/firewall.cpp:484:38: note: format string is defined here
[   75s]   484 |  GLOGD("Succeeded to get lock state[%d]", state);
[   75s]       |                                     ~^
[   75s]       |                                      |
[   75s]       |                                      int
[   75s]       |                                     %n

[   78s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/statistics.cpp: In member function 'error_e Statistics::ResetStatistics()':
[   78s] /usr/include/dlog/dlog-internal.h:72:31: error: too many arguments for format [-Werror=format-extra-args]
[   78s]    72 |   __dlog_print(id, prio, tag, "%s: %s(%d) > " fmt, __MODULE__, __func__, __LINE__, ##__VA_ARGS__); \
[   78s] /usr/include/dlog/dlog-internal.h:166:27: note: in expansion of macro 'LOG_'
[   78s]   166 | #define LOGD(format, ...) LOG_(LOG_ID_MAIN, DLOG_DEBUG, LOG_TAG, format, ##__VA_ARGS__)
[   78s]       |                           ^~~~
[   78s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/stcmgr.h:30:32: note: in expansion of macro 'LOGD'
[   78s]    30 | #define GLOGD(format, args...) LOGD(format, ##args)
[   78s]       |                                ^~~~
[   78s] /home/abuild/rpmbuild/BUILD/stc-manager-0.1.2/unittest/statistics.cpp:292:2: note: in expansion of macro 'GLOGD'
[   78s]   292 |  GLOGD("Succeeded to reset statistics", result);
[   78s]       |  ^~~~~

Change-Id: I5a23d18e3e8b3d510cacac834506ec22fa2bd193
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoFree before return 16/237216/1 accepted/tizen/unified/20200629.143435 submit/tizen/20200629.013151
Cheoleun Moon [Thu, 25 Jun 2020 09:42:14 +0000 (18:42 +0900)]
Free before return

Change-Id: I951213a634605c561d9061c45134c6d7ef924d67

4 years agoFree all the unpacked values if breaking out of g_variant_iter_loop 15/237215/1
Cheoleun Moon [Thu, 25 Jun 2020 09:38:43 +0000 (18:38 +0900)]
Free all the unpacked values if breaking out of g_variant_iter_loop

Change-Id: Ib5e67dfa852f38431f19ed66a540275165073724

4 years agoChange the service file path for 64bit build 32/237032/1 accepted/tizen/unified/20200626.133549 submit/tizen/20200624.065138
Jaehyun Kim [Wed, 24 Jun 2020 06:42:03 +0000 (15:42 +0900)]
Change the service file path for 64bit build

Change-Id: Ib65165167a09f007f61192dd81bdd5df3084b8ac
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoFix memory leak in stc_plugin_monitor_initialize 10/236810/1 submit/tizen/20200623.015427
Jaehyun Kim [Mon, 22 Jun 2020 06:34:16 +0000 (15:34 +0900)]
Fix memory leak in stc_plugin_monitor_initialize

Variable system going out of scope leaks the memory it points to.

Change-Id: I9d2c5dc3cc3b951954e793cf3864f270810d846c
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoMerge "Modify to add/remove rule list by connection" into tizen submit/tizen/20200616.234824
hyunuk tak [Tue, 16 Jun 2020 23:47:33 +0000 (23:47 +0000)]
Merge "Modify to add/remove rule list by connection" into tizen

4 years agoModify to add/remove rule list by connection 30/234030/7
hyunuk.tak [Wed, 10 Jun 2020 06:50:51 +0000 (15:50 +0900)]
Modify to add/remove rule list by connection

Change-Id: I97dd168f82a457968672e2a7dafa9b83444aaa5d
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoRestart stc-manager at non-zero exit code after 5 seconds 82/235982/2 accepted/tizen/unified/20200616.040959 submit/tizen/20200615.095505
Nishant Chaprana [Thu, 11 Jun 2020 16:39:52 +0000 (22:09 +0530)]
Restart stc-manager at non-zero exit code after 5 seconds

Change-Id: I56bf9171a996846606c40b019d4694af837269ac
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoAdd callback in monitor plugin to stop stc-manager 80/235980/3
Nishant Chaprana [Thu, 11 Jun 2020 15:04:55 +0000 (20:34 +0530)]
Add callback in monitor plugin to stop stc-manager

Change-Id: I88c9d9275620ee1ee32ee62e853e88c46c535a3f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoAdd retry mechanism for netlink socket creation 76/235976/2
Nishant Chaprana [Thu, 11 Jun 2020 12:43:40 +0000 (18:13 +0530)]
Add retry mechanism for netlink socket creation

Change-Id: Ic0512f1bc680a68a9209c097b7ef4a2fb1a8548c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoMerge "Add dbus async call for add/remove ipt rule" into tizen accepted/tizen/unified/20200615.135443 submit/tizen/20200610.004427
hyunuk tak [Wed, 10 Jun 2020 00:43:54 +0000 (00:43 +0000)]
Merge "Add dbus async call for add/remove ipt rule" into tizen

4 years agoMerge "[fix] Rename dbus auto-activation service file" into tizen
hyunuk tak [Wed, 3 Jun 2020 02:03:53 +0000 (02:03 +0000)]
Merge "[fix] Rename dbus auto-activation service file" into tizen

4 years agoFix to init g_system as NULL in error case 75/234875/5 submit/tizen/20200602.041357
Semun Lee [Fri, 29 May 2020 10:06:24 +0000 (19:06 +0900)]
Fix to init g_system as NULL in error case

Change-Id: I2a70043afafb76f1594313899a16f01679e82586
Signed-off-by: Semun Lee <semun.lee@samsung.com>
4 years ago[fix] Rename dbus auto-activation service file 81/231381/2
sanghyeok.oh [Tue, 21 Apr 2020 12:45:14 +0000 (21:45 +0900)]
[fix] Rename dbus auto-activation service file

Naming rule for dbus auto-activation service file : well-known name + ".service"
https://bugs.freedesktop.org/show_bug.cgi?id=99874

Change-Id: I2ad7c6d4c9673a7bc50fed93e23a61429c1ff403

4 years agoMerge "Fix to delete iptables rule while unsetting restrictions" into tizen submit/tizen/20200520.034654
hyunuk tak [Wed, 20 May 2020 03:46:26 +0000 (03:46 +0000)]
Merge "Fix to delete iptables rule while unsetting restrictions" into tizen

4 years agoMerge "Remove redundant log which is also available in dbus call reply log" into... submit/tizen/20200520.005449
hyunuk tak [Wed, 20 May 2020 00:54:01 +0000 (00:54 +0000)]
Merge "Remove redundant log which is also available in dbus call reply log" into tizen

4 years agoMerge "Fix not to use app-status plugin from monitor plugin" into tizen accepted/tizen/unified/20200519.035051 submit/tizen/20200519.004756
hyunuk tak [Tue, 19 May 2020 00:45:55 +0000 (00:45 +0000)]
Merge "Fix not to use app-status plugin from monitor plugin" into tizen

4 years agoFix to delete iptables rule while unsetting restrictions 31/233731/1
Semun Lee [Mon, 18 May 2020 23:30:47 +0000 (08:30 +0900)]
Fix to delete iptables rule while unsetting restrictions

We should delete block rules

Change-Id: I4c3db4db451f034a9257ebda234dbfa275c19813
Signed-off-by: Semun Lee <semun.lee@samsung.com>
4 years agoModify database query appropriately 86/233686/1
hyunuk.tak [Mon, 18 May 2020 07:57:23 +0000 (16:57 +0900)]
Modify database query appropriately

Change-Id: I45bc4f031cd65252d85fd5de9bba6e3eee00b24c
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoFix not to use app-status plugin from monitor plugin 42/233642/1
Semun Lee [Sat, 16 May 2020 09:38:18 +0000 (18:38 +0900)]
Fix not to use app-status plugin from monitor plugin

Change-Id: I3924302eda2ced3859a296b1c9f61047ce7a2d55
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoRemove redundant log which is also available in dbus call reply log 51/233351/2
Nishant Chaprana [Thu, 14 May 2020 06:14:25 +0000 (11:44 +0530)]
Remove redundant log which is also available in dbus call reply log

Change-Id: I91b36c9db8071ca83eb2dd076f7bfaa09b8f7975
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
4 years agoAdd dbus async call for add/remove ipt rule 66/232166/1
hyunuk.tak [Wed, 29 Apr 2020 01:10:30 +0000 (10:10 +0900)]
Add dbus async call for add/remove ipt rule

Change-Id: I30394b30614b51e259e554c3631abdbd5d17af54
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoDereference variant object with g_variant_unref 06/230006/1 submit/tizen/20200407.103234
hyunuk.tak [Tue, 7 Apr 2020 06:11:03 +0000 (15:11 +0900)]
Dereference variant object with g_variant_unref

Change-Id: Id0211768f574da5c89e025e2e6b5afbcdb9aeedd
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoModify to check roaming type 26/228626/1 accepted/tizen/unified/20200326.215022 submit/tizen/20200324.075312 submit/tizen/20200325.070254
hyunuk.tak [Tue, 24 Mar 2020 07:49:15 +0000 (16:49 +0900)]
Modify to check roaming type

Change-Id: I310bffa239f9b030519bf203dc5780a2fc31a1d9
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoCheck validity of database 53/227853/2 accepted/tizen/unified/20200321.043820 submit/tizen/20200320.041119
hyunuk.tak [Tue, 17 Mar 2020 01:17:36 +0000 (10:17 +0900)]
Check validity of database

Change-Id: Ib412f13d82b5e29b373480ad15cc5310f2be949a
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoMeasure datausage more accurately 38/227438/2 accepted/tizen/unified/20200315.214827 submit/tizen/20200313.000056
hyunuk.tak [Thu, 12 Mar 2020 03:40:24 +0000 (12:40 +0900)]
Measure datausage more accurately

Add some signal for app status (launch and terminate)
Change in datausage measurement when interface

Change-Id: I76656633a357d7feb3361f9eb67aff1655caf6c5
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoReplaced strncpy() with g_strlcpy() in helper-procfs.c 37/225137/1 accepted/tizen/unified/20200227.121053 submit/tizen/20200220.041614 submit/tizen/20200227.012332
Jaehyun Kim [Mon, 17 Feb 2020 12:52:00 +0000 (21:52 +0900)]
Replaced strncpy() with g_strlcpy() in helper-procfs.c

strncpy doesn’t set zero byte implicitly.

Change-Id: I45f322916017d2b727902e713284d0e8ffa19fad
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
4 years agoFix ABI issue for app state and roaming 66/223566/1 accepted/tizen/unified/20200218.145906 submit/tizen/20200217.121938
hyunuk.tak [Fri, 31 Jan 2020 02:00:03 +0000 (11:00 +0900)]
Fix ABI issue for app state and roaming

Change-Id: Ib6bf8400e20adfed0fa98781fb19bc131995e0a6
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
4 years agoFix build warnings for gcc 9 66/220966/1 accepted/tizen/unified/20191227.142722 submit/tizen/20191226.234511
Semun Lee [Thu, 26 Dec 2019 06:00:50 +0000 (15:00 +0900)]
Fix build warnings for gcc 9

Change-Id: I3bd2818c304e7a77987009d296e813d18bade7bb
Signed-off-by: Semun Lee <semun.lee@samsung.com>
5 years agoFix to appropriate variable for default connection 51/214751/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv accepted/tizen/5.5/unified/20191031.024804 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084614 accepted/tizen/unified/20190927.013301 submit/tizen/20190926.072356 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
hyunuk.tak [Thu, 26 Sep 2019 05:43:05 +0000 (14:43 +0900)]
Fix to appropriate variable for default connection

Change-Id: I43a8a7aca0c1fb4f62b3c41dc58ef40359bbeabf
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
5 years agoRemove to check old version from upgrade script 30/214030/2 accepted/tizen/unified/20190918.010348 submit/tizen/20190917.103205
hyunuk.tak [Tue, 17 Sep 2019 08:12:33 +0000 (17:12 +0900)]
Remove to check old version from upgrade script

Change-Id: Ic6e537737db32b00d5ca625d390035e53092423d
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
5 years agoMerge "Add os upgrade file for database" into tizen accepted/tizen/unified/20190911.111652 submit/tizen/20190910.082117
Jaehyun Kim [Tue, 10 Sep 2019 08:20:45 +0000 (08:20 +0000)]
Merge "Add os upgrade file for database" into tizen

5 years agoAdd os upgrade file for database 00/211900/4
hyunuk.tak [Mon, 12 Aug 2019 01:48:52 +0000 (10:48 +0900)]
Add os upgrade file for database

Change-Id: Ia679c169d26d8e9163d385362c08875776abc2ce
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
5 years agoMerge "Add granularity support in GetAll method call on statistics interface" into... accepted/tizen/unified/20190830.110637 submit/tizen/20190816.114951 submit/tizen/20190828.061541 submit/tizen/20190830.060615
Jaehyun Kim [Fri, 16 Aug 2019 11:38:03 +0000 (11:38 +0000)]
Merge "Add granularity support in GetAll method call on statistics interface" into tizen

5 years agoMerge "Add support of app_id in GetAll method call on statistics interface" into...
Jaehyun Kim [Fri, 16 Aug 2019 11:37:31 +0000 (11:37 +0000)]
Merge "Add support of app_id in GetAll method call on statistics interface" into tizen

5 years agoMerge "Fixed CID 1038526." into tizen
Jaehyun Kim [Fri, 16 Aug 2019 11:36:28 +0000 (11:36 +0000)]
Merge "Fixed CID 1038526." into tizen

5 years agoFixed CID 1038526. 37/211937/1
prasadam-p [Mon, 12 Aug 2019 07:27:01 +0000 (12:57 +0530)]
Fixed CID 1038526.

Moved the log before the pcap_close call to fix USE_AFTER_FREE error.

Change-Id: Ie586c93e538c0297cc3dfa5a18719fa21db137f3
Signed-off-by: prashanth prasadam <prasadam.p@samsung.com>
5 years agoRemove duplicate dependency with implicit dependencies at "Type=dbus" 93/211593/1
INSUN PYO [Wed, 7 Aug 2019 03:23:20 +0000 (12:23 +0900)]
Remove duplicate dependency with implicit dependencies at "Type=dbus"

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: If2f360a5d1014a4e06e9f212bd3383f266fb351d

5 years agoMerge "Delete meaningless configuration" into tizen submit/tizen/20190726.063122
Jaehyun Kim [Fri, 26 Jul 2019 05:54:32 +0000 (05:54 +0000)]
Merge "Delete meaningless configuration" into tizen

5 years agoMigrate to openssl 1.1 56/209956/1
Dariusz Michaluk [Fri, 12 Jul 2019 13:11:47 +0000 (15:11 +0200)]
Migrate to openssl 1.1

Change-Id: I6e927cbeaae3c0c7f8b933b5aaf61cf4734b5ea3

5 years agoAdd granularity support in GetAll method call on statistics interface 39/209639/1
Nishant Chaprana [Tue, 9 Jul 2019 11:49:15 +0000 (17:19 +0530)]
Add granularity support in GetAll method call on statistics interface

Change-Id: Ic70dfb6aa08365175180d8d9f61092022b6641a8
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoAdd support of app_id in GetAll method call on statistics interface 17/209617/2
Nishant Chaprana [Tue, 9 Jul 2019 09:23:05 +0000 (14:53 +0530)]
Add support of app_id in GetAll method call on statistics interface

Change-Id: I8afdfedd60ee2ce1b6708eec4034119dd405f85a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoDelete meaningless configuration 36/209536/1
INSUN PYO [Mon, 8 Jul 2019 11:31:13 +0000 (20:31 +0900)]
Delete meaningless configuration

Change-Id: I7800cb6dc01ab510bbd3bae125b6e7684f3bb375

5 years agoRemove gvariant free for dauble free 53/206753/1 accepted/tizen/unified/20190530.043059 submit/tizen/20190524.092408
hyunuktak [Fri, 24 May 2019 08:14:09 +0000 (17:14 +0900)]
Remove gvariant free for dauble free

Change-Id: Ia3ed9d4ae536019ec735aaa02643a1258d2cb826
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoRemove realpath check to create file 22/206522/1 accepted/tizen/unified/20190523.085211 submit/tizen/20190523.063357
hyunuktak [Tue, 21 May 2019 02:25:31 +0000 (11:25 +0900)]
Remove realpath check to create file

Change-Id: I9b9c80aaad07f403c8712aa1ce2b4770450f6aba
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd monitor plugin requires for install dependency 74/205974/1 accepted/tizen/unified/20190513.082612 submit/tizen/20190513.033322
hyunuktak [Mon, 13 May 2019 02:35:48 +0000 (11:35 +0900)]
Add monitor plugin requires for install dependency

Change-Id: I91be1576eeaf46259c953b7fbc1430c90c4f03ee
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoChange to operate in on-demand mode 53/201753/2 submit/tizen/20190509.073354
hyunuktak [Tue, 19 Mar 2019 07:21:14 +0000 (16:21 +0900)]
Change to operate in on-demand mode

Change-Id: Iea3e5df460e906e6790d66f65e9db338667a1c13
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd and remove restriction rule appropriately 55/201255/2 accepted/tizen/unified/20190325.070830 submit/tizen/20190322.054530
hyunuktak [Tue, 12 Mar 2019 01:22:49 +0000 (10:22 +0900)]
Add and remove restriction rule appropriately

Change-Id: Icb7d614eb5b4197b05df880e91d59fe21b77b6c5
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd to set/unset restriction list 97/200097/2 accepted/tizen/unified/20190312.113050 submit/tizen/20190311.084912
hyunuktak [Tue, 19 Feb 2019 06:22:47 +0000 (15:22 +0900)]
Add to set/unset restriction list

Change-Id: I87e0278ccfac1aa10ae112494f66e75e2ef07a41
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoMerge "Fix a bug by wrong declaration" into tizen
Jaehyun Kim [Mon, 25 Feb 2019 07:08:08 +0000 (07:08 +0000)]
Merge "Fix a bug by wrong declaration" into tizen

5 years agoFix a bug by wrong declaration 47/199547/1
hyunuktak [Wed, 13 Feb 2019 02:18:01 +0000 (11:18 +0900)]
Fix a bug by wrong declaration

Change-Id: I36a3cef3e79267dbb7fcb8068c30f9add0e6c4fb
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoFixed Build fail issue when plugin-pcap build is diabled 36/199536/1
Nishant Chaprana [Tue, 12 Feb 2019 14:35:53 +0000 (20:05 +0530)]
Fixed Build fail issue when plugin-pcap build is diabled

Description:
This patch resolves the error which comes when plugin-pcap build is disabled.

Below error comes without this patch when plugin-pcap is diabled:-
=================================================================
[   20s] In file included from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/include/stc-manager-plugin-pcap.h:22:0,
[   20s]                  from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/src/stc-manager-plugin-pcap.c:20:
[   20s] /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/plugin/pcap/include/stc-plugin-pcap.h:28:18: fatal error: pcap.h: No such file or directory
[   20s]  #include <pcap.h>
[   20s]                   ^
[   20s] compilation terminated.
[   20s] src/CMakeFiles/stc-manager.dir/build.make:209: recipe for target 'src/CMakeFiles/stc-manager.dir/stc-manager-plugin-pcap.c.o' failed
[   20s] make[2]: *** [src/CMakeFiles/stc-manager.dir/stc-manager-plugin-pcap.c.o] Error 1
[   20s] make[2]: *** Waiting for unfinished jobs....
[   20s] In file included from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/include/stc-manager-plugin-pcap.h:22:0,
[   20s]                  from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/src/stc-pcap.c:19:
[   20s] /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/plugin/pcap/include/stc-plugin-pcap.h:28:18: fatal error: pcap.h: No such file or directory
[   20s]  #include <pcap.h>
[   20s]                   ^
[   20s] compilation terminated.
[   20s] src/CMakeFiles/stc-manager.dir/build.make:329: recipe for target 'src/CMakeFiles/stc-manager.dir/stc-pcap.c.o' failed
[   20s] make[2]: *** [src/CMakeFiles/stc-manager.dir/stc-pcap.c.o] Error 1
[   20s] In file included from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/include/stc-manager-plugin-pcap.h:22:0,
[   20s]                  from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/src/stc-manager.c:34:
[   20s] /home/abuild/rpmbuild/BUILD/stc-manager-0.0.89/plugin/pcap/include/stc-plugin-pcap.h:28:18: fatal error: pcap.h: No such file or directory
[   20s]  #include <pcap.h>
[   20s]                   ^
[   20s] compilation terminated.
=================================================================

Change-Id: I03c007d0adf19361304cc24acc85e4c5cd9d329d
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoFixed build fail issue when building only plugin-firewall 35/199535/1
Nishant Chaprana [Tue, 12 Feb 2019 15:11:44 +0000 (20:41 +0530)]
Fixed build fail issue when building only plugin-firewall

Description:
This patch fixes a build fail issue when we try to build only plugin-firewall.

Below is the error which is generated when build fails:-
========================================================
[   11s] In file included from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.90/include/stc-manager.h:21:0,
[   11s]                  from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.90/plugin/firewall/include/stc-plugin-firewall.h:30,
[   11s]                  from /home/abuild/rpmbuild/BUILD/stc-manager-0.0.90/plugin/firewall/stc-plugin-firewall.c:17:
[   11s] /home/abuild/rpmbuild/BUILD/stc-manager-0.0.90/include/stc-manager-util.h:21:18: fatal error: glib.h: No such file or directory
[   11s]  #include <glib.h>
[   11s]                   ^
[   11s] compilation terminated.
=======================================================

Change-Id: Id8a01d4ab761c39f9c2bfd1cf3bbfd664e1322b0
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoFirst check the index size of signal map 54/199054/1 accepted/tizen/unified/20190208.061737 submit/tizen/20190207.052137
hyunuktak [Fri, 1 Feb 2019 05:42:37 +0000 (14:42 +0900)]
First check the index size of signal map

Change-Id: I592a919ef58281be6038157ba1e2f9acd059f233
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoFix some coverity issues 24/199024/2
hyunuktak [Fri, 1 Feb 2019 01:34:11 +0000 (10:34 +0900)]
Fix some coverity issues

1020742 : Unchecked return value
1037124 : Logically dead code

Change-Id: I60af7ca69b055884bd41047435b2bfff8213f3a7
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoFix some svace issues for unchecking return value 94/197894/2 accepted/tizen/unified/20190130.151736 submit/tizen/20190130.071201
hyunuktak [Thu, 17 Jan 2019 04:15:48 +0000 (13:15 +0900)]
Fix some svace issues for unchecking return value

Change-Id: I87e056e9f8538f199a27f2bba7a204c5db21e7a5
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoFix a svace issue for negative code error 62/197762/2
hyunuktak [Wed, 16 Jan 2019 06:54:49 +0000 (15:54 +0900)]
Fix a svace issue for negative code error

Change-Id: I4ed552ae7de2d691a26239c3390fde62f2a0d40f
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd http infomation for pcap and checking length of packet 72/196972/10
hyunuktak [Tue, 8 Jan 2019 08:34:58 +0000 (17:34 +0900)]
Add http infomation for pcap and checking length of packet

Change-Id: I84486ec739c1ed0baf3feacebd22c475b7468971
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd hdr and tlv of nflog for pcap 58/195658/1
hyunuktak [Mon, 17 Dec 2018 05:45:47 +0000 (14:45 +0900)]
Add hdr and tlv of nflog for pcap

Change-Id: I99e01ab3262c4d0a002a35c7d1eeefdadb8c20fe
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoFixed 64 bit type format 50/195050/1 accepted/tizen/unified/20181212.062514 submit/tizen/20181211.125217
hyunuktak [Mon, 10 Dec 2018 07:16:41 +0000 (16:16 +0900)]
Fixed 64 bit  type format

Change-Id: I6d94f5b508b6a79f22d4a81d51fd1ab0830989dc
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd a function to find all devices 93/194593/1
hyunuktak [Thu, 6 Dec 2018 05:19:23 +0000 (14:19 +0900)]
Add a function to find all devices

Change-Id: I7c1a8fa26b18f36955fc89ace5bb6b1d3f5b470c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd a function to get all pcap loop 94/194494/2
hyunuktak [Wed, 5 Dec 2018 04:49:46 +0000 (13:49 +0900)]
Add a function to get all pcap loop

Change-Id: I92fa7de5a45e758a96f3ae98a31683d81aabe66d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoSeparate firewall function plugin 22/194322/1
hyunuktak [Mon, 3 Dec 2018 06:03:47 +0000 (15:03 +0900)]
Separate firewall function plugin

Change-Id: I9df5a225ac7772b2985e2b9d24e6682b7fd60a2d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoSeparate monitoring function plugin 27/194127/2
hyunuktak [Thu, 29 Nov 2018 07:49:41 +0000 (16:49 +0900)]
Separate monitoring function plugin

Change-Id: I9cab1ed4d30e78bd4489ea6a7f1083f7e5aa1326
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoSeparate debug log with info config 90/193490/2
hyunuktak [Wed, 21 Nov 2018 07:48:05 +0000 (16:48 +0900)]
Separate debug log with info config

Change-Id: I87608b9729a8ad5872c8edc69b1a2aac896421af
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoAdd packet capture functions 13/193413/2
hyunuktak [Tue, 20 Nov 2018 08:44:09 +0000 (17:44 +0900)]
Add packet capture functions

Change-Id: I287425157c7ca377a585e8b11e502a29c7b189b6
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years ago[TV Profile] Disabled default connection monitor and procfs monitor. 13/193813/1 accepted/tizen/unified/20181127.073343 submit/tizen/20181127.010429
Nishant Chaprana [Mon, 26 Nov 2018 13:54:41 +0000 (19:24 +0530)]
[TV Profile] Disabled default connection monitor and procfs monitor.

Change-Id: Ic0ab9a4d5472b1b436f6c33a312d36bbdbe83634
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
5 years agoRemove error log for reading classid from cgroup 87/193387/1 accepted/tizen/unified/20181123.063320 submit/tizen/20181122.115136
hyunuktak [Tue, 20 Nov 2018 05:45:04 +0000 (14:45 +0900)]
Remove error log for reading classid from cgroup

Change-Id: Ic8783c8cd385f6932a826664ca7d7c05bfba93cc
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoMerge "[Fix] Use localtime_r() instead of localtime()" into tizen accepted/tizen/unified/20181120.162734 submit/tizen/20181120.053838
Jaehyun Kim [Tue, 20 Nov 2018 05:10:33 +0000 (05:10 +0000)]
Merge "[Fix] Use localtime_r() instead of localtime()" into tizen

5 years agoMerge "[Fix] Use localtime_r() instead of localtime()" into tizen
Jaehyun Kim [Tue, 20 Nov 2018 04:59:38 +0000 (04:59 +0000)]
Merge "[Fix] Use localtime_r() instead of localtime()" into tizen

5 years agoMerge "[Fix] Use localtime_r() instead of localtime()" into tizen
Jaehyun Kim [Tue, 20 Nov 2018 04:58:47 +0000 (04:58 +0000)]
Merge "[Fix] Use localtime_r() instead of localtime()" into tizen

5 years agoMerge "Fix for 4 Svace issues." into tizen
Jaehyun Kim [Tue, 20 Nov 2018 04:54:15 +0000 (04:54 +0000)]
Merge "Fix for 4 Svace issues." into tizen

5 years agoMerge "Added additional test cases for stc-manager firewall dbus methods" into tizen
Jaehyun Kim [Tue, 20 Nov 2018 04:21:15 +0000 (04:21 +0000)]
Merge "Added additional test cases for stc-manager firewall dbus methods" into tizen

5 years agoMerge "Firewall rule is invalid if target >= STC_FW_RULE_TARGET_MAX" into tizen
Jaehyun Kim [Tue, 20 Nov 2018 04:19:53 +0000 (04:19 +0000)]
Merge "Firewall rule is invalid if target >= STC_FW_RULE_TARGET_MAX" into tizen

5 years agoRemove dereference after null check and dead code 13/193313/2
hyunuktak [Mon, 19 Nov 2018 07:17:35 +0000 (16:17 +0900)]
Remove dereference after null check and dead code

Change-Id: Ie646658cdfb4cb2443161329f48087a0445d559b
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
5 years agoFix for 4 Svace issues. 38/193038/2
Lokesh [Wed, 14 Nov 2018 05:38:41 +0000 (11:08 +0530)]
Fix for 4 Svace issues.

Added /* fall through */ comments, as there was no break statement at the end of case.

Change-Id: I30fa2b77c21853abf1def469a6ba467f8b1e83a7
Signed-off-by: Lokesh <l.kasana@samsung.com>
5 years ago[Fix] Use localtime_r() instead of localtime() 08/193008/1
Milind Murhekar [Tue, 13 Nov 2018 13:30:11 +0000 (19:00 +0530)]
[Fix] Use localtime_r() instead of localtime()

Description: This patch fixes the DF180802-00046
issue.

Change-Id: Ic2c784e4369deefc8ad74a3616c54da90b289c0f
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
5 years ago[Fix] Use localtime_r() instead of localtime() 91/192991/3
Milind Murhekar [Tue, 13 Nov 2018 11:25:29 +0000 (16:55 +0530)]
[Fix] Use localtime_r() instead of localtime()

Description: This patch fixes the DF180802-00045
issue.

Change-Id: I78529e672a2f9504168ed98069d8f00b1ededbcc
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
5 years ago[Fix] Use localtime_r() instead of localtime() 89/192989/3
Milind Murhekar [Tue, 13 Nov 2018 11:07:39 +0000 (16:37 +0530)]
[Fix] Use localtime_r() instead of localtime()

Description: This patch fixes the DF180802-00044
issue.

Change-Id: I0eb1ea1c6da97923993a9a5a6d99b67b2c5e6bde
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
5 years agoSupport to multi connection 63/192763/1
hyunuktak [Fri, 9 Nov 2018 07:12:57 +0000 (16:12 +0900)]
Support to multi connection

Change-Id: I817d87a99a4b24968652c0075ee47a90481c2b38
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdd a macro for tv profile 87/192087/1
hyunuktak [Tue, 30 Oct 2018 05:35:50 +0000 (14:35 +0900)]
Add a macro for tv profile

Change-Id: I34cecc24a805bc577669d64fa05cf7fbab4460c7
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdd some chains to separate monitoring and restriction 70/191970/2
hyunuktak [Fri, 26 Oct 2018 06:35:32 +0000 (15:35 +0900)]
Add some chains to separate monitoring and restriction

Change-Id: I621a21188ce5a03250d6113663848dd1d27b1efb
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded additional test cases for stc-manager firewall dbus methods 37/191337/2
Abhishek Sansanwal [Tue, 16 Oct 2018 06:34:16 +0000 (12:04 +0530)]
Added additional test cases for stc-manager firewall dbus methods

Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I1e9fa8f54507950f8b0c7f45f688546bed1081d1

6 years agoCheck insert option when iptables commit 32/191332/1
hyunuktak [Tue, 16 Oct 2018 06:02:58 +0000 (15:02 +0900)]
Check insert option when iptables commit

Change-Id: Iabf6dfda8008ebe93ce81cf3bab07c2eaef7a99c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRefactoring structures for monitoring and restrictions 21/190121/4
hyunuktak [Thu, 27 Sep 2018 06:13:32 +0000 (15:13 +0900)]
Refactoring structures for monitoring and restrictions

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