platform/core/security/klay.git
7 months agoFix source of calling g_string_free for glib 2.78.4 47/307347/1 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x tizen accepted/tizen/unified/20240322.174332 accepted/tizen/unified/dev/20240620.005628 accepted/tizen/unified/x/20240326.073343
JinWang An [Thu, 7 Mar 2024 09:39:51 +0000 (18:39 +0900)]
Fix source of calling g_string_free for glib 2.78.4

Change-Id: If67035707f94bfa55f530bf0f4f1bb299577da6f
Signed-off-by: JinWang An <jinwang.an@samsung.com>
15 months agoFix coverity issue for auto_causes_copy 59/295959/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.093643 accepted/tizen/unified/20230719.102849 tizen_8.0_m2_release
Dongsun Lee [Tue, 18 Jul 2023 01:00:47 +0000 (10:00 +0900)]
Fix coverity issue for auto_causes_copy

Change-Id: I8176a7014f6a260826c1aee095bd0e8b2086fd2b

15 months agoFix build error 94/295094/1 accepted/tizen/unified/20230712.040736 accepted/tizen/unified/dev/20230726.115525
yeji01.kim [Mon, 3 Jul 2023 02:07:02 +0000 (11:07 +0900)]
Fix build error

Change-Id: I45e224bd4f8bcb9323acb9fb853dea5fb0acbe36

20 months agoFix static analysis 82/287682/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20230203.164200 accepted/tizen/unified/20230206.093843 accepted/tizen/unified/20230206.093958
Tomasz Swierczek [Thu, 2 Feb 2023 07:36:38 +0000 (08:36 +0100)]
Fix static analysis

Use after move in one place.

Change-Id: I57990f01a3be293d72c91d4ae4056f1ba24ae07f

3 years agoFix coverity issue 08/260208/2 accepted/tizen_6.5_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.120927 accepted/tizen/7.0/unified/20221110.055920 accepted/tizen/7.0/unified/hotfix/20221116.105612 accepted/tizen/unified/20210623.125306 submit/tizen/20210622.102204 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release tizen_7.0_m2_release
yeji01.kim [Tue, 22 Jun 2021 04:42:20 +0000 (13:42 +0900)]
Fix coverity issue

Change-Id: I87ba62caeab517e9cca514bc8116f97808c3deea
Signed-off-by: yeji01.kim <yeji01.kim@samsung.com>
3 years agoChange systemd-devel package name 83/252883/1 accepted/tizen/unified/20210210.130318 submit/tizen/20210209.100913
INSUN PYO [Wed, 3 Feb 2021 03:53:44 +0000 (12:53 +0900)]
Change systemd-devel package name

Change-Id: I42c6af10c450e250a9e6023d66f181f0771ea7a5

4 years agoPrevent integer overflow while reading netlink message 34/223934/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.115147 accepted/tizen/6.0/unified/hotfix/20201103.002918 accepted/tizen/unified/20200217.213714 submit/tizen/20200212.014429 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
Sangwan Kwon [Wed, 5 Feb 2020 06:12:56 +0000 (15:12 +0900)]
Prevent integer overflow while reading netlink message

Change-Id: Icc8430bb6090b71620650b9886478ba645a67b64
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoUpgrade version to 0.0.2 59/222159/2 accepted/tizen/unified/20200113.130625 submit/tizen/20200110.050843
Sangwan Kwon [Fri, 10 Jan 2020 04:45:45 +0000 (13:45 +0900)]
Upgrade version to 0.0.2

* Bump to gcc9

Change-Id: I5d0fa03b581feaf8695bf0308705a76853f8379c
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years agoFix stringop-truncation warning 58/222158/2
Sangwan Kwon [Fri, 10 Jan 2020 04:32:33 +0000 (13:32 +0900)]
Fix stringop-truncation warning

Pathname sockets: The pathname in sun_path should be null-terminated.
ref: http://man7.org/linux/man-pages/man7/unix.7.html

