platform/core/appfw/app2sd.git
13 months agoRelease version 0.7.26 14/299114/1 accepted/tizen/unified/20230920.161452
ilho kim [Wed, 20 Sep 2023 04:14:11 +0000 (13:14 +0900)]
Release version 0.7.26

Changes:
 - Get the random value from /dev/urandom

Change-Id: I90f23f653a5586665c12c54983f85f2b4d19bf23
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
13 months agoGet the random value from /dev/urandom 13/299113/2
ilho kim [Wed, 20 Sep 2023 04:02:36 +0000 (13:02 +0900)]
Get the random value from /dev/urandom

g_random_int() is not appropriate for cryptographic purposes

Change-Id: Ic60520c50b5f3fe82b12b25e5e8c372149a11e74
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
13 months agoRelease version 0.7.25 49/298849/1 accepted/tizen/unified/20230914.164948
ilho kim [Thu, 14 Sep 2023 07:09:22 +0000 (16:09 +0900)]
Release version 0.7.25

Changes:
 - Revert "Replace the g_random_int() with the getrandom()"

Change-Id: I6b30b4d203e709950e5c1c69d985f2fe7d88251f
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
13 months agoRevert "Replace the g_random_int() with the getrandom()" 46/298846/1
ilho kim [Thu, 14 Sep 2023 06:58:52 +0000 (15:58 +0900)]
Revert "Replace the g_random_int() with the getrandom()"

This reverts commit 49237995dcd62a496ee6753ed65977ac1bb1cabe.
Because the current kernel doesn't support the getrandom

Change-Id: Idcaed8e41887be15e46f0fbcbd36686b6331f2ec

14 months agoRelease version 0.7.24 78/296878/1 accepted/tizen/unified/20230808.074051
ilho kim [Mon, 7 Aug 2023 05:01:22 +0000 (14:01 +0900)]
Release version 0.7.24

Changes:
 - tests: provide getuid() mockup
 - tests: Add -mno-relax to link flags for server test
 - Replace the g_random_int() with the getrandom()

Change-Id: Ibcec00d744563278253dc63cf0e76eea97a985a0
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
14 months agoReplace the g_random_int() with the getrandom() 29/296829/3
ilho kim [Fri, 4 Aug 2023 10:33:40 +0000 (19:33 +0900)]
Replace the g_random_int() with the getrandom()

g_random_int() is not appropriate for cryptographic purposes

Change-Id: I15e5e3b64465a762d3249b77dde7313d93fff951
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
18 months agotests: Add -mno-relax to link flags for server test 54/291354/2
Łukasz Stelmach [Fri, 7 Apr 2023 10:49:25 +0000 (12:49 +0200)]
tests: Add -mno-relax to link flags for server test

The flag is required to prevent the test binary from using the gp register
on RISC-V to access global variables. RISC-V ABI assumes the value of the register
is assigned once at sartup (see load_gp() in sysdeps/riscv/start.S in
glibc sources). During tests this code is called for the second time when
app2sd-server-test uses dlopen() to load app2sd-server. Therefore with
relaxed linking enabled for both binaries, the value set at the start
of app2sd-server-test gets overwriten and the test process crashes in
semi-random places.

Change-Id: I6c5d550340c222bb53f8affd0d0c188cc5311765
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
18 months agotests: provide getuid() mockup 53/291353/1
Łukasz Stelmach [Thu, 13 Apr 2023 16:06:52 +0000 (18:06 +0200)]
tests: provide getuid() mockup

In some build environments the UID of build processes can be arbitrary
high which causes some tests to fail due to checks in app2ext_interface.c

Change-Id: I29bd686f6305f1a709e89180debc14e0904bb18b
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2 years agoRelease version 0.7.23 61/266661/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211118.211808 accepted/tizen/6.5/unified/20211122.213347 accepted/tizen/7.0/unified/20221110.062349 accepted/tizen/7.0/unified/hotfix/20221116.104948 accepted/tizen/unified/20211122.122405 accepted/tizen/unified/20211123.143705 submit/tizen/20211117.065841 submit/tizen/20211122.063412 submit/tizen/20211123.001718 submit/tizen_6.5/20211117.065832 submit/tizen_6.5/20211119.052213 tizen_7.0_m2_release
Sangyoon Jang [Wed, 17 Nov 2021 03:14:31 +0000 (12:14 +0900)]
Release version 0.7.23

Changes:
 - Add options to LUKS1 format

Change-Id: I603084e45dcac593bdd13502cb7cb87c46de8b51
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoAdd options to LUKS1 format 58/266558/1
Sangyoon Jang [Mon, 15 Nov 2021 08:55:41 +0000 (17:55 +0900)]
Add options to LUKS1 format

Change-Id: I3d2f3d5c6348eb5d765250c299a14872f8386f2a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.7.22 72/265972/1 accepted/tizen/unified/20211103.121809 submit/tizen/20211103.011604
Ilho Kim [Wed, 3 Nov 2021 00:53:59 +0000 (09:53 +0900)]
Release version 0.7.22

Changes:
 - Fix usage of GVariant in "g_dbus_proxy_call_sync"

