platform/core/connectivity/stc-manager.git
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>
6 years agoFirewall rule is invalid if target >= STC_FW_RULE_TARGET_MAX 97/190897/2
Abhishek Sansanwal [Mon, 8 Oct 2018 11:04:53 +0000 (16:34 +0530)]
Firewall rule is invalid if target >= STC_FW_RULE_TARGET_MAX

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

6 years agoFix build warning for format 78/189578/1 accepted/tizen/5.0/unified/20181102.015648 accepted/tizen/unified/20180919.061653 submit/tizen/20180919.023413 submit/tizen_5.0/20181101.000003
hyunuktak [Wed, 19 Sep 2018 01:58:42 +0000 (10:58 +0900)]
Fix build warning for format

Change-Id: I173ee0057395eccb3cf82048428288f572d5fed5
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFix a memory leak 22/188822/1 accepted/tizen/unified/20180912.061655 submit/tizen/20180911.120738
hyunuktak [Tue, 11 Sep 2018 00:44:36 +0000 (09:44 +0900)]
Fix a memory leak

Change-Id: I1a32004a8aaea706156e9e53d304b9f149081a0d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMerge "Remove logic to place pids to background cgroup procs" into tizen accepted/tizen/unified/20180910.172047 submit/tizen/20180910.023124
Jaehyun Kim [Mon, 10 Sep 2018 02:30:07 +0000 (02:30 +0000)]
Merge "Remove logic to place pids to background cgroup procs" into tizen

6 years agoFix a coverity for unchecking return value 22/188722/1
hyunuktak [Mon, 10 Sep 2018 00:11:37 +0000 (09:11 +0900)]
Fix a coverity for unchecking return value

Change-Id: I5c9290ebeceb806ab1ff64ed6f0127ce09c81873
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoModify attr for "/var/lib/stc" 29/188629/1
hyunuktak [Fri, 7 Sep 2018 02:03:03 +0000 (11:03 +0900)]
Modify attr for "/var/lib/stc"

Change-Id: Ieec5d5ee3f217e8b021a9c175636bdcd877203a9
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRemove logic to place pids to background cgroup procs 40/188540/1
hyunuktak [Thu, 6 Sep 2018 01:52:44 +0000 (10:52 +0900)]
Remove logic to place pids to background cgroup procs

Change-Id: I5f491bc202cfd1d660370e7367858e92fe23691c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMerge "Initialize memory for nfacct rule" into tizen accepted/tizen/unified/20180906.054612 accepted/tizen/unified/20180907.043144 submit/tizen/20180905.125143 submit/tizen/20180907.021206
Jaehyun Kim [Wed, 5 Sep 2018 11:26:19 +0000 (11:26 +0000)]
Merge "Initialize memory for nfacct rule" into tizen

6 years agoMerge "Fix a bug for using heap after free" into tizen
Jaehyun Kim [Wed, 5 Sep 2018 11:25:12 +0000 (11:25 +0000)]
Merge "Fix a bug for using heap after free" into tizen

6 years agoInitialize memory for nfacct rule 47/188247/1
hyunuktak [Mon, 3 Sep 2018 09:26:09 +0000 (18:26 +0900)]
Initialize memory for nfacct rule

Change-Id: Iadc6d5a531bc14e450970f6af57672b6f2b9fe66
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFix a bug for using heap after free 09/188209/2
hyunuktak [Mon, 3 Sep 2018 05:01:06 +0000 (14:01 +0900)]
Fix a bug for using heap after free

Change-Id: I7bb7fa02324f919bd7d6aee99a2ceb0f8090a4bc
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdd tethering client data limitation 17/187917/5
Milind Murhekar [Wed, 29 Aug 2018 11:03:11 +0000 (16:33 +0530)]
Add tethering client data limitation

This change/feature adds the data limitaion restriction
on each connected tethering clients based on its
mac address, ip address and app id.

Change-Id: I538450a68bb6e099d277bce0a6fe53a80d483332
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
6 years agoMerge "Add 'ps', 'awk' and 'pgrep' to exception list" into tizen accepted/tizen/unified/20180829.143000 submit/tizen/20180828.063057 submit/tizen/20180829.074020
Jaehyun Kim [Tue, 28 Aug 2018 06:20:57 +0000 (06:20 +0000)]
Merge "Add 'ps', 'awk' and 'pgrep' to exception list" into tizen

6 years agoMerge "[Add] tethering client monitoring" into tizen
Jaehyun Kim [Tue, 28 Aug 2018 06:09:16 +0000 (06:09 +0000)]
Merge "[Add] tethering client monitoring" into tizen