Change-Id: I5d2f64639a598d9d5c991e928a4e43ab16d36088
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
4 years ago[Tizen 6.0] Enable build with updated glibc 75/221675/1 accepted/tizen/unified/20200108.131646 submit/tizen/20200107.053941
Mikhail Kashkarov [Fri, 13 Dec 2019 07:04:53 +0000 (10:04 +0300)]
[Tizen 6.0] Enable build with updated glibc

Since glibc 2.27 this header is required.

file-user.cpp:60:12: error: 'major' was not declared in this scope
   60 |   devMaj = major(dev);
      |            ^~~~~

Change-Id: I11a8b84c94ea20fef2060df2681f80407730c2bb
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoAdd explicit dependency to glib 78/215878/1
Sangwan Kwon [Thu, 17 Oct 2019 06:11:52 +0000 (15:11 +0900)]
Add explicit dependency to glib

Devel package exposes glib's header

Change-Id: Iea16963ccb82a5ab5282acdc722fe59e74a8dc18
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoAdd map type to serializer 37/215737/1
Sangwan Kwon [Tue, 15 Oct 2019 06:49:23 +0000 (15:49 +0900)]
Add map type to serializer

Change-Id: I46466b05f5409980a959f5c2a094c14ee2de9030
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoFix dereferencing null pointer bug 21/213021/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.021728 accepted/tizen/5.5/unified/mobile/hotfix/20201027.085832 accepted/tizen/5.5/unified/wearable/hotfix/20201027.112507 accepted/tizen/unified/20190902.055317 submit/tizen/20190829.085256 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
Sangwan Kwon [Thu, 29 Aug 2019 08:39:17 +0000 (17:39 +0900)]
Fix dereferencing null pointer bug

Change-Id: I6d4dd1110af4babb881578aa2368974d3da1b911
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoFix undefined behavior on rmi 20/210920/2 accepted/tizen/unified/20190729.081019 submit/tizen/20190729.011435
Sangwan Kwon [Thu, 25 Jul 2019 21:11:00 +0000 (06:11 +0900)]
Fix undefined behavior on rmi

Change-Id: I4a4471e9c42ecbbd98b7a7a4c1664be8a226e66c
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
5 years agoAdd command line parser on Testbench 16/200216/2 accepted/tizen/unified/20190502.051441 submit/tizen/20190430.085417
sangwan.kwon [Wed, 20 Feb 2019 07:23:36 +0000 (16:23 +0900)]
Add command line parser on Testbench

$ klay-test --help

Usage: klay-test [Option]

Options :
   -a, --run-all               run all TESTCASES
   -r, --run=[TESTCASE]        run TESTCASE
   -l, --list                  list TESTCASES
   -h, --help                  show this

Change-Id: I6591550dba254d833165c63ffc85178db1b9da99
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoRefactoring testbench 97/200197/3
sangwan.kwon [Wed, 20 Feb 2019 04:22:34 +0000 (13:22 +0900)]
Refactoring testbench

- TestSuite is a set of TestCase.
- TESTCASE macro generates TestCase object.

Change-Id: I219ead013b3116611cf88ebee464ce095cbe45d9
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoRemove krate-specific classes accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20190304.054825 accepted/tizen/unified/20190307.230755 submit/tizen/20190219.012108 submit/tizen/20190221.021641 submit/tizen/20190222.075321 submit/tizen/20190225.022013 submit/tizen_5.0/20190219.021259 submit/tizen_5.0/20190221.022353 submit/tizen_5.0/20190222.075859
Sungbae Yoo [Wed, 16 Jan 2019 04:27:08 +0000 (13:27 +0900)]
Remove krate-specific classes

It removes several classes such as PAM, Cgroup, Namespace, xml.

Change-Id: I359f00587a0df7e1c6499cd61d522b96c38bbbc9
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
5 years agoAdd testcases on Exception class
sangwan.kwon [Thu, 3 Jan 2019 02:31:18 +0000 (11:31 +0900)]
Add testcases on Exception class

- Fix typo (Out og range -> Out of range)

Change-Id: I1d2fdce9efba5652d5b9f8809fc2796dac1e7c1c
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoReplace namespace name to klay
Jaemin Ryu [Wed, 2 Jan 2019 02:09:59 +0000 (11:09 +0900)]
Replace namespace name to klay

