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>
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>
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>
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
INSUN PYO [Mon, 8 Jul 2019 11:18:52 +0000 (20:18 +0900)]
Delete meaningless configuration
Change-Id: Ic6180ab15029298b53591cf14f683dbd6fbb07d0
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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)
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>
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>
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>
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>
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>
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>
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)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
Hwankyu Jhun [Tue, 10 Jan 2017 08:55:49 +0000 (17:55 +0900)]
Revert "Revert "Support legacy image for backward-compatibility""
This reverts commit
7bd2ec8239a32021fbcfdbcef7dd5fb67a99da53.
Change-Id: I30bedd776b2044b318ac577fdbfaf8d32bd5d54b
Hwankyu Jhun [Tue, 10 Jan 2017 08:55:35 +0000 (17:55 +0900)]
Revert "Revert "Refactor duplicate codes as a function to reuse them""
This reverts commit
3f28235b928ce486c68d90e608d8a1f10f7c5eb8.
Change-Id: I146f3f039d11ec1eaaf1137c6b9ce4e352958246
Hwankyu Jhun [Tue, 10 Jan 2017 08:55:17 +0000 (17:55 +0900)]
Revert "Refactor duplicate codes as a function to reuse them"
This reverts commit
a9899cecfa471b1fdb8bdb611242817d5623b340.
Change-Id: I2ae91cac4bd8f9a6b20880e48960bb0c840df804
Hwankyu Jhun [Tue, 10 Jan 2017 08:54:54 +0000 (17:54 +0900)]
Revert "Support legacy image for backward-compatibility"
This reverts commit
2b99c718d1a9eed073fe9a668540dd49b3a973ec.
Change-Id: I64c55bfbce50e7b78f47891fca19f79f682a5b25
Hwankyu Jhun [Tue, 10 Jan 2017 08:54:39 +0000 (17:54 +0900)]
Revert "Adjust log level not to recognized an error always"
This reverts commit
a942140b767fa71813b51872fc01056b0b058e4e.
Change-Id: I15976fdf1e2eda9e8094753dbe15097096752803
Sunmin Lee [Fri, 6 Jan 2017 11:51:33 +0000 (20:51 +0900)]
Require libtzplatform-config explicitly
Until now, this package has been built using symbols in other
packages indirectly. As static library is removed, it should
require libtzplatform-config library in itself.
Change-Id: I9a560e4d7cd970f4de13174fc450416272ce9c95
jongmyeongko [Wed, 4 Jan 2017 11:04:08 +0000 (20:04 +0900)]
Adjust log level not to recognized an error always
Submit together:
https://review.tizen.org/gerrit/#/c/104823/
Change-Id: Ifdd8d5ee8688b865c5c999edba590c2332271524
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 14 Dec 2016 10:37:59 +0000 (19:37 +0900)]
Support legacy image for backward-compatibility
Work flows for migration
-> helper daemon will call app2ext_migrate_legacy_all()
-> call pkgmgr client api to execute the installer backend
-> the backend mount legacy image
-> the backend change old labels
-> the backedn umount legacy image
Submit with :
[slp-pkgmgr] https://review.tizen.org/gerrit/#/c/107123/
[app-installers] https://review.tizen.org/gerrit/#/c/107124/
[tpk-backend] https://review.tizen.org/gerrit/#/c/107125/
[pkgmgr-server] https://review.tizen.org/gerrit/#/c/108346/
[wgt-backend] https://review.tizen.org/gerrit/#/c/108485/
Migration Trigger Test:
#test_app2ext --migrate-all (refer to usage)
Change-Id: I180d6144d3fa033f7c969dc76f4f0f3e5b20e91f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 3 Jan 2017 02:16:20 +0000 (11:16 +0900)]
Refactor duplicate codes as a function to reuse them
The codes for finalizing device setup(includes mount) are written as a function
Change-Id: I92b032cc7ef1df79cf5665179b435150d4f25005
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 3 Jan 2017 06:26:47 +0000 (15:26 +0900)]
Refactor duplicate codes as a function to reuse them
The codes for generting directory list are written as a function
Change-Id: Ic9c27c751e439a030e3d24ac5e85695548b21aec
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 27 Dec 2016 01:18:25 +0000 (10:18 +0900)]
Fix external installation for global app
The "System" label is required to access the files for
global app, which files have "System" label.
But, the files for local app are can be access as "User" execution.
Because the transmute option is true.
Change-Id: Ied9f9bfaae4ac04a475fb6e6e0c07cd5071d6e87
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Wed, 7 Dec 2016 05:30:28 +0000 (14:30 +0900)]
Fix static analysis tool issue
- Remove unreachable code
- fix memory leak
Change-Id: Ia7ad1372fde5acc89dc6e2657368491c8c2b8da2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Sangyoon Jang [Wed, 16 Nov 2016 07:34:16 +0000 (16:34 +0900)]
Clean up repository
Fix CMakeLists.txt to make extendible.
Clean build dependency of each components.
Rename some files.
Change-Id: I5fe6ee6d7618ec6da82ec717fec9e50cab6681c1
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
jongmyeongko [Sun, 13 Nov 2016 07:35:54 +0000 (16:35 +0900)]
bugfix related storing external_path
and, fix memory leak
Change-Id: I0dd633643297daa1dc1db21101eaf8059b6f0d4f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Wed, 12 Oct 2016 10:47:42 +0000 (19:47 +0900)]
Pass image path when change pkg db
- Pass image path when change
installed_location column at pkg db
Change-Id: I8ec2b9abe2d967f2756025e9517a2873a19496d0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Hwankyu Jhun [Sun, 30 Oct 2016 22:55:38 +0000 (07:55 +0900)]
Fix memory leak
Change-Id: I4b88aca7d9b24679356ac05b0b591cba22ce7ce0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
jongmyeongko [Mon, 24 Oct 2016 01:56:16 +0000 (10:56 +0900)]
make app2sd more robust on some failure cases.
- ensure a given waiting time before app2sd-server is terminated
- apply retrial logic for client api
Change-Id: I733bf20313f72ccd7350aeea5ef35c9395be2527
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 17 Oct 2016 06:06:10 +0000 (15:06 +0900)]
fix a defect of app2sd-server termination before processing is done.
- defect : app2sd-server could be terminated by timeout from previous request.
Change-Id: I089d1a23a9dbb93b3980954ef3164480f27811cf
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Junghyun Yeon [Wed, 12 Oct 2016 08:23:38 +0000 (17:23 +0900)]
Fix pre app upgrade function to return proper value
- Function didn't return value which is retrieved
by app2sd-server
Change-Id: I5d3c3a0415f5131f95a1a7dbf80128c4d49d2824
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jongmyeongko [Thu, 28 Jul 2016 13:40:38 +0000 (22:40 +0900)]
to support system-session installer-backends
Change-Id: I0a636a263eb3808aead8b394860cf2b933932545
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 9 Aug 2016 02:16:03 +0000 (11:16 +0900)]
use w/o restart version api for killing application
Change-Id: Id8f755d32a2abca79b8391128b98f5422b0b041f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 9 Aug 2016 06:46:35 +0000 (15:46 +0900)]
change internal storage path (opt -> opt/usr)
opt and opt/usr are not same partition anymore.
Change-Id: Id9cd711251b410aba3ce7b53c816f43d30d806b4
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 18 Jul 2016 09:11:24 +0000 (18:11 +0900)]
get mount path of sdcard using storage api instead of hard-coded path.
Change-Id: I37061efb63b430f771e8aa2fd00218675c9f429f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 19 Jul 2016 04:03:33 +0000 (13:03 +0900)]
remove app2ext_get_app_location api
this is not useful and will not be supported.
Submit with:
https://review.tizen.org/gerrit/#/c/80493/
Change-Id: Ic35753aa6902ff804c44f108b8258ea1723ff2b6
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Fri, 22 Jul 2016 02:51:10 +0000 (11:51 +0900)]
fix problems in case both global and local are installed/removed
- bugfix deleting entire app directory.
- use composite primary key of app2sd_info table to save both local and global app.
- always overwrite same extimg file.
Change-Id: I25b70cc88188a96b729cd16982722efe66a4b5a0
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 13 Jul 2016 08:16:22 +0000 (17:16 +0900)]
apply featuring to app2sd plugin, and clean CMakeLists
Change-Id: Id976ee70872ce94f88b0fb468068100226d78377
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
Hwankyu Jhun [Fri, 22 Jul 2016 00:41:14 +0000 (09:41 +0900)]
Add the app2ext_utils.c to the app2sd library
Change-Id: I51bad0a5fa1e94b89bc1602fab4ae1334c71fe27
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
jongmyeongko [Thu, 21 Jul 2016 04:04:55 +0000 (13:04 +0900)]
Set the SMACK security label to run given executable file in systemd services
Change-Id: If582a36ae44c0a2705dc8e28dc35bb907621ba2d
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Fri, 8 Jul 2016 14:09:00 +0000 (23:09 +0900)]
improve app2sd stability
- do not handle as failure in case source dir does not exists.
(some application has no 'lib')
- sync() after pre/post called.
- bugfix kill all running apps when sdcard is removed.
Change-Id: Ied0578a840f4216ff461150532fea22854b4753d
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 5 Jul 2016 12:57:43 +0000 (21:57 +0900)]
fix pkg move behavior
kill apps and umount image when sdcard is removed
Change-Id: I120edd133e3c349ae1e4dfce512975436e6c48ad
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 4 Jul 2016 10:27:49 +0000 (19:27 +0900)]
remove CAP_MAC_OVERRIDE from app2sd-server
separate move function to pre_move and pos_move
for labeling the contents under .mmc
Submit with:
https://review.tizen.org/gerrit/#/c/78072/
Change-Id: Iac91cf9fc17f4bb3bb2728bed8e94efa1cdaa9bf
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Thu, 30 Jun 2016 11:17:02 +0000 (20:17 +0900)]
add some error info.
Change-Id: I7e2af8d19bb7cc820afaef7e348d41d53e648f1e
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 29 Jun 2016 03:37:18 +0000 (12:37 +0900)]
enable dmcrypt feature
Change-Id: I3e35703905f523b727db2c5563bda23b5610ad07
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 28 Jun 2016 10:53:54 +0000 (19:53 +0900)]
disable dmcrypt feature
Change-Id: I1ab82a19655d94b5397cd1298bd8008d3c7b90f5
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 27 Jun 2016 10:23:39 +0000 (19:23 +0900)]
check app2sd dir before move to external
Change-Id: Ie717dd05b4fc856905f73253eb6706f83edf3506
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 23 May 2016 11:40:37 +0000 (20:40 +0900)]
dmcrypt feature
Change-Id: I746e2ca60d4a8a73302f2d123381f6f08c3de32f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Fri, 24 Jun 2016 02:14:32 +0000 (11:14 +0900)]
fix static analysis defects
Change-Id: I57f42828e938011ecdf916cf755099614b43e6fb
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Wed, 22 Jun 2016 08:49:17 +0000 (17:49 +0900)]
grant User label for app2sd-server
Change-Id: I3d8dc20e2326c464de0f4b002896582c1e690618
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 21 Jun 2016 08:24:42 +0000 (17:24 +0900)]
change the function name for enabling/disabling all pkgs
Change-Id: I7a1425dfc38235de55f13d9b5f54b99d5d2285a6
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Tue, 14 Jun 2016 10:05:03 +0000 (19:05 +0900)]
add enalbe/disable function for entire packages.
Change-Id: I8434dc46662ba15380d884eca3f0b0c149355c0f
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
jongmyeongko [Mon, 13 Jun 2016 02:41:12 +0000 (11:41 +0900)]
fix buffer underflow and overflow
Change-Id: I667f183f886be7b06bf41fef597fdafca86b3cbe
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>