Change-Id: I4c8118c6bcba0df5331613c7e38c13543a8945a7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoFix usage of GVariant in "g_dbus_proxy_call_sync" 63/265963/3
Ilho Kim [Tue, 2 Nov 2021 10:16:03 +0000 (19:16 +0900)]
Fix usage of GVariant in "g_dbus_proxy_call_sync"

The function "g_dbus_proxy_call_sync" consumes the floating GVariant parameter
So from the second loop, the variable is consumed, causing incorrect memory access
This patch changes GVariant variable from floating reference
to full reference using g_variant_ref_sink

Change-Id: I11f97ee20f72a7540413e60d921950fd0a5cdd90
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoRelease version 0.7.21 49/258949/1 accepted/tizen/6.5/unified/20211028.095324 accepted/tizen/unified/20210602.122514 submit/tizen/20210528.071327 submit/tizen/20210531.052459 submit/tizen_6.5/20211028.162101 tizen_6.5.m2_release
Ilho Kim [Fri, 28 May 2021 07:05:11 +0000 (16:05 +0900)]
Release version 0.7.21

Changes:
 - Add cryptsetup runtime dependency
 - Add sqlite3 dependency

Change-Id: I80edcf6a3ca38533b7c3316cb4a3265966f3cae2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
3 years agoAdd sqlite3 dependency 60/256360/2
Junghyun Yeon [Thu, 1 Apr 2021 10:09:46 +0000 (19:09 +0900)]
Add sqlite3 dependency

Declare dependencies explicitly.

Change-Id: I26989184be083aa59a7e0d24d6c5f840b87d8eea
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
3 years agoAdd cryptsetup runtime dependency 80/254580/1
INSUN PYO [Fri, 5 Mar 2021 02:14:51 +0000 (11:14 +0900)]
Add cryptsetup runtime dependency

This package uses /sbin/cryptsetup.

Change-Id: Ia22632a2a3626ea4222f29c007ab0491f850b986

3 years agoRelease version 0.7.20 73/246573/1 accepted/tizen_6.0_unified tizen_6.0 accepted/tizen/6.0/unified/20201110.230840 accepted/tizen/unified/20201102.081227 submit/tizen/20201102.051404 submit/tizen_6.0/20201110.064503
Sangyoon Jang [Mon, 2 Nov 2020 05:11:45 +0000 (14:11 +0900)]
Release version 0.7.20

Changes:
 - Fix unit tests

Change-Id: I201b364a813654ec169ffbbc4c635ac66a7e567f
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
3 years agoFix unit tests 02/246502/3
Junghyun Yeon [Fri, 30 Oct 2020 06:32:05 +0000 (15:32 +0900)]
Fix unit tests

Some unittests will return unexpected error code if build with root

Change-Id: I68d9a754f0eb08e3bfbb11fb2ee7987158b3ad66
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 0.7.19 30/243530/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.122209 accepted/tizen/6.0/unified/hotfix/20201103.004521 accepted/tizen/6.0/unified/hotfix/20201103.051643 accepted/tizen/unified/20200908.130458 submit/tizen/20200908.025700 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
Ilho Kim [Tue, 8 Sep 2020 02:30:20 +0000 (11:30 +0900)]
Release version 0.7.19

Changes:
 - Reduce CyclomaticComplexity
 - Change global variables into static

Change-Id: I01ea6deff5d37eaded2553643da0302a8fd6056d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoChange global variables into static 37/243137/1
Junghyun Yeon [Thu, 3 Sep 2020 08:49:11 +0000 (17:49 +0900)]
Change global variables into static

Change-Id: Id6a88f8bcdd0b045c1a5bde5fe26bd4014bba96a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoReduce CyclomaticComplexity 28/242128/2
Junghyun Yeon [Mon, 24 Aug 2020 09:40:57 +0000 (18:40 +0900)]
Reduce CyclomaticComplexity

Change-Id: Id9e0e1f7dbe94e2a641aa67cf701cd196de19f6a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 0.7.18 72/240972/1 accepted/tizen/unified/20200814.123123 submit/tizen/20200813.085439
Junghyun Yeon [Thu, 13 Aug 2020 08:46:33 +0000 (17:46 +0900)]
Release version 0.7.18

Changes:
 - Fix static analysis issue
 - Fix static analysis

Change-Id: I46bbf74913ae8a568e55b558df6bb3b09e858771
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix static analysis 69/240969/1
Junghyun Yeon [Thu, 13 Aug 2020 07:29:48 +0000 (16:29 +0900)]
Fix static analysis

Add try-catch to catch exception.

Change-Id: I91a25addfaae8f125ba904afa0e7a1b329b440de
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix static analysis issue 18/240718/1
Junghoon Park [Tue, 11 Aug 2020 02:06:26 +0000 (11:06 +0900)]
Fix static analysis issue

Change-Id: Id04d83b28730e2b9553617fe23e78f4fc0dd02ca
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
4 years agoAdd Server Test 19/239319/2 accepted/tizen/unified/20200803.143719 submit/tizen/20200724.073331
Daehyeon Jung [Fri, 24 Jul 2020 01:09:57 +0000 (10:09 +0900)]
Add Server Test

Change-Id: I217b258cd34e8cdc0536f82007f9a3b220fc98e0
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
4 years agoAdd client test 78/238878/2
Daehyeon Jung [Mon, 20 Jul 2020 04:49:36 +0000 (13:49 +0900)]
Add client test