Change-Id: I3db4e497a20b729883c01bc0272f420473c199da
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
5 years agoAdd create(int flags, mode_t mode) to File class
Jaemin Ryu [Wed, 2 Jan 2019 01:44:18 +0000 (10:44 +0900)]
Add create(int flags, mode_t mode) to File class

Change-Id: Ie01c1d7861d29220762c4df7aea8fffca533d283
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
5 years agoRename query-builder class clearly
sangwan.kwon [Tue, 18 Dec 2018 05:35:01 +0000 (14:35 +0900)]
Rename query-builder class clearly

Change-Id: I62d380511084c8dca48063128b39c00cb369c639
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoAdd namespace alias
Jaemin Ryu [Fri, 14 Dec 2018 01:37:25 +0000 (10:37 +0900)]
Add namespace alias

Change-Id: I54e8bc7783cd6a4fa35018e8657be3b02204be67
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
5 years agoChange return type to reference on query-builder
sangwan.kwon [Fri, 30 Nov 2018 04:32:47 +0000 (13:32 +0900)]
Change return type to reference on query-builder

- Database, Table should be returned by reference for recursive call

Change-Id: Ia97f32e260dc16855ef14a9661d623945c77e505
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoAdjust move-semantic to query-builder
sangwan.kwon [Wed, 31 Oct 2018 05:57:56 +0000 (14:57 +0900)]
Adjust move-semantic to query-builder

- Do not pass large-size structure by value
- Rename table::find to table::compare

Change-Id: I65af36f71a3d90267b906c5cc833e0662ec08c0f
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoAdd gitignore file
sangwan.kwon [Wed, 31 Oct 2018 06:00:50 +0000 (15:00 +0900)]
Add gitignore file

Change-Id: Ia243d75769ad177a81a64ba47f67901b97ecaa47
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoFix error handling for missing ack error from netlink
seolheui kim [Mon, 4 Jun 2018 09:32:28 +0000 (18:32 +0900)]
Fix error handling for missing ack error from netlink

Change-Id: I4430a451ba15877c16944e3dcca0bf4b91bfe83c
Signed-off-by: seolheui kim <s414.kim@samsung.com>
5 years agoFix service and mainloop prepare logic
seolheui kim [Thu, 22 Mar 2018 02:13:22 +0000 (11:13 +0900)]
Fix service and mainloop prepare logic

Change-Id: Iea76c91e992e28271e36b015a0e3c453c157e4ea
Signed-off-by: seolheui kim <s414.kim@samsung.com>
5 years agoAdd parsing netlink message header in netlink
Sungbae Yoo [Wed, 14 Mar 2018 08:48:01 +0000 (17:48 +0900)]
Add parsing netlink message header in netlink

This was moved from audit-trail by single resposibility principle.

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

5 years agoRefine testbench for reporting elapsed time
sangwan.kwon [Thu, 1 Feb 2018 04:53:07 +0000 (13:53 +0900)]
Refine testbench for reporting elapsed time

- Report elasped time.
- Run every testcase even failed.
- Colorize test result.

Change-Id: I156ceefff81fe76d11d61013d1b73efb9068d774
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoAdd delimiter among columns on query-builder
sangwan.kwon [Tue, 30 Jan 2018 11:55:33 +0000 (20:55 +0900)]
Add delimiter among columns on query-builder

Change-Id: Ieef134d63f16b54e7090a2a6ddd98f5684d272b1
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoAdd join operation on query-builder
sangwan.kwon [Wed, 24 Jan 2018 06:44:25 +0000 (15:44 +0900)]
Add join operation on query-builder

- Support "INNER(default), OUTER(three types), CROSS" join clause.

Change-Id: I874b965e36d712d48501ba90a3a7ef2c4cefd6dc
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoAdd database operations on query-builder
sangwan.kwon [Tue, 23 Jan 2018 06:24:38 +0000 (15:24 +0900)]
Add database operations on query-builder

- Support multi-table select clause.

