platform/core/appfw/launchpad.git
8 years agoupdate label of buxton client in prepare exec step 50/92250/7 accepted/tizen/3.0/common/20161114.081513 accepted/tizen/3.0/ivi/20161103.131753 accepted/tizen/3.0/mobile/20161103.131701 accepted/tizen/3.0/tv/20161103.131715 accepted/tizen/3.0/wearable/20161103.131735 accepted/tizen/common/20161109.140344 accepted/tizen/ivi/20161110.000434 accepted/tizen/mobile/20161110.000334 accepted/tizen/tv/20161110.000400 accepted/tizen/wearable/20161110.000417 submit/tizen/20161101.112858 submit/tizen/20161108.071447 submit/tizen/20161109.002425 submit/tizen_3.0/20161102.064015 submit/tizen_3.0_common/20161110.084657
Jiwoong Im [Fri, 14 Oct 2016 06:38:13 +0000 (15:38 +0900)]
update label of buxton client in prepare exec step

- launchpad should request to update buxton client label after change smack label

Change-Id: I139d7cfdb0f77d852e16c4f4b5fd6888dd5c3390
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoRefactor sigchild 45/93445/5 accepted/tizen/3.0/ivi/20161102.075741 accepted/tizen/3.0/mobile/20161102.075603 accepted/tizen/3.0/tv/20161102.075639 accepted/tizen/3.0/wearable/20161102.075713 accepted/tizen/common/20161102.121433 accepted/tizen/ivi/20161101.123012 accepted/tizen/mobile/20161101.122917 accepted/tizen/tv/20161101.122942 accepted/tizen/wearable/20161101.122959 submit/tizen/20161101.004208 submit/tizen_3.0/20161102.051512
Hwankyu Jhun [Mon, 24 Oct 2016 08:58:15 +0000 (17:58 +0900)]
Refactor sigchild

- Rename the header file and functions
- Remove inline definitions
- Add fallback code about sending dbus signal

Change-Id: Ibdb31370fa1c434b762d010ba690ab5cd81f6981
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoSupport script file to register static debug tools 85/90185/23 accepted/tizen/common/20161102.121402 accepted/tizen/ivi/20161101.005513 accepted/tizen/mobile/20161101.005427 accepted/tizen/tv/20161101.005434 accepted/tizen/wearable/20161101.005453 submit/tizen/20161031.132039
Hawnkyu Jhun [Wed, 28 Sep 2016 12:09:56 +0000 (21:09 +0900)]
Support script file to register static debug tools

+---------------+--------------------------------+
| [Debugger]    | Description                    |
+---------------+--------------------------------+
| Name          | Debug tool name                |
| Exe           | Executable file                |
| App_type      | Application type               |
| Extra_key     | Bundle key of extra arguments  |
| Extra_env     | Bundle key of extra environment|
|               | variables                      |
| Unlink        | Remove the specified file      |
| Attach        | Attach to running process      |
+---------------+--------------------------------+

Change-Id: I09bf0562375d04b73ad0d076d8328fb70ca7e496
Signed-off-by: Hawnkyu Jhun <h.jhun@samsung.com>
8 years agoSupport script file to register static launchers 39/92039/12 accepted/tizen/common/20161027.073714 accepted/tizen/common/20161031.121708 accepted/tizen/ivi/20161031.082319 accepted/tizen/mobile/20161031.082214 accepted/tizen/tv/20161031.082239 accepted/tizen/wearable/20161031.082259 submit/tizen/20161027.062225 submit/tizen/20161031.010650
Hwankyu Jhun [Thu, 13 Oct 2016 04:20:29 +0000 (13:20 +0900)]
Support script file to register static launchers

Change-Id: I8d689122d43409502b7a13277ed63dfa86862600
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoMove close_all_fds right before exec 63/91663/2
Michal Bloch [Mon, 10 Oct 2016 15:12:00 +0000 (17:12 +0200)]
Move close_all_fds right before exec

Some FDs (specifically, the ones used for dlog logging)
are in use between current close_all_fds call spot and exec

Change-Id: Ie64fad2cef350c2e2931da6a3c21200471b23fdb
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
8 years agoRemove RTLD_DEEPBIND 33/87433/1 accepted/tizen/3.0/ivi/20161011.044336 accepted/tizen/3.0/mobile/20161015.033540 accepted/tizen/3.0/tv/20161016.004746 accepted/tizen/3.0/wearable/20161015.083301 accepted/tizen/common/20160908.134607 accepted/tizen/ivi/20160909.001716 accepted/tizen/mobile/20160909.001621 accepted/tizen/tv/20160909.001639 accepted/tizen/wearable/20160909.001654 submit/tizen/20160908.041324 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000003 submit/tizen_3.0_mobile/20161015.000003 submit/tizen_3.0_tv/20161015.000002 submit/tizen_3.0_wearable/20161015.000003
Semun Lee [Thu, 8 Sep 2016 04:03:23 +0000 (13:03 +0900)]
Remove RTLD_DEEPBIND

I found many Tizen Store applications have potential
problem of symbol conflict as they include some glib symbols
in its executable.
We cannot deal this issue in general way.
For workaround, they can be launched by removing
RTLD_DEEPBIND flag from dlopen of executable file.

Change-Id: I6635b7e14fb7e79d2895476c705f4f97eaecfcb9
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoRemove mounting legacy app path 57/85957/1
Semun Lee [Tue, 30 Aug 2016 01:32:17 +0000 (10:32 +0900)]
Remove mounting legacy app path

/opt/usr/apps will be bind-mounted to $HOME/apps_rw.
launchpad doesn't need to mount legacy app path.

Change-Id: I23217dcb2a1b571a350d7eb6633ee56a636380e4
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoAdjust coding style 06/85906/1
Hwankyu Jhun [Mon, 29 Aug 2016 11:48:01 +0000 (20:48 +0900)]
Adjust coding style

Change-Id: I08f25d4b1dd4d62c0967d4886a6609da75e0b312
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoMove service file from default.target to basic.target 73/84473/1 accepted/tizen/common/20160822.132715 accepted/tizen/ivi/20160823.041254 accepted/tizen/mobile/20160823.041116 accepted/tizen/tv/20160823.041202 accepted/tizen/wearable/20160823.041231 submit/tizen/20160822.012953 submit/tizen/20160822.045932
Hwankyu Jhun [Fri, 19 Aug 2016 01:58:44 +0000 (10:58 +0900)]
Move service file from default.target to basic.target

