platform/core/security/klay.git
7 years agoFix file-system API to use lstat instead of stat 03/138903/1 submit/tizen/20170720.071940
sangwan.kwon [Fri, 14 Jul 2017 07:23:37 +0000 (16:23 +0900)]
Fix file-system API to use lstat instead of stat

Change-Id: I29f70eab30e4d7f729a6b2efbcf336e555f7b2eb
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoMerge "Support multiple logsink on one process" into tizen accepted/tizen/unified/20170727.190705 submit/tizen/20170726.025713
Jaemin Ryu [Thu, 13 Jul 2017 06:34:11 +0000 (06:34 +0000)]
Merge "Support multiple logsink on one process" into tizen

7 years agoSupport multiple logsink on one process 22/137822/3
sangwan.kwon [Thu, 6 Jul 2017 07:47:34 +0000 (16:47 +0900)]
Support multiple logsink on one process

Change-Id: I3abacf126bedaa70433d3c9efd28e2a0d775b6fa
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd the management of audit rules in netlink audit 41/136641/4
Sungbae Yoo [Fri, 30 Jun 2017 11:59:12 +0000 (20:59 +0900)]
Add the management of audit rules in netlink audit

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I22f2c5c44015d8dc57b97e69d87413ea2e06c1fa

7 years agoAdd audit class to use linux audit subsystem 58/133758/5 accepted/tizen/unified/20170726.013003 submit/tizen/20170725.065700 submit/tizen/20170725.091352
Sungbae Yoo [Fri, 9 Jun 2017 11:31:50 +0000 (20:31 +0900)]
Add audit class to use linux audit subsystem

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I9a88371ebe822c93efd5a849de311d6a8ed4761f

7 years agoAdd cgroup class for management of cgroupfs 62/132162/4 accepted/tizen/unified/20170627.043412 accepted/tizen/unified/20170629.085716 submit/tizen/20170621.051505 submit/tizen/20170626.035422
Sungbae Yoo [Wed, 31 May 2017 11:23:37 +0000 (20:23 +0900)]
Add cgroup class for management of cgroupfs

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: If0f280c8484c424117727aa04fa88b523056e590

7 years agoAdd a class to unshare/attach the namespaces of process 61/132161/1
Sungbae Yoo [Wed, 31 May 2017 06:43:54 +0000 (15:43 +0900)]
Add a class to unshare/attach the namespaces of process

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: Id599317957a08a0ae8806af2460223ac9341d14c

7 years agoMerge "[SECIOTSW-349] Add AuditTrail class to audit namespace" into tizen
Lee Sung Jun [Tue, 23 May 2017 07:52:53 +0000 (07:52 +0000)]
Merge "[SECIOTSW-349] Add AuditTrail class to audit namespace" into tizen

7 years ago[SECIOTSW-349] Add AuditTrail class to audit namespace 26/130626/1
Lee Sung Jun [Tue, 23 May 2017 06:55:49 +0000 (15:55 +0900)]
[SECIOTSW-349] Add AuditTrail class to audit namespace

Change-Id: I3e3daaef1d829c4cac0c04bb288f5d05a4cecdbc
Signed-off-by: Lee Sung Jun <sjun221.lee@samsung.com>
7 years agoFix copy() to be able to handle large files than 2GB 52/130552/2 accepted/tizen/unified/20170531.082403 submit/tizen/20170523.073824
Sungbae Yoo [Tue, 23 May 2017 02:06:10 +0000 (11:06 +0900)]
Fix copy() to be able to handle large files than 2GB

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I5555d8dc13128ea969b09b35c913d54ccbe4e537

7 years agoChange the return type of size() to off_t for LFS accepted/tizen/unified/20170522.190730 submit/tizen/20170522.121243 tizen_4.0.m1_release
Sungbae Yoo [Mon, 22 May 2017 08:15:40 +0000 (17:15 +0900)]
Change the return type of size() to off_t for LFS

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
7 years agoCompile with 64bit file offset support 03/128103/7
Krzysztof Jackiewicz [Thu, 4 May 2017 06:35:24 +0000 (08:35 +0200)]
Compile with 64bit file offset support

Change-Id: I9d8f30ececd6c00338accb5029de711f83cdbea0

7 years agoReverting 7a861dd40cc6661d2085d44d402c801c79feaaf9 41/128541/2
Lukasz Pawelczyk [Wed, 10 May 2017 09:54:14 +0000 (11:54 +0200)]
Reverting 7a861dd40cc6661d2085d44d402c801c79feaaf9