Change-Id: I9dad81e677e60e9955f983f6c9b698a1e37d74ba

4 years agoSeperate Server and Lib test 77/238877/1
Daehyeon Jung [Wed, 15 Jul 2020 06:40:34 +0000 (15:40 +0900)]
Seperate Server and Lib test

Change-Id: I403677d5cea2eb8e7462d1ca6bd2e00cd0706435

4 years agoAdd API unit tests 64/238464/4
Daehyeon Jung [Tue, 14 Jul 2020 06:54:06 +0000 (15:54 +0900)]
Add API unit tests

Change-Id: I0f20462e3d380260c996b9dab6fc45bd8b74a203
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
4 years agoPrep gmock tests 08/238308/3
Daehyeon Jung [Fri, 10 Jul 2020 07:01:43 +0000 (16:01 +0900)]
Prep gmock tests

Change-Id: I9f6fbe93ec1ae8b82288633ea7f3cf94c03d27e7
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
4 years agoRelease version 0.7.17 59/238459/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200717.033405 accepted/tizen/5.5/unified/wearable/hotfix/20201027.121411 accepted/tizen/unified/20200716.144622 submit/tizen/20200714.063905 submit/tizen/20200714.112343 submit/tizen_5.5/20200714.064401 submit/tizen_5.5_wearable_hotfix/20201026.184302
Junghyun Yeon [Tue, 14 Jul 2020 06:28:00 +0000 (15:28 +0900)]
Release version 0.7.17

Changes:
 - Fix static analysis issue
 - Fix possible double-free issue

Change-Id: I24379e0e5f62d69ec20b4db21ce95e75a04e8e10
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix possible double-free issue 52/238452/1
Junghyun Yeon [Tue, 14 Jul 2020 04:46:16 +0000 (13:46 +0900)]
Fix possible double-free issue

Change-Id: Ib0ef53d5e6f77eba3f4d5e8af186613dacb6ea22
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoFix static analysis issue 15/238415/1
Junghyun Yeon [Tue, 14 Jul 2020 00:06:33 +0000 (09:06 +0900)]
Fix static analysis issue

- Fix possible memory leak issue.

Change-Id: Icccfdce4940e00ea8d3b6227fd76580d637e573e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRelease version 0.7.16 41/237741/1 accepted/tizen/unified/20200706.010558 submit/tizen/20200703.065918 submit/tizen/20200703.072919 submit/tizen_5.5/20200703.085100 submit/tizen_5.5_tv/20200703.085116
Junghyun Yeon [Fri, 3 Jul 2020 06:51:03 +0000 (15:51 +0900)]
Release version 0.7.16

Changes:
 - Revert "Use libcryptsetup API instead of using cryptsetup directly"
 - Add checking return values of snprintf

Change-Id: I819f5272fd07824b09562d821b8fd29d3667eefa
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoAdd checking return values of snprintf 89/237489/3
Junghyun Yeon [Wed, 1 Jul 2020 02:13:45 +0000 (11:13 +0900)]
Add checking return values of snprintf

Change-Id: If38a743334fda4f7f8b697ff9f24ce1531caa6b4
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
4 years agoRevert "Use libcryptsetup API instead of using cryptsetup directly" 88/237488/1
Junghyun Yeon [Wed, 1 Jul 2020 02:01:14 +0000 (11:01 +0900)]
Revert "Use libcryptsetup API instead of using cryptsetup directly"

This reverts commit 1d11e5eb763ab4a1aca136dc57ab6b68c764f42f.

Change-Id: I21a7441e8a8d510b307c2cb8f5e2e1d48a360842

4 years agoRelease version 0.7.15 11/222711/1 accepted/tizen/5.5/unified/20200303.170620 accepted/tizen/unified/20200120.133134 submit/tizen/20200117.092416 submit/tizen_5.5/20200302.074523
Ilho Kim [Fri, 17 Jan 2020 08:42:26 +0000 (17:42 +0900)]
Release version 0.7.15

Changes:
 - Resolve static analysis issue

Change-Id: I480c98aaaaf4036350f69ad8c877018fbcc76eb6
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoResolve static analysis issue 54/222654/1
Ilho Kim [Fri, 17 Jan 2020 04:19:33 +0000 (13:19 +0900)]
Resolve static analysis issue

Change-Id: I2a7579c7816cbecbc074e14f8730b64f825663a1
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 0.7.14 52/221752/1 accepted/tizen/unified/20200108.131534 submit/tizen/20200107.094018
Ilho Kim [Tue, 7 Jan 2020 08:49:25 +0000 (17:49 +0900)]
Release version 0.7.14

Changes:
 - Remove compile warning messages

Change-Id: I7f2c8d2824da3d694739dcbf8d7b5ec5b79a7e30
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRemove compile warning messages 68/221368/10
Ilho Kim [Thu, 2 Jan 2020 02:02:48 +0000 (11:02 +0900)]
Remove compile warning messages

Change-Id: If6f4ce84dcc023fdd71942ada681a5f08f8bf61a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoRelease version 0.7.13 05/220105/1 accepted/tizen/unified/20191216.222206 submit/tizen/20191213.074937
Ilho Kim [Fri, 13 Dec 2019 07:01:55 +0000 (16:01 +0900)]
Release version 0.7.13