6 years agoMerge "[Add] tether plugin" into tizen
Jaehyun Kim [Tue, 28 Aug 2018 06:06:59 +0000 (06:06 +0000)]
Merge "[Add] tether plugin" into tizen

6 years ago[Add] tethering client monitoring 80/187180/6
Milind Murhekar [Mon, 20 Aug 2018 11:45:05 +0000 (17:15 +0530)]
[Add] tethering client monitoring

This change adds the feature to monitor
the data usage of connected tethering clients
and saves the stats to the table counters.

Change-Id: I50df631b27ad9fe483f6790877e92308b8ea760a
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
6 years agoAdd to insert firewall rule 18/187418/4
hyunuktak [Thu, 23 Aug 2018 05:44:38 +0000 (14:44 +0900)]
Add to insert firewall rule

Change-Id: I873350bb260bc1ef111b2a1e3f551019c9676273
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRemoved flag for TIZEN_DEBUG_ENABLE 70/187370/1
hyunuktak [Wed, 22 Aug 2018 09:26:19 +0000 (18:26 +0900)]
Removed flag for TIZEN_DEBUG_ENABLE

Change-Id: I5589bc07ded2abe496bf8fdfdc10bcc82145e0a1
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded new vconf key for VCONFKEY_SETAPPL_DATA_RESTRICTION_INT 23/187323/1
hyunuktak [Wed, 22 Aug 2018 05:07:57 +0000 (14:07 +0900)]
Added new vconf key for VCONFKEY_SETAPPL_DATA_RESTRICTION_INT

Change-Id: I1d869718893ada6c6b2b6ff979b1460672b34524
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdd 'ps', 'awk' and 'pgrep' to exception list 20/187320/1
Nishant Chaprana [Wed, 22 Aug 2018 04:21:42 +0000 (09:51 +0530)]
Add 'ps', 'awk' and 'pgrep' to exception list

Change-Id: I965daf32489804429b316455071bca3d9a55f40b
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years ago[Add] tether plugin 78/186278/5
Milind Murhekar [Wed, 8 Aug 2018 12:25:21 +0000 (17:55 +0530)]
[Add] tether plugin

This change adds a plugin called "tether"
to support data usage for tethering client stations.

Change-Id: I823c832f42613f0b607b96e0d863e532fe892e63
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
6 years agoRemoved redundant NULL check 67/185767/2 accepted/tizen/unified/20180817.140843 submit/tizen/20180817.082114
Nishant Chaprana [Thu, 2 Aug 2018 07:28:01 +0000 (12:58 +0530)]
Removed redundant NULL check

Change-Id: Id29b2b3473715d454496c860b46f13ef3070ce0e
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoRemoved emulator state check 14/187014/1
hyunuktak [Fri, 17 Aug 2018 08:03:56 +0000 (17:03 +0900)]
Removed emulator state check

Change-Id: I829ee400b71f86ff10a8d264b5b75aae4457ceb5
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFix week_start_ts into day_start_ts 55/185655/1 accepted/tizen/unified/20180809.074806 submit/tizen/20180803.081836 submit/tizen/20180808.125613
Taesoo Jun [Wed, 1 Aug 2018 09:54:47 +0000 (18:54 +0900)]
Fix week_start_ts into day_start_ts

Change-Id: I1906bf6fba572bec7d1a1f5c29206c4b0ee64114
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
6 years agoChecked file stat before realpath 63/185263/1 accepted/tizen/unified/20180801.144858 submit/tizen/20180727.073401 submit/tizen/20180731.041744
hyunuktak [Fri, 27 Jul 2018 06:26:35 +0000 (15:26 +0900)]
Checked file stat before realpath

Change-Id: Iae4a7b7f97b90389a5c35ccf6144e42b3b525d02
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFix Wformat build error 31/184931/1
yhji [Tue, 24 Jul 2018 09:53:44 +0000 (18:53 +0900)]
Fix Wformat build error

Change-Id: I042b7e02b72dcd5b4e6e2a0d07fed3393aaad6db
Signed-off-by: yhji <yhji.lee@samsung.com>
6 years agoMerge "Added log and nflog rule for firewall" into tizen accepted/tizen/unified/20180725.060450 submit/tizen/20180724.092802
Jaehyun Kim [Tue, 24 Jul 2018 09:16:30 +0000 (09:16 +0000)]
Merge "Added log and nflog rule for firewall" into tizen

6 years agoChange file mode into 644 67/184567/2
Taesoo Jun [Thu, 19 Jul 2018 01:44:58 +0000 (10:44 +0900)]
Change file mode into 644