Change-Id: Ia6234460170cc8fddda66e84d161ac7c7e3ac38b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoClear cmdline up for loaders 58/83358/3 accepted/tizen/common/20160811.145601 accepted/tizen/ivi/20160811.002615 accepted/tizen/mobile/20160811.002553 accepted/tizen/tv/20160811.002606 accepted/tizen/wearable/20160811.003003 submit/tizen/20160810.074113
Junghoon Park [Wed, 10 Aug 2016 08:47:43 +0000 (17:47 +0900)]
Clear cmdline up for loaders

Change-Id: I744fd9680fba342063ded302a6fd851272a5aec3
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoRemove checking socket creation 30/82830/3 accepted/tizen/common/20160809.184012 accepted/tizen/ivi/20160809.232623 accepted/tizen/mobile/20160809.232401 accepted/tizen/tv/20160809.232512 accepted/tizen/wearable/20160809.232717 submit/tizen/20160809.011327 submit/tizen/20160809.051427
Hwankyu Jhun [Mon, 8 Aug 2016 02:44:42 +0000 (11:44 +0900)]
Remove checking socket creation

Change-Id: Ife3d6350aad080fb2173935e30229e0e58a26ca9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoCheck cpu idle time to prepare candidate process 61/77461/16 accepted/tizen/common/20160803.193309 accepted/tizen/ivi/20160804.080819 accepted/tizen/mobile/20160804.080910 accepted/tizen/tv/20160804.080736 accepted/tizen/wearable/20160804.080650 submit/tizen/20160803.012753
Junghoon Park [Mon, 25 Jul 2016 01:20:39 +0000 (10:20 +0900)]
Check cpu idle time to prepare candidate process

Change-Id: Ie2c0551a417a2a06ab2891e6a467701e215178c3
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoWait socket creation 72/81872/1
Hwankyu Jhun [Fri, 29 Jul 2016 04:14:59 +0000 (13:14 +0900)]
Wait socket creation

Change-Id: Ic1a45c7f78618725a5ff2568e0fc7760e9fb7d4e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoUse fork/unshare instead of clone 89/81789/2
Semun Lee [Thu, 28 Jul 2016 10:08:25 +0000 (19:08 +0900)]
Use fork/unshare instead of clone

Change-Id: I687a275ed1a35fbc5a08b8e40fc3875da175ef05
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoClose all open fds before executing a loader 99/81699/1
Hwankyu Jhun [Thu, 28 Jul 2016 02:43:36 +0000 (11:43 +0900)]
Close all open fds before executing a loader

Change-Id: I556b4083c7bbe333d1cfe0708d40daed151bcacd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoMake / slave only once for mounting legacy path 51/81251/2 accepted/tizen/common/20160725.153610 accepted/tizen/ivi/20160725.064942 accepted/tizen/mobile/20160725.064937 accepted/tizen/tv/20160725.064935 accepted/tizen/wearable/20160725.064931 submit/tizen/20160725.053309
Semun Lee [Mon, 25 Jul 2016 05:17:55 +0000 (14:17 +0900)]
Make / slave only once for mounting legacy path

Change-Id: I9f8cc6053095ba6218facb64596cbefa96f9c11f
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoMount app legacy path as private explicitly 47/81247/1
Semun Lee [Mon, 25 Jul 2016 04:50:58 +0000 (13:50 +0900)]
Mount app legacy path as private explicitly

Change-Id: Iba25fb8619d04b235a6bb421a9a9fa2c7f58b695
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoUse mount namespace for backward compatiblity 75/79075/13 accepted/tizen/common/20160722.135230 accepted/tizen/ivi/20160724.042111 accepted/tizen/mobile/20160724.042026 accepted/tizen/tv/20160724.042044 accepted/tizen/wearable/20160724.042058 submit/tizen/20160722.091303
Semun Lee [Fri, 8 Jul 2016 05:59:41 +0000 (14:59 +0900)]
Use mount namespace for backward compatiblity

To supported applications with hardcoded path in their code,
mount application root path to the legacy path.

Change-Id: I3cfe9937f281b52c02cda80836f2a59d5cf31625
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoAdd RTLD_NODELETE flag for dlopen 74/80774/2 accepted/tizen/common/20160720.173337 accepted/tizen/ivi/20160720.103553 accepted/tizen/mobile/20160720.103459 accepted/tizen/tv/20160720.103520 accepted/tizen/wearable/20160720.103533 submit/tizen/20160720.064256
Semun Lee [Wed, 20 Jul 2016 06:30:44 +0000 (15:30 +0900)]
Add RTLD_NODELETE flag for dlopen

preloaded libraries and application executable does not
need to be unloaded during process lifetime.

Change-Id: Iebf86725d24b33e12df1d163089547933b8f8031
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoChange exec label for launchpad-loader 50/80750/1 accepted/tizen/ivi/20160720.055557 accepted/tizen/mobile/20160720.055459 accepted/tizen/tv/20160720.055519 accepted/tizen/wearable/20160720.055538 submit/tizen/20160720.045129
Junghoon Park [Wed, 20 Jul 2016 04:28:12 +0000 (13:28 +0900)]
Change exec label for launchpad-loader

Change-Id: Ibb145e37aaf739bd909c613e9dfee15e72b36f75
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoAdjust coding style 41/80141/3
Hwankyu Jhun [Fri, 15 Jul 2016 01:38:48 +0000 (10:38 +0900)]
Adjust coding style

Change-Id: Ifac527030c050873f7e3be4d59716d224c7a2eaa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoChange exec label to System::Privileged 16/80216/2 accepted/tizen/common/20160718.155444 accepted/tizen/ivi/20160718.103655 accepted/tizen/mobile/20160718.103617 accepted/tizen/tv/20160718.103640 accepted/tizen/wearable/20160718.103628 submit/tizen/20160718.011717
Junghoon Park [Fri, 15 Jul 2016 08:32:22 +0000 (17:32 +0900)]
Change exec label to System::Privileged