Change-Id: Icb745e3be28b7379aae351c4896175307993d82e
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoAdd type-check-logic on query expression
sangwan.kwon [Mon, 22 Jan 2018 08:04:40 +0000 (17:04 +0900)]
Add type-check-logic on query expression

Change-Id: I5b51c4e69f1b28a8940d59d187ffdc19f7403376
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoFix a bug that getProcessList returns garbage when cgroup is empty
Sungbae Yoo [Tue, 27 Feb 2018 04:49:11 +0000 (13:49 +0900)]
Fix a bug that getProcessList returns garbage when cgroup is empty

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

5 years agoAdd testcases about query-builder
sangwan.kwon [Thu, 18 Jan 2018 07:24:42 +0000 (16:24 +0900)]
Add testcases about query-builder

Change-Id: Ia93a3509e3def9a3059d99079fc2c688fd807dc5
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
5 years agoFix coverity accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20181226.234119 submit/tizen_4.0/20181221.021633
yeji01.kim [Fri, 23 Mar 2018 05:42:05 +0000 (14:42 +0900)]
Fix coverity

- Add check return
- Add exception handling

Change-Id: I7e2d58e7c5175846d6bf22837af6aba96737c3af
Signed-off-by: yeji01.kim <yeji01.kim@samsung.com>
5 years agoFix service and mainloop prepare logic 02/194602/2 accepted/tizen/4.0/unified/20181207.174720 submit/tizen_4.0/20181206.072604
yeji kim [Thu, 6 Dec 2018 06:35:04 +0000 (15:35 +0900)]
Fix service and mainloop prepare logic

Change-Id: I95a8f0a6dae43730c4cef3bf6d32ede6c63c8329
Signed-off-by: yeji kim <yeji01.kim@samsung.com>
6 years agoEnable RTTI for custom exception 89/189489/1 submit/tizen_4.0/20180919.014243
sangwan.kwon [Mon, 17 Sep 2018 05:03:23 +0000 (14:03 +0900)]
Enable RTTI for custom exception

Change-Id: Ia9903d860845075c08d50278ca3244c5eb927b3f
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoAdd static library for who don't want a lot of dependecies 39/183039/2 accepted/tizen/4.0/unified/20180702.105558 submit/tizen_4.0/20180702.042309
Sungbae Yoo [Mon, 2 Jul 2018 02:30:52 +0000 (11:30 +0900)]
Add static library for who don't want a lot of dependecies

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

6 years agoHandle unexpected exception during method call 51/182451/1 accepted/tizen/4.0/unified/20180625.200530 submit/tizen_4.0/20180625.090547 submit/tizen_4.0/20180625.090659 submit/tizen_4.0/20180625.091103 submit/tizen_4.0/20180625.091545
Jaemin Ryu [Mon, 25 Jun 2018 08:21:40 +0000 (17:21 +0900)]
Handle unexpected exception during method call

Change-Id: Ie86a2df3e5f1570933934d09a867e1925a1cb6d0
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
6 years agoEnable sevice stop 28/167428/4 tizen_4.0_tv accepted/tizen/4.0/unified/20180130.042109 submit/tizen_4.0/20180122.110227
seolheui kim [Wed, 17 Jan 2018 13:04:08 +0000 (22:04 +0900)]
Enable sevice stop

Change-Id: Ibe5a5d542b574d4255dfb09df6a4cc7e6cbf69ff
Signed-off-by: seolheui kim <s414.kim@samsung.com>
6 years agoFix where expression bug on query-builder 51/167551/2
sangwan.kwon [Thu, 18 Jan 2018 07:08:26 +0000 (16:08 +0900)]
Fix where expression bug on query-builder

Change-Id: I6561afc5dabd90a0eed190ce08c9cf1dfd666125
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoRemove trailing spaces on query-builder result 47/167547/2
sangwan.kwon [Thu, 18 Jan 2018 06:55:11 +0000 (15:55 +0900)]
Remove trailing spaces on query-builder result

Change-Id: I8eed182a46f77c28821679eff87f498011523d2d
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoUnify query-builder headers to db/query-builder.h 46/167546/2
sangwan.kwon [Thu, 18 Jan 2018 06:44:58 +0000 (15:44 +0900)]
Unify query-builder headers to db/query-builder.h