Change-Id: Ibc02513b4cca3207d3137ce88b7ffd9735439eeb
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
6 years agoFix local variable initialization and handle a invalid parameter 66/184566/2
Taesoo Jun [Thu, 19 Jul 2018 01:40:40 +0000 (10:40 +0900)]
Fix local variable initialization and handle a invalid parameter

Change-Id: Idc99e6b41528f0429882d2bf91e4bbe0c997b05d
Signed-off-by: Taesoo Jun <steve.jun@samsung.com>
6 years agoAdded log and nflog rule for firewall 84/184484/3
hyunuktak [Wed, 18 Jul 2018 08:14:28 +0000 (17:14 +0900)]
Added log and nflog rule for firewall

Change-Id: I7361422a530040610eb45328073ebc75f906cfe1
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMerge "Modified to update firewall rule" into tizen accepted/tizen/unified/20180717.063039 submit/tizen/20180713.100308
taesub kim [Fri, 13 Jul 2018 07:29:00 +0000 (07:29 +0000)]
Merge "Modified to update firewall rule" into tizen

6 years agoModified to update firewall rule 33/184033/1
hyunuktak [Fri, 13 Jul 2018 06:46:36 +0000 (15:46 +0900)]
Modified to update firewall rule

Change-Id: I0a452c3e7eea1a33f93f7a39df182d9e77c01ced
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoModified to send message to net popup 80/183880/1
hyunuktak [Thu, 12 Jul 2018 05:38:00 +0000 (14:38 +0900)]
Modified to send message to net popup

Change-Id: I0ffbc76a3fc0ecee7eb9ba295a32f32f6f8391c4
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded data limits monitoring for daily, weekly and monthly 28/183828/1
hyunuktak [Wed, 11 Jul 2018 09:11:42 +0000 (18:11 +0900)]
Added data limits monitoring for daily, weekly and monthly

Change-Id: Ibc94757d36210c9167ebe4ddb7c36053d13f60fd
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoSync current time 88/183288/1 accepted/tizen/unified/20180712.092638 submit/tizen/20180711.083748
hyunuktak [Wed, 4 Jul 2018 06:13:27 +0000 (15:13 +0900)]
Sync current time

Change-Id: I0b741ffd37d3848a6ce01c260908e3acd8b80cf2
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFix some security issues 45/182445/1 accepted/tizen/unified/20180628.130455 submit/tizen/20180627.105126
hyunuktak [Mon, 25 Jun 2018 07:58:38 +0000 (16:58 +0900)]
Fix some security issues

Change-Id: I2b31052aa20c028f0a4b496ec50b54641cce8bd9
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFix a build warning for initialization from incompatible pointer type 97/181597/2 submit/tizen/20180620.111119
hyunuktak [Fri, 15 Jun 2018 04:33:54 +0000 (13:33 +0900)]
Fix a build warning for initialization from incompatible pointer type

Change-Id: I780bcde31ee66a14e1b9d18521b8c1ef8d6350b8
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdd inotify for information config 98/181098/2 accepted/tizen/unified/20180612.044129 submit/tizen/20180611.090847
hyunuktak [Fri, 8 Jun 2018 05:51:25 +0000 (14:51 +0900)]
Add inotify for information config

Change-Id: I2d7a54bb54390442702dfe78ab30cd3434a898df
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoOrganize log for print tree 11/180611/1
hyunuktak [Thu, 31 May 2018 07:06:51 +0000 (16:06 +0900)]
Organize log for print tree

Change-Id: Ie27476ac28f8939df71dd0739adbcfccad427fb1
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoLoad procfs on booting time 08/180508/1
hyunuktak [Wed, 30 May 2018 07:24:44 +0000 (16:24 +0900)]
Load procfs on booting time

Change-Id: If68c6428cfb364aff9fbfd2a904ff6fee82a6a4d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRemoved secure dlog for sql query 58/179858/1 accepted/tizen/unified/20180523.144409 submit/tizen/20180523.054826
hyunuktak [Wed, 23 May 2018 04:20:27 +0000 (13:20 +0900)]
Removed secure dlog for sql query

Change-Id: I1505bd691ed8a28e6e552eda033e864b4012b592
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFix: Malloc only when making process entry in tree 16/179616/1 accepted/tizen/unified/20180521.003651 submit/tizen/20180521.000329
Nishant Chaprana [Fri, 18 May 2018 14:48:09 +0000 (20:18 +0530)]
Fix: Malloc only when making process entry in tree