Change-Id: I9139384ec602dca9333d96b133bd67b797cf1c4e
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoFix the exception about getting the file name 88/79988/2 accepted/tizen/common/20160714.152748 accepted/tizen/ivi/20160714.054014 accepted/tizen/mobile/20160714.053944 accepted/tizen/tv/20160714.053955 accepted/tizen/wearable/20160714.053949 submit/tizen/20160714.002239
Hwankyu Jhun [Thu, 14 Jul 2016 02:01:23 +0000 (11:01 +0900)]
Fix the exception about getting the file name

Change-Id: I1d3426a1a9f31fd93e81a92841a678d55a4c30a0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix bug about disposing candidate processes 84/79784/1 accepted/tizen/common/20160713.050731 accepted/tizen/ivi/20160713.094154 accepted/tizen/mobile/20160713.094137 accepted/tizen/tv/20160713.094148 accepted/tizen/wearable/20160713.094134 submit/tizen/20160713.041351
Junghoon Park [Wed, 13 Jul 2016 02:44:38 +0000 (11:44 +0900)]
Fix bug about disposing candidate processes

Change-Id: Ic8c6ad7fec3960ac8d0a173015831982c0876f64
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoTrim debug messages 37/79437/1
Junghoon Park [Mon, 11 Jul 2016 10:09:13 +0000 (19:09 +0900)]
Trim debug messages

Change-Id: I1ba22ddca3763ae4f201a715fb73799e1697ad99
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoAdd the appid and the pkgid to the enviornment 14/78914/4 accepted/tizen/common/20160712.150350 accepted/tizen/ivi/20160711.031208 accepted/tizen/mobile/20160711.030800 accepted/tizen/tv/20160711.030710 accepted/tizen/wearable/20160711.030724 submit/tizen/20160711.014306
Hwankyu Jhun [Thu, 7 Jul 2016 10:06:22 +0000 (19:06 +0900)]
Add the appid and the pkgid to the enviornment

Change-Id: I6bed8f9e62f738944c1702536bddd61576f07a81
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoModify closing all open fds 70/78570/1 accepted/tizen/common/20160707.171555 accepted/tizen/ivi/20160707.043156 accepted/tizen/mobile/20160707.043235 accepted/tizen/tv/20160707.043046 accepted/tizen/wearable/20160707.043226 submit/tizen/20160707.014055
Hwankyu Jhun [Wed, 6 Jul 2016 06:24:16 +0000 (15:24 +0900)]
Modify closing all open fds

Change-Id: Iafd862f582e9eb9bbeecf542c2dafcb510798cfb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoRemove unnecessary capability 06/77306/5 accepted/tizen/common/20160629.223411 accepted/tizen/ivi/20160630.004003 accepted/tizen/mobile/20160630.004021 accepted/tizen/tv/20160630.003946 accepted/tizen/wearable/20160630.004016 submit/tizen/20160629.112854
Hwankyu Jhun [Wed, 29 Jun 2016 11:56:52 +0000 (20:56 +0900)]
Remove unnecessary capability

Change-Id: I3b5083baebaad31c2cdf4d614079c1a380abb548
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdjust timeout value 98/77198/1 accepted/tizen/common/20160703.130007 accepted/tizen/ivi/20160629.070842 accepted/tizen/mobile/20160629.071005 accepted/tizen/tv/20160629.070735 accepted/tizen/wearable/20160629.070822 submit/tizen/20160629.021322
Junghoon Park [Wed, 29 Jun 2016 05:05:52 +0000 (14:05 +0900)]
Adjust timeout value

Change-Id: I0b1173d7059573f020920edd06ce468ca6c3210e
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoExclude unused headers 66/76666/1 accepted/tizen/common/20160629.222503 accepted/tizen/common/20160703.125813 accepted/tizen/ivi/20160629.015658 accepted/tizen/ivi/20160629.020620 accepted/tizen/mobile/20160629.015617 accepted/tizen/mobile/20160629.020701 accepted/tizen/tv/20160629.015732 accepted/tizen/tv/20160629.020557 accepted/tizen/wearable/20160629.015536 accepted/tizen/wearable/20160629.020645 submit/tizen/20160627.042541 submit/tizen/20160628.070541
Hawnkyu Jhun [Sat, 25 Jun 2016 11:01:16 +0000 (20:01 +0900)]
Exclude unused headers

Change-Id: I44a4636d9cd1d418e8f87244a0a5215359253640
Signed-off-by: Hawnkyu Jhun <h.jhun@samsung.com>
8 years agoPrevent app sockets from being deleted by attacker 15/76215/2
Hwankyu Jhun [Thu, 23 Jun 2016 06:59:20 +0000 (15:59 +0900)]
Prevent app sockets from being deleted by attacker

- Requires:
https://review.tizen.org/gerrit/#/c/76214/

Change-Id: Ibb967aea776c58f491352cace203a2f7ae5fb872
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoRemove others permission about the user's directory 86/76186/1
Hwankyu Jhun [Thu, 23 Jun 2016 05:54:10 +0000 (14:54 +0900)]
Remove others permission about the user's directory

Change-Id: I48f782f8dcfde1f7bed9639771339344a692289c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoPrepare a server socket of an application 36/73536/18 accepted/tizen/common/20160627.191237 accepted/tizen/ivi/20160623.121725 accepted/tizen/mobile/20160623.121627 accepted/tizen/tv/20160623.121637 accepted/tizen/wearable/20160623.121658 submit/tizen/20160622.081450
Hwankyu Jhun [Wed, 8 Jun 2016 11:22:30 +0000 (20:22 +0900)]
Prepare a server socket of an application

- The launchpad socket path are changed to "/run/aul/daemons/<uid>/".
- Before executing an application, the child process creates an aul socket
of the application for communication. And then, the application uses the socket.
- Requires
[aul] https://review.tizen.org/gerrit/#/c/73534/
[amd] https://review.tizen.org/gerrit/#/c/73537/

Change-Id: I872b5faf1681725e51a3c5647ff1195ebeaabba9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix issue about making duplicated loaders 13/75713/1 accepted/tizen/common/20160621.184550 accepted/tizen/ivi/20160622.020837 accepted/tizen/mobile/20160622.020725 accepted/tizen/tv/20160622.020743 accepted/tizen/wearable/20160622.020817 submit/tizen/20160621.063119
Junghoon Park [Tue, 21 Jun 2016 05:55:56 +0000 (14:55 +0900)]
Fix issue about making duplicated loaders