Changes:
 - Fix error log

Change-Id: Ib81de3b1c8d214111bb1927fcd75d93ba37211f4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
4 years agoFix error log 44/218444/1
Sangyoon Jang [Fri, 22 Nov 2019 08:19:10 +0000 (17:19 +0900)]
Fix error log

Use returned pointer from strerror_r().

Change-Id: I38d23a4ebe4a13cee4a3c70fa9203fb8eb707181
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
4 years agoRelease version 0.7.12 64/217464/1 accepted/tizen/5.5/unified/20191118.084814 accepted/tizen/unified/20191115.083936 submit/tizen/20191112.050420 submit/tizen/20191114.120558 submit/tizen/20191115.055644 submit/tizen_5.5/20191112.065048 submit/tizen_5.5/20191114.121100 submit/tizen_5.5/20191115.055905
Ilho Kim [Tue, 12 Nov 2019 04:27:38 +0000 (13:27 +0900)]
Release version 0.7.12

Changes:
 - Fix usage of strerror_r()
 - Delete meaningless configuration
 - Change /usr/bin/false to /bin/false in the dbus configuration
 - Fix possible db handle leak
 - Fix static analyze issue
 - Use libcryptsetup API instead of using cryptsetup directly

Change-Id: Iad8c892fcd5bb6230795312ffab2ef5389642e89
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
5 years agoUse libcryptsetup API instead of using cryptsetup directly 53/205553/4
Sangyoon Jang [Tue, 7 May 2019 09:59:31 +0000 (18:59 +0900)]
Use libcryptsetup API instead of using cryptsetup directly

Change-Id: I6b83d840fa5cf96c2c18ed08b5cbf5fdcf99e6ac
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoFix static analyze issue 39/210439/1
Junghyun Yeon [Fri, 19 Jul 2019 06:30:49 +0000 (15:30 +0900)]
Fix static analyze issue

- Free unfreed memory.
- Clear memory before release which contains some critical information.

Change-Id: I10fc42edbc82585b54ecf731f0a05c04ba37d0f7
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoFix possible db handle leak 10/209910/3
Junghyun Yeon [Fri, 12 Jul 2019 08:07:28 +0000 (17:07 +0900)]
Fix possible db handle leak

sqlite3_open_v2 could return valid connection even if an error occurs,
according to the document so try to close the connection
even if return value indicates that it has failed.

Change-Id: Ia6fa2975230ea6950e0523ab461061b9941a533f
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
5 years agoChange /usr/bin/false to /bin/false in the dbus configuration 19/209919/1
INSUN PYO [Fri, 12 Jul 2019 09:18:26 +0000 (18:18 +0900)]
Change /usr/bin/false to /bin/false in the dbus configuration

Change-Id: If06b7019801d07696b01d337fd0ea95d63aa680f

5 years agoDelete meaningless configuration 26/209526/1
INSUN PYO [Mon, 8 Jul 2019 11:18:52 +0000 (20:18 +0900)]
Delete meaningless configuration

Change-Id: Ic6180ab15029298b53591cf14f683dbd6fbb07d0

5 years agoFix usage of strerror_r() 48/205548/1
Sangyoon Jang [Tue, 7 May 2019 07:30:40 +0000 (16:30 +0900)]
Fix usage of strerror_r()

Use the GNU style. The GNU-specific strerror_r() returns a pointer to
a string containing the error message.
The buffer passed by is not used it doesn't need it.

Change-Id: Ifc61a09626602e41986b7945bb440b899d549726
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
5 years agoRelease version 0.7.11 93/199893/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.024753 accepted/tizen/5.5/unified/mobile/hotfix/20201027.065456 accepted/tizen/unified/20190218.163212 submit/tizen/20190215.085133 submit/tizen/20190218.024446 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
ilho [Fri, 15 Feb 2019 08:41:54 +0000 (17:41 +0900)]
Release version 0.7.11

Changes:
 - Fix memory leak

Change-Id: Iad3e4c1338568548f36bc559f2e2576ff27acbf7
Signed-off-by: ilho <ilho159.kim@samsung.com>
5 years agoFix memory leak 36/198636/1
ilho [Mon, 28 Jan 2019 08:13:08 +0000 (17:13 +0900)]
Fix memory leak

Change-Id: I5694d2766800860fdd4df9378c29f01f2a1c2752
Signed-off-by: ilho <ilho159.kim@samsung.com>
6 years agoRelease version 0.7.10 49/186749/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.014128 accepted/tizen/unified/20180816.062939 submit/tizen/20180814.083738 submit/tizen_5.0/20181101.000002
Sangyoon Jang [Tue, 14 Aug 2018 05:45:48 +0000 (14:45 +0900)]
Release version 0.7.10

Changes:
 - Fix rpm manifest
 - Add app2sd-mount-helper tool

Change-Id: I020b41bee59cbcb6c747b8044a10869ad51dbe86
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoAdd app2sd-mount-helper tool 35/186135/4
Sangyoon Jang [Tue, 7 Aug 2018 11:29:27 +0000 (20:29 +0900)]
Add app2sd-mount-helper tool