Description:
For some processes both FORK and EXEC events are emitted, however
we were allocating mamory in both methods, but not unallocating the
memory in failure case when entry was already present.

So we should malloc only when we are creating an entry in process tree.

Change-Id: Iedc3c10eabb41ad4da854ab8d0cf45759bbedcc7
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoCorrected file permissions 83/177783/2
Nishant Chaprana [Thu, 3 May 2018 14:50:30 +0000 (20:20 +0530)]
Corrected file permissions

Change-Id: Ic0392ac48d765bf5f7c9291bac4f573c84d78a1b
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years ago[Wformat] Fix Wformat build error 93/179393/1 submit/tizen/20180518.112755
Nishant Chaprana [Thu, 17 May 2018 12:49:39 +0000 (18:19 +0530)]
[Wformat] Fix Wformat build error

Change-Id: I418e75c7f403d1ee1d54f8236b39f20977513aab
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoAdd support for Tethering data monitoring and data restriction rules 19/177919/9 accepted/tizen/unified/20180515.163358 submit/tizen/20180511.091455 submit/tizen/20180514.105807
Milind Murhekar [Fri, 4 May 2018 10:18:28 +0000 (15:48 +0530)]
Add support for Tethering data monitoring and data restriction rules

Description: This patch applies the tethering interface
monitoring, when Hotspot is enabled/disabled, Also
it supports data restriction rules for tethering interface
including default network connection.

Change-Id: I2b79de433abde7b5ae46d1fb9d7b537975398dab
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
6 years agoUpdated enum value for app state 96/178496/1 submit/tizen/20180510.090500
hyunuktak [Thu, 10 May 2018 07:00:48 +0000 (16:00 +0900)]
Updated enum value for app state

Change-Id: I9cd032ac4482968f43678fdb8c4773ef2253cdbb
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded dbus method to commit ip6tables 14/178314/1 accepted/tizen/unified/20180510.134338 submit/tizen/20180510.023945
hyunuktak [Wed, 9 May 2018 08:33:45 +0000 (17:33 +0900)]
Added dbus method to commit ip6tables

Change-Id: Ic446d4575fc9fc901f7a609377475f1be64657ea
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoReplaced rule type to direction 25/177825/1
hyunuktak [Fri, 4 May 2018 04:09:03 +0000 (13:09 +0900)]
Replaced rule type to direction

Change-Id: Ia158c9e54167d1da971d79d14940c6464b97abd3
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoRemoved exclude restriction method 26/177626/1 submit/tizen/20180503.122906
hyunuktak [Wed, 2 May 2018 08:05:10 +0000 (17:05 +0900)]
Removed exclude restriction method

Change-Id: Id61aa10111a725ce19197896a982496c4ad0f75e

6 years agoReplaced type from state for restriction 12/177612/1
hyunuktak [Wed, 2 May 2018 06:28:54 +0000 (15:28 +0900)]
Replaced type from state for restriction

Change-Id: Ib2575dc03a4447a4dd1878625580f353b474c927
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoSet debug log state in procfs 71/176571/1 accepted/tizen/unified/20180424.082602 submit/tizen/20180424.010339
hyunuktak [Fri, 20 Apr 2018 04:55:23 +0000 (13:55 +0900)]
Set debug log state in procfs

Change-Id: Ie87afa1d649a3a4f4a029d5b76a3737eb1600afc
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMerge "Fixed coverity issues for resource leak" into tizen accepted/tizen/unified/20180420.081858 submit/tizen/20180419.131851
Jaehyun Kim [Thu, 19 Apr 2018 05:32:51 +0000 (05:32 +0000)]
Merge "Fixed coverity issues for resource leak" into tizen

6 years agoFixed coverity issues for resource leak 76/176376/3
hyunuktak [Thu, 19 Apr 2018 02:15:31 +0000 (11:15 +0900)]
Fixed coverity issues for resource leak

Change-Id: Ic47d2c90497432236c69595b3d0b20a8bbce5a96
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFixed dbus/cynara policy 91/176291/1
hyunuktak [Wed, 18 Apr 2018 05:43:53 +0000 (14:43 +0900)]
Fixed dbus/cynara policy

Change-Id: I6949b1926c998302975eb21fe05270221ef21b88
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMerge "Added dbus method to commit iptables" into tizen accepted/tizen/unified/20180417.173151 submit/tizen/20180416.224349
taesub kim [Mon, 16 Apr 2018 08:57:45 +0000 (08:57 +0000)]
Merge "Added dbus method to commit iptables" into tizen