Change-Id: I8550b50c6fed43e8aa704fcf3b895d09ad82b43d
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoAdd null checkers 96/75696/1 submit/tizen/20160621.051841
Junghoon Park [Tue, 21 Jun 2016 05:04:49 +0000 (14:04 +0900)]
Add null checkers

Change-Id: I6efa4c92f7467484ca8ea95a3625985773145eaa
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoapply app-label-monitor to remove CAP_MAC_ADMIN 23/75023/4 submit/tizen/20160621.023237
Junghoon Park [Thu, 16 Jun 2016 09:56:50 +0000 (18:56 +0900)]
apply app-label-monitor to remove CAP_MAC_ADMIN

Change-Id: I49d5d19a778fbd7e39ab363cddcd99adf571728f
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoSelect the loader to launch explicitly 87/74887/1
Junghoon Park [Thu, 16 Jun 2016 04:01:40 +0000 (13:01 +0900)]
Select the loader to launch explicitly

- Caller may add extra data about loader name to launch an app.
- If it exist, the loader will be used with first priority.

Change-Id: I195341ab46a6f2610997ff18fada3c3ddc8d2a88
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoRemove alternative-loader in case of common loader 55/74855/1 accepted/tizen/common/20160616.151744 accepted/tizen/ivi/20160616.105026 accepted/tizen/mobile/20160616.104944 accepted/tizen/tv/20160616.104956 accepted/tizen/wearable/20160616.105010 submit/tizen/20160616.003540
Junghoon Park [Thu, 16 Jun 2016 01:56:30 +0000 (10:56 +0900)]
Remove alternative-loader in case of common loader

Change-Id: I423ae6d6e3243d36172eafad913ccf3032b890dd
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoFix line buffer size 14/74614/2 accepted/tizen/common/20160616.151602 accepted/tizen/ivi/20160616.002914 accepted/tizen/mobile/20160616.002842 accepted/tizen/tv/20160616.002826 accepted/tizen/wearable/20160616.002754 submit/tizen/20160615.073423
Hwankyu Jhun [Wed, 15 Jun 2016 02:17:51 +0000 (11:17 +0900)]
Fix line buffer size

Change-Id: I8465638c20736ffc60e2980255114b93b3706152
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd the root path to the environment 36/74336/1 accepted/tizen/common/20160615.193250 accepted/tizen/ivi/20160615.001455 accepted/tizen/mobile/20160615.001621 accepted/tizen/tv/20160615.001535 accepted/tizen/wearable/20160615.001548 submit/tizen/20160614.094055
Hwankyu Jhun [Tue, 14 Jun 2016 02:47:36 +0000 (11:47 +0900)]
Add the root path to the environment

Change-Id: I08a4bdc9013a25ef447324d920301bd8bc05d8eb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix checking the caller process 44/73344/2
Hwankyu Jhun [Tue, 7 Jun 2016 23:13:18 +0000 (08:13 +0900)]
Fix checking the caller process

The launchpad-process-pool is a user daemon. If the caller process
is a system user, the launchpad-process-pool cannot access the proc
info of the caller process.

Change-Id: Idf60fbaeda8e9a80201b226882287f1aef25001e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoRemove loader configurable information 43/72643/4 accepted/tizen/common/20160610.175919 accepted/tizen/ivi/20160609.091502 accepted/tizen/mobile/20160609.091810 accepted/tizen/tv/20160609.091455 accepted/tizen/wearable/20160609.091505 submit/tizen/20160609.012628
Junghoon Park [Wed, 8 Jun 2016 08:12:39 +0000 (17:12 +0900)]
Remove loader configurable information

Change-Id: I3324b47b0af081ecab866901dcf28f3b81ebb0ff
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoUse script file for making launchpad-loader 02/73002/6 accepted/tizen/common/20160607.194649 accepted/tizen/ivi/20160607.235332 accepted/tizen/mobile/20160607.235304 accepted/tizen/tv/20160607.235322 accepted/tizen/wearable/20160607.235313 submit/tizen/20160607.082137
Junghoon Park [Fri, 3 Jun 2016 12:30:09 +0000 (21:30 +0900)]
Use script file for making launchpad-loader

Change-Id: I1794da64cb448381c404c89acbd618d93fd93ac6
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoRemove calling chmod() 14/72914/1
Junghoon Park [Fri, 3 Jun 2016 04:37:31 +0000 (13:37 +0900)]
Remove calling chmod()

- The socket file is at /run/user/5001/.launchpad-process-pool-sock
- Even if it is allowed to other and groups, x permission for /run/user/5001/ is only
  allowed by 5001 user. therefore, we don't need to change it.
- In case of socket activation, it is srw-r--r--

Change-Id: I4af7398ca3f7e3f82eb7980f1b3e18e5e2c4bbc7
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoRemove calling chmod() 06/72906/1
Junghoon Park [Fri, 3 Jun 2016 04:12:35 +0000 (13:12 +0900)]
Remove calling chmod()

 - We don't need to allow permissions for groups and others any more

Change-Id: If08062de7a2a8914744130b8f7fb5c6080748321
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoAdd RTLD_DEEPBIND option to dlopen for app executable 12/72812/1 accepted/tizen/common/20160606.141720 accepted/tizen/ivi/20160606.040603 accepted/tizen/mobile/20160606.035204 accepted/tizen/tv/20160606.035903 accepted/tizen/wearable/20160606.040107 submit/tizen/20160603.030057
Semun Lee [Thu, 2 Jun 2016 11:41:30 +0000 (20:41 +0900)]
Add RTLD_DEEPBIND option to dlopen for app executable

When an application contains some private shared libraries
in its own /lib directory and a private shared library
has duplicated symbol with platform provided shared library,
application executable could not able to use the symbol
in its private shared library.

RTLD_DEEPBIND flag make the application executable to be
able to use the symbol in its private shared library.

Change-Id: Ic692f435e13033b5be2f6255a9a27051544c5a71
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoReuse h/w type loader to reduce idle memory 42/71842/6 accepted/tizen/common/20160606.141607 accepted/tizen/ivi/20160602.230748 accepted/tizen/mobile/20160602.230729 accepted/tizen/tv/20160602.230711 accepted/tizen/wearable/20160602.230646 submit/tizen/20160602.040935
Junghoon Park [Wed, 1 Jun 2016 11:20:33 +0000 (20:20 +0900)]
Reuse h/w type loader to reduce idle memory

 - remove common type and s/w type loader
 - convert h/w type loader to common type and s/w type if they are needed