Change-Id: Ied554c603c48d285e4511655adc42364940b6eb4
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoSupport DISTINCT constraint on select clause 11/167211/2
sangwan.kwon [Tue, 16 Jan 2018 07:22:42 +0000 (16:22 +0900)]
Support DISTINCT constraint on select clause

Change-Id: I562cd17bf2b6a1f8be7f66ce0678214735224c6b
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoAdd INSERT, UPDATE, DELETE operation on query builder 94/167194/3
sangwan.kwon [Tue, 16 Jan 2018 06:13:07 +0000 (15:13 +0900)]
Add INSERT, UPDATE, DELETE operation on query builder

Change-Id: I2f50b5620cbfe242a1860257778ea874fc71c290
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoSupport AND, OR conditions on where clause 53/167053/4
sangwan.kwon [Mon, 15 Jan 2018 06:51:42 +0000 (15:51 +0900)]
Support AND, OR conditions on where clause

Change-Id: I0adc9d253389e64a4cc8679684793df444746343
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoDraft query-builder 81/166681/7
sangwan.kwon [Thu, 11 Jan 2018 10:50:48 +0000 (19:50 +0900)]
Draft query-builder

- Capture member pointer of struct. (column.hxx)
- Bind columns as table structure. (table.hxx)

- Generate select query by using Table::select(), Table::selectAll().
- Generate single where expression.

Change-Id: I929cf5d0d98f97fcb78e88162bafe9e3b955e1bb
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoRun ScopedGmainloop in thread context 51/167151/11
Jaemin Ryu [Tue, 16 Jan 2018 01:03:16 +0000 (10:03 +0900)]
Run ScopedGmainloop in thread context

Change-Id: I584e1aab03861790a5339d43d0b6b19bc949e1a1
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoAdd RemoteMethod for remote method call 70/163770/4 accepted/tizen/4.0/unified/20180111.051159 submit/tizen/20180109.085832 submit/tizen/20180110.012731 submit/tizen_4.0/20180109.085933 tizen_4.0.IoT.p2_release
Jaemin Ryu [Wed, 13 Dec 2017 09:16:35 +0000 (18:16 +0900)]
Add RemoteMethod for remote method call

Change-Id: I9899d839351204aa96ad4e63955778e6a93076b0
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
6 years agoMove classes for audit subsystem to audit-trail git 39/163139/4
Sungbae Yoo [Thu, 7 Dec 2017 10:46:56 +0000 (19:46 +0900)]
Move classes for audit subsystem to audit-trail git

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

6 years agoMainloop: Add variable initialization to run() 79/163579/1
yeji01.kim [Tue, 12 Dec 2017 06:58:13 +0000 (15:58 +0900)]
Mainloop: Add variable initialization to run()

Change-Id: Ib19ddc2d665fab2754dd52db8b7524b7e2576e3d
Signed-off-by: yeji01.kim <yeji01.kim@samsung.com>
6 years agoAdd exception handler for regex_error 92/162492/2 accepted/tizen/4.0/unified/20171207.070735 accepted/tizen/unified/20171206.115938 submit/tizen/20171206.014519 submit/tizen_4.0/20171206.014509 submit/tizen_4.0/20171206.042433
Sungbae Yoo [Mon, 4 Dec 2017 02:52:38 +0000 (11:52 +0900)]
Add exception handler for regex_error

This commit is to resolve the SVACE issue

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

6 years agoChange static variables for cgroup pattern matching to be local 09/161809/3 accepted/tizen/unified/20171130.063318 submit/tizen/20171129.063304 submit/tizen_4.0/20171129.062733
Sungbae Yoo [Mon, 27 Nov 2017 12:36:04 +0000 (21:36 +0900)]
Change static variables for cgroup pattern matching to be local

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

6 years agoAdd database integrity check 12/161712/2
Jaemin Ryu [Mon, 27 Nov 2017 05:55:11 +0000 (14:55 +0900)]
Add database integrity check