6 years agoMerge "Added firewall feature" into tizen
taesub kim [Mon, 16 Apr 2018 08:57:31 +0000 (08:57 +0000)]
Merge "Added firewall feature" into tizen

6 years agoAdded dbus method to commit iptables 56/175756/1
hyunuktak [Thu, 12 Apr 2018 06:36:05 +0000 (15:36 +0900)]
Added dbus method to commit iptables

Change-Id: I20c7623d92421a7d04c23e9a96ebc6708340f047
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded firewall feature 28/174928/2
hyunuktak [Thu, 5 Apr 2018 06:25:28 +0000 (15:25 +0900)]
Added firewall feature

Change-Id: I9c71bc7af199d145509cbe0c7e935d16e85dfd8d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoAdded dbus/cynara policy 73/174473/1
taesub kim [Mon, 2 Apr 2018 09:02:59 +0000 (18:02 +0900)]
Added dbus/cynara policy

Change-Id: Ic6107087ddf2a21fcd874fd125e402a36988c0df
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
6 years agoAdd exclusion rule logic 48/171048/2 accepted/tizen/unified/20180305.152640 submit/tizen/20180305.084154
Nishant Chaprana [Mon, 26 Feb 2018 07:32:54 +0000 (13:02 +0530)]
Add exclusion rule logic

Description:
This patch adds implementation below features for exclusion rule
1) add exclusion rule
2) delete exclusion rule
3) update exclusion rule

Change-Id: I30a0e2602a53c6d76d501717a8428a2e077b0ea4
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoSeparately identify restrictions by rst_type 39/170639/1
Nishant Chaprana [Wed, 21 Feb 2018 06:25:51 +0000 (11:55 +0530)]
Separately identify restrictions by rst_type

Description: This patch adds logic to separately identify restriction
on basis of restriction type (Blocked/Excluded).
Also it stores rst_type inplace of rst_state in restriction table because
rst_state is only to check whether restriction is active or not and
we are not required to store that information to database.

Change-Id: I5f540c5b791634072d58c87e7eceda8e6f653e76
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoCorrect typo mistakes 48/170248/1 accepted/tizen/unified/20180222.080217 submit/tizen/20180221.115722
Nishant Chaprana [Thu, 15 Feb 2018 10:26:24 +0000 (15:56 +0530)]
Correct typo mistakes

Change-Id: Ib03452f7d60b6f25f3e57bebe97dac0b4b1fecb3
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoFixed IPv4 and IPv6 monitoring issue 03/169703/1
hyunuktak [Thu, 8 Feb 2018 09:24:24 +0000 (18:24 +0900)]
Fixed IPv4 and IPv6 monitoring issue

Change-Id: I3fa0c4c550e21cbd87b5ef0e3f57de2487cf92c5
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoModified ip type to be properly monitored 72/169672/1
hyunuktak [Thu, 8 Feb 2018 07:29:17 +0000 (16:29 +0900)]
Modified ip type to be properly monitored

Change-Id: Ib08671b5c73a61418c6ad1643799f01efe97916b
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMoved procfs for app lifecycle to plugin and separate plugins 02/169602/1
hyunuktak [Thu, 8 Feb 2018 01:30:35 +0000 (10:30 +0900)]
Moved procfs for app lifecycle to plugin and separate plugins

Change-Id: I0310a1761c6b5da28fb991dee7cd03cfdbb49d7b
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoMoved exception list to plugin 95/169595/1
hyunuktak [Thu, 8 Feb 2018 00:44:18 +0000 (09:44 +0900)]
Moved exception list to plugin

Change-Id: Iec04f0f7aba1862cde610a9e3c4d7c93f67674e0
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years agoFixed some svaces 50/169450/1
hyunuktak [Wed, 7 Feb 2018 02:17:27 +0000 (11:17 +0900)]
Fixed some svaces

WGID : 307350, 307352

Change-Id: I517541c5c088f2a0f30ea71186fcf9d2df332d9e
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
6 years ago[Fix] Remove restriction from tree when user initiated remove operation 12/168312/2
Nishant Chaprana [Thu, 25 Jan 2018 12:53:41 +0000 (18:23 +0530)]
[Fix] Remove restriction from tree when user initiated remove operation

Change-Id: I96cff6077c12d0484643e63fc7da772285579e7f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
6 years agoUpdate classid for all valid restriction states 04/168304/2
Nishant Chaprana [Thu, 25 Jan 2018 12:15:56 +0000 (17:45 +0530)]
Update classid for all valid restriction states

Change-Id: I440ca17881dbf92954dfffbf57a18a64216c348f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>