Change-Id: I05130276d12457272f731df64a8721c9cac0ef11
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoDefine an enumerated type about arguments 09/72609/3
Hwankyu Jhun [Wed, 1 Jun 2016 23:37:03 +0000 (08:37 +0900)]
Define an enumerated type about arguments

Change-Id: I3c8175cf7811b4a1f5e933a3718a168a71b9b369
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix setting wrong argv for launchpad-loader 99/72499/1 accepted/tizen/common/20160601.134139 accepted/tizen/ivi/20160602.023116 accepted/tizen/mobile/20160602.023245 accepted/tizen/tv/20160602.022927 accepted/tizen/wearable/20160602.023050 submit/tizen/20160601.091452
Semun Lee [Wed, 1 Jun 2016 08:38:19 +0000 (17:38 +0900)]
Fix setting wrong argv for launchpad-loader

We set argv to be very long (1024) to contain cmdline of launched app
in launchpad-loaders. When loader_extra is null the long argv is not set
properly and the launchpad app's environment variables might be corrupted.

Change-Id: I96381f0caa5b66a25873c66c543ecec1e2612460
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
8 years agoTrim memory after initializing lib 68/71568/2
Junghoon Park [Thu, 26 May 2016 03:12:00 +0000 (12:12 +0900)]
Trim memory after initializing lib

- result (common type)
 CODE     DATA     PEAK     PSS     3D      GEM(PSS)      SWAP      COMMAND
 6628     3052    10192     3332        0        0        0      /usr/bin/launchpad-loader <== before
 6628     2392    10204     2669        0        0        0      /usr/bin/launchpad-loader <== after

Change-Id: Id621669dddc691b1ba5bb12bbae07d86f1cda212
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoAdd slot for csapp 49/71149/1 accepted/tizen/common/20160525.155803 accepted/tizen/ivi/20160525.234932 accepted/tizen/mobile/20160525.234900 accepted/tizen/tv/20160525.234915 accepted/tizen/wearable/20160525.234920 submit/tizen/20160524.073932 submit/tizen/20160524.100942
Junghoon Park [Tue, 24 May 2016 08:43:22 +0000 (17:43 +0900)]
Add slot for csapp

Change-Id: Ifeeaa7a3c9e7227033f77e756dea298e81a3a2a4
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoSupport script file to register static loaders 43/69843/3 accepted/tizen/common/20160520.170912 accepted/tizen/ivi/20160520.002320 accepted/tizen/mobile/20160520.002331 accepted/tizen/tv/20160520.002251 accepted/tizen/wearable/20160520.002312 submit/tizen/20160519.002157 submit/tizen/20160519.045032
Junghoon Park [Tue, 17 May 2016 04:38:53 +0000 (13:38 +0900)]
Support script file to register static loaders

Change-Id: Ic518d538de87a5f1401f503dd4d4862f433008fb
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoClose all open fds before executing a file 98/68098/2 accepted/tizen/common/20160502.183748 accepted/tizen/ivi/20160503.012021 accepted/tizen/mobile/20160503.011930 accepted/tizen/tv/20160503.011946 accepted/tizen/wearable/20160503.012006 submit/tizen/20160502.110651
Hwankyu Jhun [Mon, 2 May 2016 08:14:14 +0000 (17:14 +0900)]
Close all open fds before executing a file

Change-Id: I18e3e9bbf707fbefbacd997452516fcbe2e1a4bc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdjust coding rules 61/68061/3 submit/tizen/20160502.063802
Hwankyu Jhun [Mon, 2 May 2016 05:13:08 +0000 (14:13 +0900)]
Adjust coding rules

Change-Id: Id16e76786fdc78b9f4b849e01e8d12e541b8fabe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoDisable lazy-loader feature for mobile/wearable profile 63/66963/3 accepted/tizen/common/20160427.053711 accepted/tizen/ivi/20160426.234049 accepted/tizen/mobile/20160426.233941 accepted/tizen/tv/20160426.234030 accepted/tizen/wearable/20160426.234012 submit/tizen/20160426.022112
Junghoon Park [Fri, 22 Apr 2016 08:38:33 +0000 (17:38 +0900)]
Disable lazy-loader feature for mobile/wearable profile

Change-Id: I6815af915d258155d9336063f00e504c731a2899
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoProvide detection methods to make candidate processes 70/66670/4 accepted/tizen/common/20160422.172203 accepted/tizen/ivi/20160425.044209 accepted/tizen/mobile/20160425.044138 accepted/tizen/tv/20160425.044203 accepted/tizen/wearable/20160425.044149 submit/tizen/20160422.084925
Junghoon Park [Wed, 20 Apr 2016 07:58:37 +0000 (16:58 +0900)]
Provide detection methods to make candidate processes

Change-Id: Ie47b053388c03c69fb744b0c087daeb471e99597
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoFix the exceptions about dbus connection 47/65747/4 accepted/tizen/common/20160414.143054 accepted/tizen/ivi/20160415.014901 accepted/tizen/mobile/20160415.014929 accepted/tizen/tv/20160415.014912 accepted/tizen/wearable/20160415.014922 submit/tizen/20160414.081825
Hwankyu Jhun [Tue, 12 Apr 2016 09:09:26 +0000 (18:09 +0900)]
Fix the exceptions about dbus connection

Change-Id: Id5aabe9c7ee0407488291d69eb47876a437f88b0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd debug message about dead process information 35/65735/1
Junghoon Park [Tue, 12 Apr 2016 08:39:00 +0000 (17:39 +0900)]
Add debug message about dead process information

Change-Id: I313e61baf0636caf284daa1c886b3c2ab8b83552
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoFix handle leak 92/63692/2
Hwankyu Jhun [Fri, 25 Mar 2016 08:00:04 +0000 (17:00 +0900)]
Fix handle leak

Change-Id: If858bfa21bdc9aeee693497a3b9f3bdc8f44d2e1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd feature LAZY_LOADER for wrt-loader 18/64118/2 accepted/tizen/common/20160406.144159 accepted/tizen/ivi/20160406.071941 accepted/tizen/mobile/20160406.071838 accepted/tizen/tv/20160406.071857 accepted/tizen/wearable/20160406.071919 submit/tizen/20160406.013051
Junghoon Park [Wed, 6 Apr 2016 01:13:04 +0000 (10:13 +0900)]
Add feature LAZY_LOADER for wrt-loader

 - wrt-loader should be prepared after the first launch of a web app