Change-Id: Ifa3a20b029327828a5ba53b46e7ba00305570a62
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
6 years agoChange default fvisibility to hidden 44/161744/3
Sungbae Yoo [Mon, 27 Nov 2017 08:23:42 +0000 (17:23 +0900)]
Change default fvisibility to hidden

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

6 years agoFix misuse of mode_t
sangwan.kwon [Fri, 3 Nov 2017 06:55:57 +0000 (15:55 +0900)]
Fix misuse of mode_t

Change-Id: I732eb1994b7326761de18e3dd6399611153c3029
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
6 years agoAdd common exception handling 64/155764/7
Jaemin Ryu [Mon, 16 Oct 2017 05:55:25 +0000 (14:55 +0900)]
Add common exception handling

Change-Id: I4a444fc90086fedc82fdf3afb34eba1d440ccdd0
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoRestore SignalCallback type for backward compatability 10/156610/1 accepted/tizen/unified/20171025.075114 submit/tizen/20171024.072441
sangwan.kwon [Thu, 19 Oct 2017 06:15:37 +0000 (15:15 +0900)]
Restore SignalCallback type for backward compatability

Change-Id: Ief27d11c0a813e33c4bea90c886196054a33ba73
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd high-level dbus signal class 91/152691/7 submit/tizen/20171019.011823
sangwan.kwon [Mon, 25 Sep 2017 09:10:08 +0000 (05:10 -0400)]
Add high-level dbus signal class

Change-Id: Ib7247c440a331607f57bac4ab795e2efe52861cd
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd GDBus introspection class 02/151502/2
sangwan.kwon [Mon, 4 Sep 2017 09:18:50 +0000 (05:18 -0400)]
Add GDBus introspection class

Change-Id: Icdf25b14552cbf37e414596e54863cde7d7d5d15
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
7 years agoAdd a license file 66/152566/1 accepted/tizen/4.0/unified/20170927.045725 accepted/tizen/unified/20170927.063313 submit/tizen/20170926.103835 submit/tizen_4.0/20170926.103841 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
Sungbae Yoo [Tue, 26 Sep 2017 10:18:08 +0000 (19:18 +0900)]
Add a license file

Change-Id: Iecb9da9b33cfa3f5f6835eeed2ac70a19ffd7ac2
Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
7 years agoCoding rules : Remove unnecessary blank line 61/152361/1
Sungbae Yoo [Tue, 26 Sep 2017 02:28:17 +0000 (11:28 +0900)]
Coding rules : Remove unnecessary blank line

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

7 years agoAdd manifest with _ label 84/147484/1
Lukasz Pawelczyk [Mon, 4 Sep 2017 11:53:10 +0000 (13:53 +0200)]
Add manifest with _ label

Change-Id: I03d781f8625727135c6b3f08fca8515fdbcc3da8

7 years agoMerge changes I1a27526b,I8af6a3b5,I6e4bca44 into tizen accepted/tizen/4.0/unified/20170906.143535 accepted/tizen/unified/20170828.164809 submit/tizen/20170828.072251 submit/tizen_4.0/20170906.013357
Jaemin Ryu [Mon, 28 Aug 2017 00:10:42 +0000 (00:10 +0000)]
Merge changes I1a27526b,I8af6a3b5,I6e4bca44 into tizen

* changes:
  Support socket activation
  Remove gmainloop support from Mainloop
  Make the main version of the library a shared object (.so)

7 years agoSupport socket activation 45/145345/1
Jaemin Ryu [Tue, 22 Aug 2017 05:55:51 +0000 (14:55 +0900)]
Support socket activation

Change-Id: I1a27526ba58a48cc2c2eeb879d74df5de5b1695c
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoRemove gmainloop support from Mainloop 40/145340/1
Jaemin Ryu [Tue, 22 Aug 2017 05:51:53 +0000 (14:51 +0900)]
Remove gmainloop support from Mainloop

Change-Id: I8af6a3b5b0149c6af53f9b7c6b2b639a3aaa8496
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoMake the main version of the library a shared object (.so) 07/145307/2
Jaemin Ryu [Tue, 22 Aug 2017 05:06:42 +0000 (14:06 +0900)]
Make the main version of the library a shared object (.so)