When launching an application which is installed at external storage,
app2sd-server mounts application's image at internal storage.
Since process label of app2sd-server is "System", the directory which is
mount point for application's image has same label as app2sd-server.
This can cause smack denial in some cases.

This app2sd-mount-helper tool does mount instead of app2sd-server, and its
process label is "User::Home" which is same as other directories or
files at package root. Using this tool, the smack denial will not
happened.

Change-Id: Ic89bc960372d0a2595cd21aa6d9372473aafc2c8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix rpm manifest 33/186133/3
Sangyoon Jang [Tue, 7 Aug 2018 10:47:23 +0000 (19:47 +0900)]
Fix rpm manifest

Fix wrong usage of rpm manifest file.

Change-Id: I1dbbd870b758693069ed2f1c87cf60e72e0f19da
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.7.9 21/185721/1 accepted/tizen/unified/20180802.090230 submit/tizen/20180801.235658
Hwankyu Jhun [Wed, 1 Aug 2018 23:47:54 +0000 (08:47 +0900)]
Release version 0.7.9

Changes:
 - Modified permission check

Change-Id: Id3d4b842e1e7bb90bc16236a6b7167ef8dee63cf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoModified permission check 87/185487/2
Hwankyu Jhun [Tue, 31 Jul 2018 05:59:50 +0000 (14:59 +0900)]
Modified permission check

If the target user is GLOBAL APP, the request is allowed.

Change-Id: Ib362cceabf8d36cb7cc9df8d809ea993ee1c1501
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoRelease version 0.7.8 17/183217/1 accepted/tizen/unified/20180705.081218 submit/tizen/20180703.103524
Sangyoon Jang [Tue, 3 Jul 2018 10:28:51 +0000 (19:28 +0900)]
Release version 0.7.8

Changes:
 - Change rules for default dbus policy
 - Fix dbus proxy creation code

Change-Id: I628fe1b9ca6e48475d85c9430a5e2ed3404b94ad
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix dbus proxy creation code 93/183193/1
Sangyoon Jang [Tue, 3 Jul 2018 08:22:34 +0000 (17:22 +0900)]
Fix dbus proxy creation code

Add G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag.
app2sd-server does not provide object which has properties.
Without this flag, g_dbus_proxy_new_sync() will try to load properties
using GetAll method, and this call will be denied by default dbus policy.

Change-Id: Idbce104f86fb6f6067d314a4c7784b487b9235d6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.7.7 88/177588/1
Inkyun Kil [Wed, 2 May 2018 05:21:25 +0000 (14:21 +0900)]
Release version 0.7.7

Changes:
 - Change rules for default dbus policy

Change-Id: Iaf67ccce979c49e0039501cf24d6ac59d1ae4236
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoChange rules for default dbus policy 51/177051/1
Inkyun Kil [Wed, 25 Apr 2018 04:46:28 +0000 (13:46 +0900)]
Change rules for default dbus policy

Change-Id: I29b9a4b4e0e63671b3d2a89e5d9caa0941ea403a
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoRelease version 0.7.6 50/169750/1 accepted/tizen/unified/20180219.142402 submit/tizen/20180209.043342
Sangyoon Jang [Fri, 9 Feb 2018 01:59:26 +0000 (10:59 +0900)]
Release version 0.7.6

Changes:
 - Fix static analyzer issue

Change-Id: Iad281253a9acce6f28b965c44e09392680df5ea0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoFix static analyzer issue 31/169231/1
Sangyoon Jang [Mon, 5 Feb 2018 05:59:22 +0000 (14:59 +0900)]
Fix static analyzer issue

Remove unreachable codes.

Change-Id: I9f5713983575a5d3acfef1b2ae7189e82e15b9c2
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.7.5 49/169049/1 accepted/tizen/unified/20180205.060452 submit/tizen/20180202.063742
Junghyun Yeon [Fri, 2 Feb 2018 04:59:55 +0000 (13:59 +0900)]
Release version 0.7.5

Changes:
 - Add some compile options for memory protection

Change-Id: Id9a1d1327f967620d2c7e72788e519125ea07d3d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoAdd some compile options for memory protection 63/166863/3
Sangyoon Jang [Fri, 12 Jan 2018 07:11:38 +0000 (16:11 +0900)]
Add some compile options for memory protection

Change-Id: I63cac868668b96539dd0bbfd6877e36384876bbb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.7.4 82/167682/1 accepted/tizen/unified/20180123.061135 submit/tizen/20180119.081808
Junghyun Yeon [Fri, 19 Jan 2018 07:48:35 +0000 (16:48 +0900)]
Release version 0.7.4

Changes:
 - Clean up obsolete code

Change-Id: I7a400d88f2e592011c6d4c78079d704ec15bacdd
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
6 years agoClean up obsolete code 52/165652/3
Sangyoon Jang [Wed, 3 Jan 2018 05:34:35 +0000 (14:34 +0900)]
Clean up obsolete code

Now dmcrypt feature used always.

Change-Id: Ia8b19af50936dfb21770c642643a1217580878f5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
6 years agoRelease version 0.7.3 94/158994/1 accepted/tizen_4.0_unified accepted/tizen/4.0/unified/20171107.054706 accepted/tizen/unified/20171106.162854 submit/tizen/20171106.082351 submit/tizen_4.0/20171106.082405 tizen_4.0.IoT.p2_release
Sangyoon Jang [Mon, 6 Nov 2017 08:22:02 +0000 (17:22 +0900)]
Release version 0.7.3