Change-Id: I55bfb2aac4c67d9c417088cfd534af55bffb8730
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoUse snprintf for better security 76/63176/5 accepted/tizen/common/20160324.173145 accepted/tizen/ivi/20160324.131601 accepted/tizen/mobile/20160324.132845 accepted/tizen/tv/20160324.132640 accepted/tizen/wearable/20160324.132626 submit/tizen/20160324.101535
Myungki Lee [Thu, 24 Mar 2016 08:13:20 +0000 (17:13 +0900)]
Use snprintf for better security

Change-Id: I13aad6818f4882a48ad03329f2be724f9652cbf7
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoCheck caller pid to reject invalid request 65/62665/2 accepted/tizen/common/20160321.150450 accepted/tizen/mobile/20160321.113402 accepted/tizen/tv/20160321.113423 accepted/tizen/wearable/20160321.113442 submit/tizen/20160321.014821
Junghoon Park [Thu, 17 Mar 2016 09:19:47 +0000 (18:19 +0900)]
Check caller pid to reject invalid request

- 'User' and 'System' label are only allowed

Change-Id: Id372592ed76f8373c4eeba2818ae885ef0dcf246
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoEnable compiler option -Werror 69/61569/1
Junghoon Park [Wed, 9 Mar 2016 02:48:55 +0000 (11:48 +0900)]
Enable compiler option -Werror

Change-Id: Ib92b0f8583e29adb7394922cae0e1f21015d4c33
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoFix gdbus type for system users 60/61460/1 accepted/tizen/common/20160310.070841 accepted/tizen/ivi/20160309.010518 accepted/tizen/mobile/20160309.010418 accepted/tizen/tv/20160309.010437 accepted/tizen/wearable/20160309.010454 submit/tizen/20160308.223551
Hwankyu Jhun [Tue, 8 Mar 2016 04:43:36 +0000 (13:43 +0900)]
Fix gdbus type for system users

- Use system bus instead of session bus

Change-Id: Id81b373b2aa460374010bed1090841123c01042d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix the returned value of __poll_fd() 75/61075/1
Hwankyu Jhun [Fri, 4 Mar 2016 00:30:33 +0000 (09:30 +0900)]
Fix the returned value of __poll_fd()

Change-Id: I934d3a9ef5eb47f0bd8035ceeb272d56604376a5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoUse elm api to set Evas_Object win, bg, conform 53/60453/1 accepted/tizen/common/20160303.110420 submit/tizen/20160302.020949 submit/tizen/20160303.054603
Myungki Lee [Fri, 26 Feb 2016 08:31:19 +0000 (17:31 +0900)]
Use elm api to set Evas_Object win, bg, conform

Change-Id: Icd8e28e2a7acd452b190198f1652d3d17247c51a
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoAdd api-version to the environment 58/60258/4 accepted/tizen/ivi/20160225.082536 accepted/tizen/mobile/20160225.082451 accepted/tizen/tv/20160225.082501 accepted/tizen/wearable/20160225.082521 submit/tizen/20160225.031452
Hwankyu Jhun [Wed, 24 Feb 2016 11:27:36 +0000 (20:27 +0900)]
Add api-version to the environment

Change-Id: Ib62a49520d3467042b36b6e1c4ef0d5deaf8e03f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd trace point 85/60085/1
Myungki Lee [Tue, 23 Feb 2016 08:21:28 +0000 (17:21 +0900)]
Add trace point

Change-Id: I31c72ef80ff1dfe625b2b51551b895d3d62379c9
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoSend result to caller only once 18/59518/1
Sangyoon Jang [Tue, 16 Feb 2016 08:11:07 +0000 (17:11 +0900)]
Send result to caller only once

Change-Id: Ib89df45e88ba46a5cf3505221388d51f26b011ab
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoSet the close-on-exec flag on the client fds 72/59472/1 accepted/tizen/ivi/20160218.023256 accepted/tizen/mobile/20160216.060110 accepted/tizen/tv/20160216.060132 accepted/tizen/wearable/20160216.060149 submit/tizen/20160216.021005 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002
Hwankyu Jhun [Mon, 15 Feb 2016 23:16:53 +0000 (08:16 +0900)]
Set the close-on-exec flag on the client fds

The launchpad-loader process has the client fds of the launchpad.

Change-Id: I14bb82da93ab38ba2d6e24be9dd5d86c314e44f7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoSupport 2.x apps which use their own shared libraries 27/59227/5 accepted/tizen/mobile/20160216.001612 accepted/tizen/tv/20160216.001625 accepted/tizen/wearable/20160216.001644 submit/tizen/20160215.013052
Sangyoon Jang [Thu, 11 Feb 2016 12:39:03 +0000 (21:39 +0900)]
Support 2.x apps which use their own shared libraries

Some applications from Tizen 2.x were compiled with '-rpath'
pointing at their lib directory which starts as '/opt/usr/apps/...'.
But this path is not adapted to Tizen 3.0.

We cannot set LD_LIBRARY_PATH directly by some security issues,
we make the loader have empty rpath to the dynamic linker looks in the CWD
forcely. And then, change working directory before calling dlopen() to
find libraries well.

Change-Id: I8111e5ca087ea07c52866d77deb7f53332957346
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoUse vconf_notify_key_changed API for getting sys hwacc 23/58223/2 accepted/tizen/mobile/20160129.002311 accepted/tizen/tv/20160129.002331 accepted/tizen/wearable/20160129.002347 submit/tizen/20160128.120001
Hwankyu Jhun [Thu, 28 Jan 2016 10:56:25 +0000 (19:56 +0900)]
Use vconf_notify_key_changed API for getting sys hwacc

Change-Id: I3794b4befc45ec8b469b529868b860b9581e37e3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix memory leak 50/58150/1 accepted/tizen/mobile/20160128.050646 accepted/tizen/tv/20160128.050711 accepted/tizen/wearable/20160128.050738 submit/tizen/20160128.025209
Junghoon Park [Thu, 28 Jan 2016 02:47:11 +0000 (11:47 +0900)]
Fix memory leak