Change-Id: Idea4b951f0ff4476252627b3c8abd8c166df078e

7 years agoMake the main version of the library a shared object (.so) 20/128120/6
Lukasz Pawelczyk [Fri, 5 May 2017 14:06:17 +0000 (16:06 +0200)]
Make the main version of the library a shared object (.so)

Additionally split into 2 packages:
- klay        - shared library
- klay-devel  - headers, pkg-config file and library for linking

Change-Id: Id1b704b46f99509f57017e1defc74fceda6187ec

7 years agoMerge "[SECIOTSW-530] Initialize a member of IPCTestSuite" into tizen accepted/tizen/unified/20170420.155408 submit/tizen/20170420.063314
Sungjun, Lee [Thu, 20 Apr 2017 06:26:24 +0000 (23:26 -0700)]
Merge "[SECIOTSW-530] Initialize a member of IPCTestSuite" into tizen

7 years agoMerge "[SECIOTSW-530] Initialize a member of rmi::CallbackHolder" into tizen
Sungjun, Lee [Thu, 20 Apr 2017 06:26:09 +0000 (23:26 -0700)]
Merge "[SECIOTSW-530] Initialize a member of rmi::CallbackHolder" into tizen

7 years ago[SECIOTSW-530] Catch exceptions of type 'runtime::Exception' in '~Client()' 74/125874/1
Sungjun, Lee [Wed, 19 Apr 2017 07:38:24 +0000 (16:38 +0900)]
[SECIOTSW-530] Catch exceptions of type 'runtime::Exception' in '~Client()'

Signed-off-by: Sungjun, Lee <sjun221.lee@samsung.com>
Change-Id: I8f52e3386e5a80675da0c83d682c9544f6c4a321
[WGID: 207329] '~Client()' doesn't catch exceptions of type 'runtime::Exception'

7 years ago[SECIOTSW-530] Initialize a member of IPCTestSuite 64/125864/1
Sungjun, Lee [Wed, 19 Apr 2017 06:34:01 +0000 (15:34 +0900)]
[SECIOTSW-530] Initialize a member of IPCTestSuite

Signed-off-by: Sungjun, Lee <sjun221.lee@samsung.com>
Change-Id: I54f01c0190a13f3956539744ef858e024892e601
[WGID: 20787] Following members aren't initialized: pid.

7 years ago[SECIOTSW-530] Initialize a member of rmi::CallbackHolder 42/125842/2
Sungjun, Lee [Wed, 19 Apr 2017 05:41:14 +0000 (14:41 +0900)]
[SECIOTSW-530] Initialize a member of rmi::CallbackHolder

Change-Id: I3fbf3c2ec78427b779dfcc80d51eb0df24ddc46d
Signed-off-by: Sungjun, Lee <sjun221.lee@samsung.com>
7 years agoUse std::forward instead of std::move in ThreadPool::submit 70/123770/1
Jaemin Ryu [Fri, 7 Apr 2017 02:31:01 +0000 (11:31 +0900)]
Use std::forward instead of std::move in ThreadPool::submit

Change-Id: Ibd789ae9721b6412e909217d043582bb8b69d39b
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoAdd requires to pkgconfig configuration 43/119943/2 accepted/tizen/unified/20170410.160246 submit/tizen/20170410.073400
sangwan.kwon [Mon, 20 Mar 2017 10:08:29 +0000 (19:08 +0900)]
Add requires to pkgconfig configuration

Change-Id: I5f1d63f27a0ed4b6a423cfa15697696ff5020f45
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd NDEBUG flag explicitly on release mode 54/119354/1
sangwan.kwon [Thu, 16 Mar 2017 11:42:53 +0000 (20:42 +0900)]
Add NDEBUG flag explicitly on release mode

Change-Id: Ied8b36bb9da43aefbf2ccf7977db389c3a4cf592
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen
Jaemin Ryu [Mon, 6 Mar 2017 01:07:28 +0000 (10:07 +0900)]
Merge branch 'tizen_3.0' into tizen

7 years agoAdd silent log level 63/117363/1 accepted/tizen/3.0/common/20170307.113044 accepted/tizen/3.0/ivi/20170306.220944 accepted/tizen/3.0/mobile/20170306.220902 accepted/tizen/3.0/tv/20170306.220914 accepted/tizen/3.0/wearable/20170306.220929 submit/tizen_3.0/20170306.013055
Jaemin Ryu [Mon, 6 Mar 2017 00:59:45 +0000 (09:59 +0900)]
Add silent log level