Changes:
 - Fix crash issue of calling disable pkgs from storaged

Change-Id: If21d7eb332bcb6867c8687d0d258cb1188b64841
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix crash issue of calling disable pkgs from storaged 33/158633/1
Sangyoon Jang [Thu, 2 Nov 2017 07:41:11 +0000 (16:41 +0900)]
Fix crash issue of calling disable pkgs from storaged

Currently, storaged calls app2sd api which is synchronous when sdcard
being umounted. Then, app2sd-server calls storage_get_primary_sdcard()
which requests sdcard information to storaged synchronously. This causes
deadlock and storaged gets SIGABRT. However, app2sd-server doesn't need
to call storage_get_primary_sdcard() at current implementaion.

Change-Id: I6a005e6cc7d343929dfbfb8c77264609d457fe23
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRelease version 0.7.2 02/156102/1 accepted/tizen/4.0/unified/20171018.060909 accepted/tizen/unified/20171018.062501 submit/tizen/20171017.074628 submit/tizen_4.0/20171017.080654 tizen_4.0.m2_release
Junghyun Yeon [Tue, 17 Oct 2017 06:54:02 +0000 (15:54 +0900)]
Release version 0.7.2

Changes:
 - Fix wrong comment spelling

Change-Id: I7c212caa3c9b3d0a2a2ead0a47575bb9b01142e1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix wrong comment spelling 20/155020/1
Seungha Son [Thu, 12 Oct 2017 01:58:41 +0000 (10:58 +0900)]
Fix wrong comment spelling

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Iec5b33b2419be441ae62b89c09613debf3f8260e

7 years agoRelease version 0.7.1 59/154959/1 accepted/tizen/4.0/unified/20171012.074523 accepted/tizen/unified/20171012.075111 submit/tizen/20171011.123741 submit/tizen_4.0/20171011.124331 tizen_4.0.IoT.p1_release
Sangyoon Jang [Wed, 11 Oct 2017 12:33:45 +0000 (21:33 +0900)]
Release version 0.7.1

Changes:
 - Fix usage of realpath
 - Fix buffer size used on read() system call

Change-Id: I79837ffd41a693d6ab14282669954341d9ca1a4b
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix buffer size used on read() system call 33/154433/3
Sangyoon Jang [Tue, 10 Oct 2017 07:50:28 +0000 (16:50 +0900)]
Fix buffer size used on read() system call

Change-Id: Ib5cea6ca00cbcd621685b203426603f66c9920be
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoFix usage of realpath 73/154873/2
Sangyoon Jang [Wed, 11 Oct 2017 10:08:12 +0000 (19:08 +0900)]
Fix usage of realpath

NULL is recommended for the second parameter of realpath() because of
buffer overflow.

Change-Id: I21de69b08f17c7ec3262729ec09334f16247ec84
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRelease version 0.7.0 49/147949/1 accepted/tizen/4.0/unified/20170907.195918 accepted/tizen/unified/20170907.060517 submit/tizen/20170906.063613 submit/tizen_4.0/20170907.015900
Sangyoon Jang [Wed, 6 Sep 2017 06:12:55 +0000 (15:12 +0900)]
Release version 0.7.0

Changes:
 - Remove unnecessary loop
 - Refactor app2sd server codes
 - Add a new API for getting external image path

Change-Id: Icc5933c66f7485c9bb19bae174cfa1615e869fd8
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoAdd a new API for getting external image path 67/145167/3
Sangyoon Jang [Fri, 1 Sep 2017 10:04:27 +0000 (19:04 +0900)]
Add a new API for getting external image path

Change-Id: I20d1a32c3c9879885ed90e1e35221c61aaf394d0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRefactor app2sd server codes 84/144684/5
Sangyoon Jang [Wed, 16 Aug 2017 11:16:45 +0000 (20:16 +0900)]
Refactor app2sd server codes

- Fix code style
- Remove duplicated codes
- Remove unnecessary codes
- Fix indentations

Change-Id: I85d9f2db34182f669030f3c60d5cb98c7c77dbf5
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
7 years agoRemove unnecessary loop 08/144208/2
Seungha Son [Wed, 16 Aug 2017 01:59:07 +0000 (10:59 +0900)]
Remove unnecessary loop

 - Loop body cannot be executed more than once

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I03262226f4e32976e41a3ac68fe3315fd79643a1

7 years agoRelease version 0.6.7 26/133726/1 accepted/tizen/4.0/unified/20170816.012639 accepted/tizen/4.0/unified/20170816.015418 accepted/tizen/4.0/unified/20170828.223922 accepted/tizen/unified/20170613.194207 submit/tizen/20170613.043244 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100002 submit/tizen_4.0_unified/20170814.115522
Hwankyu Jhun [Tue, 13 Jun 2017 07:52:37 +0000 (16:52 +0900)]
Release version 0.6.7

Changes:
 - Fix invalid log format

Change-Id: I6b4e88338b7735cfa330794a93499249464c8c31
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix invalid log format 36/133536/1
Hwankyu Jhun [Mon, 12 Jun 2017 22:26:17 +0000 (07:26 +0900)]
Fix invalid log format