Change-Id: I36bcbdd2ac175dbc5c23dda7a40cd5fe23eb1085
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoPreinitialize app root path to improve performance 30/58030/1 accepted/tizen/mobile/20160128.010553 accepted/tizen/tv/20160128.010605 accepted/tizen/wearable/20160128.010633 submit/tizen/20160127.083815
Junghoon Park [Wed, 27 Jan 2016 02:47:05 +0000 (11:47 +0900)]
Preinitialize app root path to improve performance

Change-Id: Iacbf6a7becbb1aa2038b5b7ae0901f53cfcc8fc9
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoInstall preload-list for launchpad-loader 02/57902/1 accepted/tizen/mobile/20160126.050627 accepted/tizen/tv/20160126.050644 accepted/tizen/wearable/20160126.050708 submit/tizen/20160126.013029
Hwankyu Jhun [Tue, 26 Jan 2016 00:57:29 +0000 (09:57 +0900)]
Install preload-list for launchpad-loader

Change-Id: If46f6ee4d469a7d78d9a7e28a00dec0d0adff229
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd loader type for js-native 66/57666/3 accepted/tizen/mobile/20160122.080502 accepted/tizen/tv/20160122.080526 accepted/tizen/wearable/20160122.080541 submit/tizen/20160122.050256
Junghoon Park [Thu, 21 Jan 2016 10:59:56 +0000 (19:59 +0900)]
Add loader type for js-native

Change-Id: Ia4bcdb32a872212269c7f44b4ec77fe26e8ef404
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoAdd launchpad_loader_get_extra() 29/57229/8
Daehyeon Jung [Tue, 19 Jan 2016 09:22:22 +0000 (18:22 +0900)]
Add launchpad_loader_get_extra()

- Get passed bundle from aul_add_loader()

Change-Id: If4e62e16d063133b81467352bc9614d5f8470c3d
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
8 years agoMake default slots after amd was launched 13/57413/1 accepted/tizen/mobile/20160122.031123 accepted/tizen/tv/20160122.031205 accepted/tizen/wearable/20160122.031209 submit/tizen/20160120.053111
Junghoon Park [Wed, 20 Jan 2016 02:32:29 +0000 (11:32 +0900)]
Make default slots after amd was launched

Change-Id: Id904e2c46822729b0e154ba93043830c9c7b3b20
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoUse gdbus instead of dbus-glib 00/57300/1 accepted/tizen/mobile/20160119.043317 accepted/tizen/tv/20160119.043344 accepted/tizen/wearable/20160119.043408 submit/tizen/20160119.013756
Hwankyu Jhun [Tue, 19 Jan 2016 00:26:11 +0000 (09:26 +0900)]
Use gdbus instead of dbus-glib

Change-Id: I457f0b662fcbb24acfd7251b903aaee906955300
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoAdd option on app_pkt_t type 43/57243/2 accepted/tizen/mobile/20160119.001343 accepted/tizen/tv/20160119.001358 accepted/tizen/wearable/20160119.001417 submit/tizen/20160118.103423
Hwankyu Jhun [Mon, 18 Jan 2016 10:23:01 +0000 (19:23 +0900)]
Add option on app_pkt_t type

Change-Id: I7f395b11adbe65849a12aa6ae0d7c16002808714
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoset env for subcompositor 87/57087/1
Daehyeon Jung [Fri, 15 Jan 2016 05:32:44 +0000 (14:32 +0900)]
set env for subcompositor

Change-Id: If981d4a5f0b7baf69869810670e336546c1b8f72
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
8 years agoModify launchpad-process-pool to support wrt-loader 91/51791/7 accepted/tizen/mobile/20160114.063045 accepted/tizen/tv/20160114.063125 accepted/tizen/wearable/20160114.063216 submit/tizen/20160114.010839
Junghoon Park [Thu, 14 Jan 2016 00:44:13 +0000 (09:44 +0900)]
Modify launchpad-process-pool to support wrt-loader

Change-Id: If90b2fbbef5eed2ee1ea80605e7f4b4ab3b5affd
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoFix preparing candidate process 34/56134/2 accepted/tizen/mobile/20160105.043931 accepted/tizen/tv/20160105.043952 accepted/tizen/wearable/20160105.044017 submit/tizen/20160104.233150
Hwankyu Jhun [Mon, 4 Jan 2016 23:23:32 +0000 (08:23 +0900)]
Fix preparing candidate process

- When the candidate process is terminated by unknown cause, launchpad
will be preparing new loader process.
- If the prepared flag is not false, the candidate process can't
connect to launchpad.

Change-Id: I1d87c7ed663076e9db8ea5c93166a2370c0869bf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix socket buffer size 74/55874/1 submit/tizen/20151230.025906
Hwankyu Jhun [Wed, 30 Dec 2015 02:56:13 +0000 (11:56 +0900)]
Fix socket buffer size

- Socket buffer size is changed 65535 to 131071.

Change-Id: I0118d238caa7b7a17e1736689eb7793f82a72b03
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoFix memory leak 29/55529/2
Myungki Lee [Thu, 24 Dec 2015 08:21:46 +0000 (17:21 +0900)]
Fix memory leak

Change-Id: I5e67478ffe1db5b40821536503be4a8f302f7e02
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoApply coding rule 00/54300/6 accepted/tizen/mobile/20151215.083047 accepted/tizen/tv/20151215.083114 accepted/tizen/wearable/20151215.083156 submit/tizen/20151215.071017 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Hwankyu Jhun [Tue, 15 Dec 2015 00:30:09 +0000 (09:30 +0900)]
Apply coding rule

Change-Id: I08a0324648a099ec3137770a9aec21307f40fcda
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoDon't wait launched application is ready 11/53611/5 accepted/tizen/mobile/20151214.233909 accepted/tizen/mobile/20151214.234005 accepted/tizen/tv/20151214.233929 accepted/tizen/tv/20151214.234022 accepted/tizen/wearable/20151214.233948 accepted/tizen/wearable/20151214.234043 submit/tizen/20151214.102546 submit/tizen/20151214.102838
Sangyoon Jang [Tue, 8 Dec 2015 06:16:21 +0000 (15:16 +0900)]
Don't wait launched application is ready

amd will wait by itself