Change-Id: Id3ae0aac14b1ae709b0ad7f40f76503b5b31cd9f
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoResizing buffer implementation added. 62/117362/1
Pawel Wrobel [Fri, 3 Mar 2017 13:44:06 +0000 (14:44 +0100)]
Resizing buffer implementation added.

Buffer resize has been added when writing more then 4096 data.
Also Message::decode has been changed to allow proper deserialization.

Change-Id: Ic3bd6a711e7b8cc817b365dd055298828e049972

7 years agoAdd descriptor check before creating 29/115229/3
sangwan.kwon [Fri, 17 Feb 2017 03:54:52 +0000 (12:54 +0900)]
Add descriptor check before creating

Descriptor can be leaked when (open | create) called continuously.

Change-Id: If5be52386ab189ce16cfcfebbdd0d0fbeb49207f
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoMerge branch 'tizen' of ssh://review.tizen.org:29418/platform/core/security/klay... accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170220.144112 accepted/tizen/ivi/20170220.224259 accepted/tizen/mobile/20170220.224206 accepted/tizen/tv/20170220.224216 accepted/tizen/unified/20170309.033807 accepted/tizen/wearable/20170220.224235 submit/tizen/20170220.004424 submit/tizen_unified/20170308.100409
Jaemin Ryu [Sun, 19 Feb 2017 22:57:55 +0000 (07:57 +0900)]
Merge branch 'tizen' of ssh://review.tizen.org:29418/platform/core/security/klay into tizen

7 years agoAdd audit trail for remote method call 14/115414/1 accepted/tizen/3.0/common/20170220.130540 accepted/tizen/3.0/ivi/20170220.090248 accepted/tizen/3.0/mobile/20170220.090204 accepted/tizen/3.0/tv/20170220.090217 accepted/tizen/3.0/wearable/20170220.090231 submit/tizen_3.0/20170220.004439
Jaemin Ryu [Sun, 19 Feb 2017 22:52:39 +0000 (07:52 +0900)]
Add audit trail for remote method call

Change-Id: Ideb4f96f55b650e8adb2640355659cd50631f8ef
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen accepted/tizen/common/20170214.173820 accepted/tizen/ivi/20170215.085812 accepted/tizen/mobile/20170215.085657 accepted/tizen/tv/20170215.085733 accepted/tizen/wearable/20170215.085753 submit/tizen/20170214.101511
Sungbae Yoo [Wed, 8 Feb 2017 06:42:33 +0000 (15:42 +0900)]
Merge branch 'tizen_3.0' into tizen

7 years agoFix Serialize for custom types accepted/tizen/3.0/common/20170214.180309 accepted/tizen/3.0/ivi/20170213.225123 accepted/tizen/3.0/mobile/20170213.225048 accepted/tizen/3.0/tv/20170213.225059 accepted/tizen/3.0/wearable/20170213.225107 submit/tizen_3.0/20170209.042219 submit/tizen_3.0/20170213.041614
Zofia Abramowska [Tue, 24 Jan 2017 16:45:25 +0000 (17:45 +0100)]
Fix Serialize for custom types

visitInternal didn't take const reference to reflectable type

Change-Id: Ic8501ae93c502fc2a58f2f3c6cda2f6b6cc1bed8

7 years agoFix Serialize for custom types 03/111903/1
Zofia Abramowska [Tue, 24 Jan 2017 16:45:25 +0000 (17:45 +0100)]
Fix Serialize for custom types

visitInternal didn't take const reference to reflectable type

Change-Id: Ic8501ae93c502fc2a58f2f3c6cda2f6b6cc1bed8

7 years agoAdd dbus signal interface accepted/tizen/3.0/common/20170118.130733 accepted/tizen/3.0/ivi/20170118.042541 accepted/tizen/3.0/mobile/20170118.042448 accepted/tizen/3.0/tv/20170118.042514 accepted/tizen/3.0/wearable/20170118.042528 accepted/tizen/common/20170119.171830 accepted/tizen/ivi/20170119.222513 accepted/tizen/mobile/20170119.222434 accepted/tizen/tv/20170119.222449 accepted/tizen/wearable/20170119.222456 submit/tizen/20170119.051926 submit/tizen_3.0/20170113.092432 submit/tizen_3.0/20170115.225845
Jaemin Ryu [Fri, 13 Jan 2017 09:15:29 +0000 (18:15 +0900)]
Add dbus signal interface

