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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
Jaehyun Kim [Wed, 5 Sep 2018 11:26:19 +0000 (11:26 +0000)]
Merge "Initialize memory for nfacct rule" 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
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>
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>
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>
Jaehyun Kim [Tue, 28 Aug 2018 06:20:57 +0000 (06:20 +0000)]
Merge "Add 'ps', 'awk' and 'pgrep' to exception list" into tizen
Jaehyun Kim [Tue, 28 Aug 2018 06:09:16 +0000 (06:09 +0000)]
Merge "[Add] tethering client monitoring" into tizen
Jaehyun Kim [Tue, 28 Aug 2018 06:06:59 +0000 (06:06 +0000)]
Merge "[Add] tether plugin" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Jaehyun Kim [Tue, 24 Jul 2018 09:16:30 +0000 (09:16 +0000)]
Merge "Added log and nflog rule for firewall" into tizen
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>
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>
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>
taesub kim [Fri, 13 Jul 2018 07:29:00 +0000 (07:29 +0000)]
Merge "Modified to update firewall rule" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
hyunuktak [Wed, 2 May 2018 08:05:10 +0000 (17:05 +0900)]
Removed exclude restriction method
Change-Id: Id61aa10111a725ce19197896a982496c4ad0f75e
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>
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>
Jaehyun Kim [Thu, 19 Apr 2018 05:32:51 +0000 (05:32 +0000)]
Merge "Fixed coverity issues for resource leak" into tizen
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>
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>
taesub kim [Mon, 16 Apr 2018 08:57:45 +0000 (08:57 +0000)]
Merge "Added dbus method to commit iptables" into tizen
taesub kim [Mon, 16 Apr 2018 08:57:31 +0000 (08:57 +0000)]
Merge "Added firewall feature" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
hyunuktak [Thu, 25 Jan 2018 00:59:39 +0000 (09:59 +0900)]
Fixed crash for wrong struct type cast
Change-Id: If2d9679b345d2253ea26db22710590c86a93dadc
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Wed, 24 Jan 2018 00:55:02 +0000 (09:55 +0900)]
Add initial source codes for gtest
Change-Id: I41574b7e13b99c1a1fb14ee32b27d4352bbc933a
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Nishant Chaprana [Fri, 8 Dec 2017 10:38:24 +0000 (16:08 +0530)]
Creating seperate chains[STC_IN, STC_OUT, STC_FRWD] for STC Framework's rules.
Change-Id: I74b9ce4d13fb9122c4e0ea05226a22a925d1a585
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Fri, 1 Dec 2017 10:04:56 +0000 (15:34 +0530)]
Replaces fork() and execv() calls with stc-iptables dbus method calls
Change-Id: Iea3e6236e39c6747152e91965b785ceb6bc20023
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 25 Oct 2017 05:46:07 +0000 (11:16 +0530)]
Fetching /proc/<pid>/status entry after validation.
Description: This patch adds validation check before storing status
entries and assignes proper index for storing value.
In TM1 reference device kernel makes below entries in status file.
proc entry is like below:-
sh-3.2# cat /proc/373/status
Name: stc-manager
State: S (sleeping)
Tgid: 373
Pid: 373
PPid: 1
TracerPid: 0
However in Odroid reference device, kernel makes below entries in status.
sh-3.2# cat /proc/3404/status
Name: stc-manager
State: S (sleeping)
Tgid: 3404
Ngid: 0
Pid: 3404
PPid: 1
TracerPid: 0
Odroid kernel has an extra entry "Ngid" which breaks current extraction logic.
So added logic to match entry key before extracting value when reading status file.
Change-Id: I393ed476919fc8c101a8ce6a11ab835230a39021
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
hyunuktak [Fri, 20 Oct 2017 04:00:04 +0000 (13:00 +0900)]
Removed inotify helper
Change-Id: I4de98b665307d02a75738dd8fd372eb85bfffaff
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Nishant Chaprana [Tue, 17 Oct 2017 03:17:50 +0000 (08:47 +0530)]
Use heap instead of stack, to aviod large stack usage issue in __process_contr_reply()
Change-Id: I447c0cca6658995f355693f0923c9395cabe0468
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Mon, 16 Oct 2017 09:16:50 +0000 (14:46 +0530)]
[nfacct-rule] Use heap instead of stack, to aviod large stack usage issue.
Change-Id: I5252955200603bc1c21b3b36b150e174447ce20c
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Mon, 16 Oct 2017 06:14:42 +0000 (11:44 +0530)]
[Fix] Memory leak while fetching data from config file
Change-Id: I2126b99837fb53c9a504ba47580c2fcfba5b5fd7
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Tue, 3 Oct 2017 09:02:45 +0000 (14:32 +0530)]
Update ground state in table while updating data usage.
Change-Id: I3288285af6febf4ce196d9fe8d965699b01bc22e
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
taesub kim [Mon, 16 Oct 2017 05:32:55 +0000 (05:32 +0000)]
Merge "Revert "Update ground state in table while updating data usage."" into tizen
taesub kim [Mon, 16 Oct 2017 05:32:44 +0000 (05:32 +0000)]
Merge "Revert "[Fix] Fetch proper app_id for creation of cgroup."" into tizen
taesub kim [Mon, 16 Oct 2017 05:31:33 +0000 (05:31 +0000)]
Revert "Update ground state in table while updating data usage."
This reverts commit
3b547510161f3098a3af865260dbd8b306546f7d.
Change-Id: Iccc7ec64a4758e8ec12e68d2b20e19339144056b
taesub kim [Mon, 16 Oct 2017 05:31:20 +0000 (05:31 +0000)]
Revert "[Fix] Fetch proper app_id for creation of cgroup."
This reverts commit
951a7b00437655c92d1a998c4e1ed4353010eb0b.
Change-Id: I10c8ea979a54ca189b0eab6c565e7320307e85e0
Nishant Chaprana [Tue, 3 Oct 2017 09:02:45 +0000 (14:32 +0530)]
Update ground state in table while updating data usage.
Change-Id: I7bd13c92fac2994f2be22fa3000896ded3a5b70a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Nishant Chaprana [Wed, 11 Oct 2017 05:32:29 +0000 (11:02 +0530)]
[Fix] Fetch proper app_id for creation of cgroup.
Description: The app_id was not extracted properly from procfs.
Some processes run with help of other daemons, for example
org.tizen.browser app is execued using efl_webprocess.
In this patch for resolving above issue,
if /proc/<pid>/attr/current file contains "User::Pkg::" wildcard string,
then we extract app_id from above file.
Otherwise we read /proc/<pid>/cmdline and fetch process_name as app_id.
Change-Id: I0eb46f4f675cec3f2323c0ab05388fec46c7781f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
hyunuktak [Tue, 10 Oct 2017 05:48:27 +0000 (14:48 +0900)]
Added information config with inotify
Change-Id: If6faf890e69fa7a2de05d362aada815c29778411
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Tue, 10 Oct 2017 05:42:33 +0000 (14:42 +0900)]
Added exceptions for system call and bracket
Change-Id: Ib28764520292f29b4378620680d3391ef2308c93
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Tue, 10 Oct 2017 05:37:42 +0000 (14:37 +0900)]
Fixed coverity issues
Change-Id: I19f27469c22bc1662c8a33afc92f3bebdc2c560d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Tue, 10 Oct 2017 05:33:38 +0000 (14:33 +0900)]
Extract file name using /usr/apps keyword
And ignore blank space
Change-Id: I36813811a9f0ad358d591ae197de0034c326486a
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Tue, 10 Oct 2017 05:27:08 +0000 (14:27 +0900)]
Added extra debug logs under STC_DEBUG_LOG tag
Change-Id: I40b7a6eae7e2adbf919b6f0359b162d221fbc124
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Tue, 10 Oct 2017 05:17:01 +0000 (14:17 +0900)]
Monitoring threads of a process using tgid and PROC_EVENT_FORK
Change-Id: I7502aa99b04e06e7e7cce0067b43c5f400d99f4d
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Tue, 10 Oct 2017 05:04:47 +0000 (14:04 +0900)]
Removed is_rule_present which is not valid
Change-Id: I783916db78b09d9351f2d322be9eb0007d3dfb69
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Thu, 21 Sep 2017 05:15:51 +0000 (14:15 +0900)]
Set STC_DEBUG_LOG flag
Change-Id: Ic4cfd5f7eb3fa1014db9486479d567e092486e1c
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Thu, 21 Sep 2017 01:30:02 +0000 (10:30 +0900)]
Changed cur classid path and initialize
Change-Id: Ib7c6bd5ce363a8079750e66943d287e86224e5c6
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
hyunuktak [Wed, 20 Sep 2017 07:35:35 +0000 (16:35 +0900)]
Replaced imsi to subscriber ID
Change-Id: Ie137cb045ab279416b3d3711f0cd55a1fe4543bd
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>