Change-Id: Id01f848eb53936a866df9f9e2fca41d794b2d163
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdd app_id to the launch signal. 50/54050/1 accepted/tizen/mobile/20151214.233224 accepted/tizen/tv/20151214.233234 accepted/tizen/wearable/20151214.233256 submit/tizen/20151214.052927
Myungki Lee [Fri, 11 Dec 2015 05:38:04 +0000 (14:38 +0900)]
Add app_id to the launch signal.

Change-Id: Ie94be12733d94a6e8743f702576c258d41f83b29
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
8 years agoProvide loader id to launch an app directly 49/53849/4 accepted/tizen/mobile/20151210.225938 accepted/tizen/tv/20151210.225947 accepted/tizen/wearable/20151210.230008 submit/tizen/20151210.083837
Junghoon Park [Wed, 9 Dec 2015 23:48:34 +0000 (08:48 +0900)]
Provide loader id to launch an app directly

Some apps may want to launch apps without loader.

Change-Id: I2a3cbdf60bc6e7982ad127e8aee585cf1695a2e7
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoConnect launchpad-process-pool after loader create-callback is called 91/53691/1 accepted/tizen/mobile/20151209.024938 accepted/tizen/tv/20151209.025002 accepted/tizen/wearable/20151209.025038 submit/tizen/20151209.011056
Junghoon Park [Wed, 9 Dec 2015 00:32:26 +0000 (09:32 +0900)]
Connect launchpad-process-pool after loader create-callback is called

Change-Id: I8207d723290a4c4461bd9f620a64353efccc922d
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoFix bug about handling ECORE_FD_ERROR 47/53647/1 accepted/tizen/mobile/20151208.130626 accepted/tizen/tv/20151208.130644 accepted/tizen/wearable/20151208.130702 submit/tizen/20151208.112031
Junghoon Park [Tue, 8 Dec 2015 11:10:20 +0000 (20:10 +0900)]
Fix bug about handling ECORE_FD_ERROR

Change-Id: I919a23bdebfebf5b827f534d9f50ad05e0ca31cd
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoRefactor launchpad to support adding slots dynamically 19/53219/8 accepted/tizen/mobile/20151208.125759 accepted/tizen/tv/20151208.125818 accepted/tizen/wearable/20151208.125834 submit/tizen/20151208.055026
Junghoon Park [Thu, 3 Dec 2015 00:42:30 +0000 (09:42 +0900)]
Refactor launchpad to support adding slots dynamically

Change-Id: Ia65d28a2115c2359c80516bf5268eb054a51f062
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoMake candidate processes after an app is resumed 50/52750/3 accepted/tizen/mobile/20151202.041001 accepted/tizen/tv/20151202.041027 accepted/tizen/wearable/20151202.041055 submit/tizen/20151202.005650
Junghoon Park [Wed, 2 Dec 2015 00:48:08 +0000 (09:48 +0900)]
Make candidate processes after an app is resumed

Change-Id: Iae2cfda022e9662af6a071bd53db1b065b6f7106
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
8 years agoUse '_GNU_SOURCE' instead of '__USE_GNU' 44/53044/2
Sangyoon Jang [Tue, 1 Dec 2015 06:29:40 +0000 (15:29 +0900)]
Use '_GNU_SOURCE' instead of '__USE_GNU'

__USE_GNU is not intended to be used outside glibc headers, it is
defined internally.
if it defined our source, it can break glibc headers.

Change-Id: Id47e24264f40501116f1e11854d09c9c27c15088
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRemove unnecessary argv buffer for launchpad-loader 23/53023/1
Sangyoon Jang [Tue, 1 Dec 2015 00:17:22 +0000 (09:17 +0900)]
Remove unnecessary argv buffer for launchpad-loader

Change-Id: I1e749d708b62e157a4ef1b757860f30a60a71d33
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoRefactor launchpad.c to use g_main_loop 11/52511/8 accepted/tizen/mobile/20151126.073405 accepted/tizen/tv/20151126.073425 accepted/tizen/wearable/20151126.073436 submit/tizen/20151126.063237
Junghoon, Park [Wed, 25 Nov 2015 02:20:13 +0000 (11:20 +0900)]
Refactor launchpad.c to use g_main_loop

- use g_main_loop
- fix bug about making candicate process

Change-Id: Icc1efcbc2c1f9466baacfd1f40c226be8257efb9
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
8 years agoremove calling __sleep_safe func 42/52542/2 accepted/tizen/mobile/20151124.233954 accepted/tizen/tv/20151124.234005 accepted/tizen/wearable/20151124.234014 submit/tizen/20151124.090357
Hwankyu Jhun [Tue, 24 Nov 2015 08:39:16 +0000 (17:39 +0900)]
remove calling __sleep_safe func

Change-Id: Ib551ff6e0e98fb38a9c3d7a32ea8e77ba27259c2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agofix launchpad fd smack issue 49/52249/3 accepted/tizen/mobile/20151122.234132 accepted/tizen/tv/20151122.234138 accepted/tizen/wearable/20151122.234145 submit/tizen/20151120.075035
Hwankyu Jhun [Fri, 20 Nov 2015 06:56:18 +0000 (15:56 +0900)]
fix launchpad fd smack issue

- close all open fds before launching an app
- change launchpad-process-pool socket name
- fix socket activation about launchpad-process-pool

Change-Id: Ic1035199a2401e2d322230468cd3764adb4547b4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 years agoadd common code into launchpad_lib file 94/51894/2 accepted/tizen/mobile/20151117.094225 accepted/tizen/tv/20151117.094250 accepted/tizen/wearable/20151117.094253 submit/tizen/20151117.063236
Junghoon, Park [Tue, 17 Nov 2015 05:28:57 +0000 (14:28 +0900)]
add common code into launchpad_lib file

Change-Id: I08f9c42dc8dfd09d098b93376210ed1f4821ec22
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>
8 years agoadd library for making launchpad-loader 35/51735/4 accepted/tizen/mobile/20151116.074826 accepted/tizen/tv/20151116.074843 accepted/tizen/wearable/20151116.074850 submit/tizen/20151116.052223
Junghoon, Park [Fri, 13 Nov 2015 08:45:35 +0000 (17:45 +0900)]
add library for making launchpad-loader

Change-Id: Ic929c89fa1f8b77172846423a1658009b142a99e
Signed-off-by: Junghoon, Park <jh9216.park@samsung.com>