This applies reverted commit 7a861dd40cc6661d2085d44d402c801c79feaaf9

>> Author: Lukasz Pawelczyk <l.pawelczyk@samsung.com>
>> Date:   Fri May 5 16:06:17 2017 +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: I6e4bca44bd07f38db86a4071077ab9097d072792

7 years agoMerge "Remove const from dbus::Connection::methodcall()" into tizen accepted/tizen/4.0/unified/20170829.015857 accepted/tizen/unified/20170821.051215 submit/tizen/20170818.072322 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
Jaemin Ryu [Wed, 16 Aug 2017 08:06:48 +0000 (08:06 +0000)]
Merge "Remove const from dbus::Connection::methodcall()" into tizen

7 years agoMerge changes I8d52a236,Icdc068fc into tizen submit/tizen/20170817.045900
Jaemin Ryu [Wed, 16 Aug 2017 04:22:49 +0000 (04:22 +0000)]
Merge changes I8d52a236,Icdc068fc into tizen

* changes:
  Allow subclassing of rmi::Client and rmi::Service
  Add scoped gmainloop

7 years agoAllow subclassing of rmi::Client and rmi::Service 59/143759/1
Jaemin Ryu [Fri, 11 Aug 2017 07:15:11 +0000 (16:15 +0900)]
Allow subclassing of rmi::Client and rmi::Service

Change-Id: I8d52a236bfffe7f0d4e15af9729bf934e8d317b3
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoAdd scoped gmainloop 58/143758/1
Jaemin Ryu [Fri, 11 Aug 2017 07:03:45 +0000 (16:03 +0900)]
Add scoped gmainloop

Change-Id: Icdc068fcb9d5d7579073bdced59c8fd45caf4ee7
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
7 years agoRemove unnecessary logging in file-user 17/141017/1 submit/tizen/20170816.100224 submit/tizen/20170822.052357
Sungbae Yoo [Thu, 27 Jul 2017 13:04:35 +0000 (22:04 +0900)]
Remove unnecessary logging in file-user

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

7 years agoChange file-user APIs for klay change that uses lstat 51/140951/3 accepted/tizen/4.0/unified/20170816.010413 accepted/tizen/unified/20170728.195539 submit/tizen/20170727.084517 submit/tizen_4.0/20170811.094300
Sungbae Yoo [Thu, 27 Jul 2017 08:07:19 +0000 (17:07 +0900)]
Change file-user APIs for klay change that uses lstat

Refer to commit d866a7170f87d406d8c9bc3722d9db08d54d7c17.

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

7 years agoFix a bug by that readlink returns not the null-terminated 52/140952/3
Sungbae Yoo [Thu, 27 Jul 2017 08:09:27 +0000 (17:09 +0900)]
Fix a bug by that readlink returns not the null-terminated

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

7 years agoAdd readlink method in filesystem API 88/140888/1
Sungbae Yoo [Thu, 27 Jul 2017 05:15:21 +0000 (14:15 +0900)]
Add readlink method in filesystem API

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

7 years agoChange type of credential access methods to static 33/139733/1 submit/tizen/20170724.061427 submit/tizen/20170724.094119
Jaemin Ryu [Thu, 20 Jul 2017 08:07:36 +0000 (17:07 +0900)]
Change type of credential access methods to static

With this commit, IPC handler can access peer credentials with out
rmi::Service instance.

Note: Peer credentials are maintained in static thread local storage.

Change-Id: Iec7ff64297180c86a4f7eb118b160b6e53740c2c
Signed-off-by: Jaemin Ryu <jm77.ryu@samsung.com>
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 agoRemove const from dbus::Connection::methodcall() 78/129878/3
Krzysztof Jackiewicz [Thu, 18 May 2017 08:20:08 +0000 (10:20 +0200)]
Remove const from dbus::Connection::methodcall()

const Variant in return value disables the use of Variant's move constructor
so the only way to get it is by const Variant& which is not always preferred
option.

Change-Id: If6ac46e486444f69c946920ee6fa31fed100d134

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>