Change-Id: I8be9bf7d21f165bba14a594bf084097a6ed16d11
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoRelease version 0.6.6 10/128910/1 accepted/tizen/unified/20170512.165906 submit/tizen/20170512.073248 tizen_4.0.m1_release
Sangyoon Jang [Fri, 12 May 2017 05:03:08 +0000 (14:03 +0900)]
Release version 0.6.6

Changes:
 - Modify the function to kill running apps

Change-Id: Ibb47caef1a32a258a47a3100f0a88cb438d0c959
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoModify the function to kill running apps 96/128296/1
jongmyeongko [Tue, 2 May 2017 14:57:52 +0000 (23:57 +0900)]
Modify the function to kill running apps

When the sdcard is removed, the app2sd can't acess the app2sd file.
And this can cause the failure to get pkginfo and appinfo.

Change-Id: I7c2eae676bee659e0b2a410728bfac70d9fa7e9d
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit 2b9f24daf1adf82259ddba110d5cd513a0ea780f)

7 years agoRelease version 0.6.5 13/126813/1 accepted/tizen/unified/20170428.033024 submit/tizen/20170425.040634 submit/tizen/20170427.131814
Sangyoon Jang [Tue, 25 Apr 2017 05:58:05 +0000 (14:58 +0900)]
Release version 0.6.5

Changes:
 - Fix a memory leak

Change-Id: I2be140f5db28a1d8d337a44e4b41cbd8c418a202
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix a memory leak 37/125537/1
Sangyoon Jang [Tue, 18 Apr 2017 02:25:22 +0000 (11:25 +0900)]
Fix a memory leak

Change-Id: I0c6e5cc33442159cbf1630459db4120c203b0420
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRelease version 0.6.4 92/124292/1 accepted/tizen/unified/20170412.152006 submit/tizen/20170411.042057
Junghyun Yeon [Tue, 11 Apr 2017 05:27:32 +0000 (14:27 +0900)]
Release version 0.6.4

Changes:
- Use %license macro to copy license file
- Fix memory leaks

Change-Id: I91c69754d02af7e4362f2d58a6c377b4b6554981
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix memory leaks 75/122475/1
Sangyoon Jang [Fri, 31 Mar 2017 12:09:27 +0000 (21:09 +0900)]
Fix memory leaks

Change-Id: I38feffcd9e1661eedadc619881671bb636d920fe
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoUse %license macro to copy license file 24/120424/1
Sangyoon Jang [Thu, 23 Mar 2017 01:59:10 +0000 (10:59 +0900)]
Use %license macro to copy license file

Change-Id: I42a7a9bce4927ad8500c2e787bea7cfc6e387775
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRelease version 0.6.3 93/119493/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170322.153956 accepted/tizen/ivi/20170323.000734 accepted/tizen/mobile/20170323.000213 accepted/tizen/tv/20170323.000511 accepted/tizen/unified/20170323.000810 accepted/tizen/wearable/20170323.000639 submit/tizen/20170317.070714 submit/tizen/20170320.224022 submit/tizen/20170322.050206 submit/tizen/20170322.091134
Junghyun Yeon [Fri, 17 Mar 2017 06:29:54 +0000 (15:29 +0900)]
Release version 0.6.3

- Fix calculation function of internal free memory

Change-Id: I9d20c9a4211b3aa59ac1c383347951f5b8fbc002
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoFix wrong available mem calculation of internal storage 17/118517/1
jongmyeongko [Mon, 13 Mar 2017 02:20:25 +0000 (11:20 +0900)]
Fix wrong available mem calculation of internal storage

Change-Id: I3562eb06879c06744b38b93c110693f47cd77847
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
(cherry picked from commit c4063451edc4c8d8ee6d199e22e8fdbdef0db9db)

7 years agoRelease version 0.6.2 20/117320/3 accepted/tizen/common/20170306.165129 accepted/tizen/ivi/20170307.050433 accepted/tizen/mobile/20170307.050150 accepted/tizen/tv/20170307.050338 accepted/tizen/unified/20170309.032111 accepted/tizen/wearable/20170307.050406 submit/tizen/20170306.070018 submit/tizen_unified/20170308.100405
jongmyeongko [Sat, 4 Mar 2017 02:36:36 +0000 (11:36 +0900)]
Release version 0.6.2

Changes:
 - Fix error handle bug
 - Fix static analysis issue

Change-Id: Iccd440c9291b2cf3f1da1e4d3d7f64a5465b2bbb
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix error handle bug 21/117421/3
jongmyeongko [Mon, 6 Mar 2017 05:05:26 +0000 (14:05 +0900)]
Fix error handle bug

When there was an error in previous iteration,
error->messge wil be referenced as an freed state in next iteration.
This may causes a crash.

Change-Id: Iedf6414ea359a1decc06007a919650469768c705
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoFix static analysis issue 16/115116/1
Junghyun Yeon [Thu, 16 Feb 2017 07:55:57 +0000 (16:55 +0900)]
Fix static analysis issue