Change-Id: I01b4ebde3c634b9680fd544e6e729676e7570faf
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoAdd default privilege checker 62/109762/2
Sungbae Yoo [Wed, 11 Jan 2017 09:38:21 +0000 (18:38 +0900)]
Add default privilege checker

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: Iad61cc4c41fde54e0ba7e7a04014fb609980c970

7 years agoFix missing library linking (pthread) 38/107138/1 accepted/tizen/common/20161229.140159 accepted/tizen/ivi/20161229.113619 accepted/tizen/mobile/20161229.113608 accepted/tizen/tv/20161229.113612 accepted/tizen/wearable/20161229.113616 submit/tizen/20161229.045846
Seok Hong [Tue, 27 Dec 2016 01:41:20 +0000 (10:41 +0900)]
Fix missing library linking (pthread)

Change-Id: I186c998d61450ceaa91864a86b39ecb2c08818bf
Signed-off-by: Seok Hong <seok85.hong@samsung.com>
7 years agoChange readdir_r to readdir for gcc62 58/107058/1
Sungbae Yoo [Mon, 26 Dec 2016 09:15:30 +0000 (18:15 +0900)]
Change readdir_r to readdir for gcc62

readdir_r is deprecated in gcc62.

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: Ibd0090d4939f0ae4077ef2c292d6495fd6ea5b4e

7 years agoAdd expose interface for unified method registeration 08/103708/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141528 accepted/tizen/3.0.m2/tv/20170104.142044 accepted/tizen/3.0.m2/wearable/20170104.142337 accepted/tizen/3.0/common/20161221.180346 accepted/tizen/3.0/ivi/20161221.005008 accepted/tizen/3.0/mobile/20161221.005057 accepted/tizen/3.0/tv/20161221.004744 accepted/tizen/3.0/wearable/20161221.004848 accepted/tizen/common/20161219.152224 accepted/tizen/ivi/20161219.225514 accepted/tizen/mobile/20161219.225424 accepted/tizen/tv/20161219.225437 accepted/tizen/wearable/20161219.225455 submit/tizen/20161219.072944 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161219.020755
Jaemin Ryu [Fri, 9 Dec 2016 07:30:53 +0000 (16:30 +0900)]
Add expose interface for unified method registeration

This interface will replace old registerParametricMethod/NonparametricMethod
interfaces.

Usage:
service->expose(target object, permission, (type)(function)(parameter packs))

Change-Id: Ie1cd90aa9233c659dbcad7d03a1c3887545b285d
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoEnhance VAR_ARGS_SIZE to be aware of empty __VA_ARGS__ 07/103707/2
Jaemin Ryu [Fri, 9 Dec 2016 07:27:46 +0000 (16:27 +0900)]
Enhance VAR_ARGS_SIZE to be aware of empty __VA_ARGS__

Change-Id: I1c08f8ddf36131290447ec072ea591e488077a1e
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoAdd support of object registration to dbus 40/103440/7
Sungbae Yoo [Thu, 8 Dec 2016 09:09:32 +0000 (18:09 +0900)]
Add support of object registration to dbus

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: Ifc2c1260d5b7fe2cdccab4a41701fc03cc6328ba
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoAdd latch: barrier for ordering exeucution 00/105500/1
Jaemin Ryu [Sun, 18 Dec 2016 03:29:16 +0000 (12:29 +0900)]
Add latch: barrier for ordering exeucution

Change-Id: I6994358f2a548e595ae21c1874d1f3abc3a6fa91
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoFix data install path 99/105499/1
Jaemin Ryu [Tue, 15 Nov 2016 09:06:55 +0000 (18:06 +0900)]
Fix data install path

Change-Id: Idb5ebef60dde58314bc2e604c4f1e1fc15657292
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoAdd fileuser 69/100069/10 accepted/tizen/3.0/common/20161206.125240 accepted/tizen/3.0/ivi/20161205.234426 accepted/tizen/3.0/mobile/20161205.234226 accepted/tizen/3.0/tv/20161205.234332 accepted/tizen/3.0/wearable/20161205.234358 accepted/tizen/common/20161205.135938 accepted/tizen/ivi/20161205.233345 accepted/tizen/mobile/20161205.233250 accepted/tizen/tv/20161205.233310 accepted/tizen/wearable/20161205.233326 submit/tizen/20161205.071623 submit/tizen_3.0/20161205.022357 submit/tizen_3.0/20161205.022817 submit/tizen_3.0/20161205.071532
seolheui,kim [Fri, 25 Nov 2016 05:18:12 +0000 (14:18 +0900)]
Add fileuser