Change-Id: I1275ef8c1aa377dc0c8ffd1dfcc2ad8d88f3e0fe
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
7 years agoRelease version 0.6.1 57/113857/1 accepted/tizen/common/20170209.122458 accepted/tizen/ivi/20170210.004209 accepted/tizen/mobile/20170210.003836 accepted/tizen/tv/20170210.004013 accepted/tizen/wearable/20170210.004107 submit/tizen/20170209.083108
Sangyoon Jang [Thu, 9 Feb 2017 06:36:42 +0000 (15:36 +0900)]
Release version 0.6.1

Changes:
 - Fix password generator

Change-Id: I4b890b4c14e20936ce0bb6a0a5d960d6a09f37b7
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoFix password generator 61/112661/6
Sangyoon Jang [Thu, 2 Feb 2017 06:34:51 +0000 (15:34 +0900)]
Fix password generator

In some case this generates abnormal password and this causes a failure
when execute cryptosetup command.

Change-Id: I51ead2cc9588fde71218795dc8a2290eb8f204f2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoRelease Version 0.6.0 64/111064/1 accepted/tizen/common/20170125.112850 accepted/tizen/ivi/20170119.222138 accepted/tizen/mobile/20170119.221645 accepted/tizen/tv/20170119.221914 accepted/tizen/wearable/20170119.222031 submit/tizen/20170119.070147
jongmyeongko [Thu, 19 Jan 2017 09:24:17 +0000 (18:24 +0900)]
Release Version 0.6.0

Changes:
- Change the library verson in .pc as the package version
- Clean-up buffer allocation codes
- Make library version same as package version
- Make plugin rpm package seperately

Change-Id: I59eab9898f08b21afe03651a15ad420682d4ec8f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoChange the library verson in .pc as the package version 51/111051/1
jongmyeongko [Thu, 19 Jan 2017 08:29:08 +0000 (17:29 +0900)]
Change the library verson in .pc as the package version

Change-Id: Ie28537bc9eb9b79c85fd66e4a7bf8c144a1344c0
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoClean-up buffer allocation codes 33/109933/7
jongmyeongko [Wed, 14 Dec 2016 12:30:33 +0000 (21:30 +0900)]
Clean-up buffer allocation codes

Change-Id: Ic7a4a1c8510889eaa3fdca1a58a5517764a215a2
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
7 years agoMake library version same as package version 21/110521/3
Sangyoon Jang [Tue, 17 Jan 2017 01:39:33 +0000 (10:39 +0900)]
Make library version same as package version

Change-Id: I1f5983eaa372be368fe44e1ee216bc02abc38dad
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoMake plugin rpm package seperately 28/109928/2
Sangyoon Jang [Thu, 12 Jan 2017 08:03:43 +0000 (17:03 +0900)]
Make plugin rpm package seperately

To removing profile build dependency, make plugin rpm package seperately.
(Need to create JIRA-TRE issue to including rpm package)

Change-Id: I2c87ed9e105446751bb2d4e79af39700b0d6fca1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
7 years agoReplace 'readdir_r' with 'readdir' 57/110157/2 accepted/tizen/common/20170113.184230 accepted/tizen/ivi/20170113.225032 accepted/tizen/mobile/20170113.224945 accepted/tizen/tv/20170113.225000 accepted/tizen/wearable/20170113.225014 submit/tizen/20170113.080044
Inkyun Kil [Fri, 13 Jan 2017 06:03:26 +0000 (15:03 +0900)]
Replace 'readdir_r' with 'readdir'

- Fix build error for toolchain upgrade.
  This patch is intended to be missing from previous patch.

Change-Id: I05ce9544b7919c7fd72e09b7a75f8139540dc886
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoFix coding rule violations 76/110176/2
Inkyun Kil [Fri, 13 Jan 2017 06:54:54 +0000 (15:54 +0900)]
Fix coding rule violations

Change-Id: I8719abf678d139fc2288c47011c1ca097c2deb96
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoReplace 'readdir_r' with 'readdir' accepted/tizen/3.0/common/20170116.122620 accepted/tizen/3.0/ivi/20170114.000331 accepted/tizen/3.0/mobile/20170114.000243 accepted/tizen/3.0/tv/20170114.000259 accepted/tizen/3.0/wearable/20170114.000315 accepted/tizen/common/20170112.174431 accepted/tizen/ivi/20170112.222529 accepted/tizen/mobile/20170112.222417 accepted/tizen/tv/20170112.222444 accepted/tizen/wearable/20170112.222507 submit/tizen/20170112.013301 submit/tizen_3.0/20170113.111925
Inkyun Kil [Thu, 15 Dec 2016 06:06:56 +0000 (15:06 +0900)]
Replace 'readdir_r' with 'readdir'

'readdir_r' is deprecated since version 2.24 glibc.
By upgrading TOOLCHAIN for platform, it should be replaced by 'readdir'

Change-Id: I802ccd1cca6d9504948140a9c72000c9960b3ea1
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoRevert "Revert "Adjust log level not to recognized an error always"" 28/109528/1
Hwankyu Jhun [Tue, 10 Jan 2017 08:56:02 +0000 (17:56 +0900)]
Revert "Revert "Adjust log level not to recognized an error always""

This reverts commit 1902db5d176e7fa95dfac11aa10804739b80ec00.

Change-Id: I65c58a7c2a7e2646474f44b9ebe4f30f57c32cb6