Change-Id: I8094360a56acb3082b4de876469ddedaa37c65cd
Signed-off-by: seolheui,kim <s414.kim@samsung.com>
7 years agoAdd getting inode and device number function in filesystem 54/100354/3
Sungbae Yoo [Fri, 25 Nov 2016 06:34:51 +0000 (15:34 +0900)]
Add getting inode and device number function in filesystem

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I6b42941cf9e610168f6ba46a083b316d924640a2

7 years agoRemove Profile Build Dependency (trivial) 87/98387/1
MyungJoo Ham [Thu, 17 Nov 2016 07:01:34 +0000 (16:01 +0900)]
Remove Profile Build Dependency (trivial)

1. This is for Tizen 4.0.
   (For 4.0 Configurability / Building Blocks, we are going to
   prohibit "profile" macro in public build soon.)

klay$ grep -r "TIZEN_PROFILE_NAME" *
packaging/klay.spec:         -DTIZEN_PROFILE_NAME=%{profile} \
klay$

  Thus, this profile macro usage has been useless. Remove it.

Change-Id: Ib600b37fad8dd6cb022a5f8615fed7d7abb54923
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoAdd lseek for filesystem 87/96787/3 accepted/tizen/3.0/common/20161116.143239 accepted/tizen/3.0/ivi/20161116.021100 accepted/tizen/3.0/mobile/20161116.021004 accepted/tizen/3.0/tv/20161116.021018 accepted/tizen/3.0/wearable/20161116.021039 accepted/tizen/common/20161114.171517 accepted/tizen/ivi/20161114.074213 accepted/tizen/ivi/20161114.074736 accepted/tizen/mobile/20161114.074117 accepted/tizen/mobile/20161114.074642 accepted/tizen/tv/20161114.074126 accepted/tizen/tv/20161114.074701 accepted/tizen/wearable/20161114.074154 accepted/tizen/wearable/20161114.074720 submit/tizen/20161114.035936 submit/tizen/20161114.045524 submit/tizen_3.0/20161114.035945 submit/tizen_3.0/20161114.045617 submit/tizen_3.0/20161115.020653
Seok Hong [Thu, 10 Nov 2016 07:38:39 +0000 (16:38 +0900)]
Add lseek for filesystem

Change-Id: I46251f11892788bde41fdc57ba88bc331fee3cd1
Signed-off-by: Seok Hong <seok85.hong@samsung.com>
7 years agoAdd dlog backend to logger system 25/93725/6
sangwan.kwon [Tue, 25 Oct 2016 11:37:24 +0000 (20:37 +0900)]
Add dlog backend to logger system

Change-Id: I5412fe14dcbb7a89ed28c7c68faed930f16de08c
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
8 years agoFix improper EINTR handling 15/88415/1 accepted/tizen/3.0/common/20161114.110005 accepted/tizen/3.0/ivi/20161011.044321 accepted/tizen/3.0/mobile/20161015.033457 accepted/tizen/3.0/tv/20161016.004613 accepted/tizen/3.0/wearable/20161015.083223 accepted/tizen/common/20160920.131715 accepted/tizen/ivi/20160920.051123 accepted/tizen/mobile/20160920.051022 accepted/tizen/tv/20160920.051039 accepted/tizen/wearable/20160920.051102 submit/tizen/20160916.180719 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000003 submit/tizen_3.0_mobile/20161015.000003 submit/tizen_3.0_tv/20161015.000002 submit/tizen_3.0_wearable/20161015.000003
Jaemin Ryu [Mon, 19 Sep 2016 01:26:17 +0000 (10:26 +0900)]
Fix improper EINTR handling

Change-Id: Iaa76eb63cbc6f2e47da7eca11944420035ec9b20
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
8 years agoMove from device-policy-manager git 16/80616/3 accepted/tizen/common/20160803.193348 accepted/tizen/common/20160809.184153 accepted/tizen/ivi/20160809.232922 accepted/tizen/mobile/20160809.233017 accepted/tizen/tv/20160809.232832 accepted/tizen/wearable/20160809.232948 submit/tizen/20160803.111144 submit/tizen/20160809.071233
Sungbae Yoo [Tue, 19 Jul 2016 07:03:01 +0000 (16:03 +0900)]
Move from device-policy-manager git

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
Change-Id: I47a7b10f2ff22135256067adec5346ae4a40bd27

8 years agoInitial empty repository master
Jong Jeong Kim [Tue, 19 Jul 2016 05:26:02 +0000 (22:26 -0700)]
Initial empty repository