summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-06-16Remove alternative-loader in case of common loadersubmit/tizen/20160616.003540accepted/tizen/wearable/20160616.105010accepted/tizen/tv/20160616.104956accepted/tizen/mobile/20160616.104944accepted/tizen/ivi/20160616.105026accepted/tizen/common/20160616.151744Junghoon Park1-1/+0
Change-Id: I423ae6d6e3243d36172eafad913ccf3032b890dd Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-06-15Fix line buffer sizesubmit/tizen/20160615.073423accepted/tizen/wearable/20160616.002754accepted/tizen/tv/20160616.002826accepted/tizen/mobile/20160616.002842accepted/tizen/ivi/20160616.002914accepted/tizen/common/20160616.151602Hwankyu Jhun2-19/+21
Change-Id: I8465638c20736ffc60e2980255114b93b3706152 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-06-14Add the root path to the environmentsubmit/tizen/20160614.094055accepted/tizen/wearable/20160615.001548accepted/tizen/tv/20160615.001535accepted/tizen/mobile/20160615.001621accepted/tizen/ivi/20160615.001455accepted/tizen/common/20160615.193250Hwankyu Jhun1-0/+2
Change-Id: I08a4bdc9013a25ef447324d920301bd8bc05d8eb Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-06-08Fix checking the caller processHwankyu Jhun1-5/+7
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>
2016-06-08Remove loader configurable informationsubmit/tizen/20160609.012628accepted/tizen/wearable/20160609.091505accepted/tizen/tv/20160609.091455accepted/tizen/mobile/20160609.091810accepted/tizen/ivi/20160609.091502accepted/tizen/common/20160610.175919Junghoon Park1-19/+0
Change-Id: I3324b47b0af081ecab866901dcf28f3b81ebb0ff Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-06-07Use script file for making launchpad-loadersubmit/tizen/20160607.082137accepted/tizen/wearable/20160607.235313accepted/tizen/tv/20160607.235322accepted/tizen/mobile/20160607.235304accepted/tizen/ivi/20160607.235332accepted/tizen/common/20160607.194649Junghoon Park14-397/+482
Change-Id: I1794da64cb448381c404c89acbd618d93fd93ac6 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-06-03Remove calling chmod()Junghoon Park1-7/+0
- 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>
2016-06-03Remove calling chmod()Junghoon Park1-6/+0
- 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>
2016-06-02Add RTLD_DEEPBIND option to dlopen for app executablesubmit/tizen/20160603.030057accepted/tizen/wearable/20160606.040107accepted/tizen/tv/20160606.035903accepted/tizen/mobile/20160606.035204accepted/tizen/ivi/20160606.040603accepted/tizen/common/20160606.141720Semun Lee1-1/+2
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>
2016-06-01Reuse h/w type loader to reduce idle memorysubmit/tizen/20160602.040935accepted/tizen/wearable/20160602.230646accepted/tizen/tv/20160602.230711accepted/tizen/mobile/20160602.230729accepted/tizen/ivi/20160602.230748accepted/tizen/common/20160606.141607Junghoon Park6-130/+96
- 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>
2016-06-02Define an enumerated type about argumentsHwankyu Jhun4-30/+44
Change-Id: I3c8175cf7811b4a1f5e933a3718a168a71b9b369 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-06-01Fix setting wrong argv for launchpad-loadersubmit/tizen/20160601.091452accepted/tizen/wearable/20160602.023050accepted/tizen/tv/20160602.022927accepted/tizen/mobile/20160602.023245accepted/tizen/ivi/20160602.023116accepted/tizen/common/20160601.134139Semun Lee1-1/+1
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>
2016-05-25Trim memory after initializing libJunghoon Park1-0/+2
- 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>
2016-05-24Add slot for csappsubmit/tizen/20160524.100942submit/tizen/20160524.073932accepted/tizen/wearable/20160525.234920accepted/tizen/tv/20160525.234915accepted/tizen/mobile/20160525.234900accepted/tizen/ivi/20160525.234932accepted/tizen/common/20160525.155803Junghoon Park2-0/+16
Change-Id: Ifeeaa7a3c9e7227033f77e756dea298e81a3a2a4 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-05-17Support script file to register static loaderssubmit/tizen/20160519.045032submit/tizen/20160519.002157accepted/tizen/wearable/20160520.002312accepted/tizen/tv/20160520.002251accepted/tizen/mobile/20160520.002331accepted/tizen/ivi/20160520.002320accepted/tizen/common/20160520.170912Junghoon Park8-76/+304
Change-Id: Ic518d538de87a5f1401f503dd4d4862f433008fb Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-05-02Close all open fds before executing a filesubmit/tizen/20160502.110651accepted/tizen/wearable/20160503.012006accepted/tizen/tv/20160503.011946accepted/tizen/mobile/20160503.011930accepted/tizen/ivi/20160503.012021accepted/tizen/common/20160502.183748Hwankyu Jhun1-0/+10
Change-Id: I18e3e9bbf707fbefbacd997452516fcbe2e1a4bc Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-05-02Adjust coding rulessubmit/tizen/20160502.063802Hwankyu Jhun12-268/+434
Change-Id: Id16e76786fdc78b9f4b849e01e8d12e541b8fabe Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-04-22Disable lazy-loader feature for mobile/wearable profilesubmit/tizen/20160426.022112accepted/tizen/wearable/20160426.234012accepted/tizen/tv/20160426.234030accepted/tizen/mobile/20160426.233941accepted/tizen/ivi/20160426.234049accepted/tizen/common/20160427.053711Junghoon Park1-4/+0
Change-Id: I6815af915d258155d9336063f00e504c731a2899 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-04-21Provide detection methods to make candidate processessubmit/tizen/20160422.084925accepted/tizen/wearable/20160425.044149accepted/tizen/tv/20160425.044203accepted/tizen/mobile/20160425.044138accepted/tizen/ivi/20160425.044209accepted/tizen/common/20160422.172203Junghoon Park2-44/+70
Change-Id: Ie47b053388c03c69fb744b0c087daeb471e99597 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-04-12Fix the exceptions about dbus connectionsubmit/tizen/20160414.081825accepted/tizen/wearable/20160415.014922accepted/tizen/tv/20160415.014912accepted/tizen/mobile/20160415.014929accepted/tizen/ivi/20160415.014901accepted/tizen/common/20160414.143054Hwankyu Jhun1-6/+17
Change-Id: Id5aabe9c7ee0407488291d69eb47876a437f88b0 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-04-12Add debug message about dead process informationJunghoon Park1-1/+2
Change-Id: I313e61baf0636caf284daa1c886b3c2ab8b83552 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-04-05Fix handle leakHwankyu Jhun1-1/+16
Change-Id: If858bfa21bdc9aeee693497a3b9f3bdc8f44d2e1 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-04-06Add feature LAZY_LOADER for wrt-loadersubmit/tizen/20160406.013051accepted/tizen/wearable/20160406.071919accepted/tizen/tv/20160406.071857accepted/tizen/mobile/20160406.071838accepted/tizen/ivi/20160406.071941accepted/tizen/common/20160406.144159Junghoon Park3-12/+43
- 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>
2016-03-24Use snprintf for better securitysubmit/tizen/20160324.101535accepted/tizen/wearable/20160324.132626accepted/tizen/tv/20160324.132640accepted/tizen/mobile/20160324.132845accepted/tizen/ivi/20160324.131601accepted/tizen/common/20160324.173145Myungki Lee3-2/+8
Change-Id: I13aad6818f4882a48ad03329f2be724f9652cbf7 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-03-18Check caller pid to reject invalid requestsubmit/tizen/20160321.014821accepted/tizen/wearable/20160321.113442accepted/tizen/tv/20160321.113423accepted/tizen/mobile/20160321.113402accepted/tizen/common/20160321.150450Junghoon Park3-0/+36
- 'User' and 'System' label are only allowed Change-Id: Id372592ed76f8373c4eeba2818ae885ef0dcf246 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-03-09Enable compiler option -WerrorJunghoon Park1-0/+1
Change-Id: Ib92b0f8583e29adb7394922cae0e1f21015d4c33 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-03-08Fix gdbus type for system userssubmit/tizen/20160308.223551accepted/tizen/wearable/20160309.010454accepted/tizen/tv/20160309.010437accepted/tizen/mobile/20160309.010418accepted/tizen/ivi/20160309.010518accepted/tizen/common/20160310.070841Hwankyu Jhun1-1/+1
- Use system bus instead of session bus Change-Id: Id81b373b2aa460374010bed1090841123c01042d Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-03-04Fix the returned value of __poll_fd()Hwankyu Jhun1-9/+9
Change-Id: I934d3a9ef5eb47f0bd8035ceeb272d56604376a5 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-02-26Use elm api to set Evas_Object win, bg, conformsubmit/tizen/20160303.054603submit/tizen/20160302.020949accepted/tizen/common/20160303.110420Myungki Lee1-3/+3
Change-Id: Icd8e28e2a7acd452b190198f1652d3d17247c51a Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-02-25Add api-version to the environmentsubmit/tizen/20160225.031452accepted/tizen/wearable/20160225.082521accepted/tizen/tv/20160225.082501accepted/tizen/mobile/20160225.082451accepted/tizen/ivi/20160225.082536Hwankyu Jhun2-0/+4
Change-Id: Ib62a49520d3467042b36b6e1c4ef0d5deaf8e03f Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-02-23Add trace pointMyungki Lee3-0/+6
Change-Id: I31c72ef80ff1dfe625b2b51551b895d3d62379c9 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-02-16Send result to caller only onceSangyoon Jang1-2/+0
Change-Id: Ib89df45e88ba46a5cf3505221388d51f26b011ab Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
2016-02-16Set the close-on-exec flag on the client fdssubmit/tizen_ivi/20160217.000002submit/tizen_ivi/20160217.000000submit/tizen_common/20160218.142243submit/tizen/20160216.021005accepted/tizen/wearable/20160216.060149accepted/tizen/tv/20160216.060132accepted/tizen/mobile/20160216.060110accepted/tizen/ivi/20160218.023256Hwankyu Jhun3-4/+13
The launchpad-loader process has the client fds of the launchpad. Change-Id: I14bb82da93ab38ba2d6e24be9dd5d86c314e44f7 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-02-12Support 2.x apps which use their own shared librariessubmit/tizen/20160215.013052accepted/tizen/wearable/20160216.001644accepted/tizen/tv/20160216.001625accepted/tizen/mobile/20160216.001612Sangyoon Jang5-10/+69
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>
2016-01-28Use vconf_notify_key_changed API for getting sys hwaccsubmit/tizen/20160128.120001accepted/tizen/wearable/20160129.002347accepted/tizen/tv/20160129.002331accepted/tizen/mobile/20160129.002311Hwankyu Jhun1-10/+21
Change-Id: I3794b4befc45ec8b469b529868b860b9581e37e3 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-01-28Fix memory leaksubmit/tizen/20160128.025209accepted/tizen/wearable/20160128.050738accepted/tizen/tv/20160128.050711accepted/tizen/mobile/20160128.050646Junghoon Park1-1/+1
Change-Id: I36bcbdd2ac175dbc5c23dda7a40cd5fe23eb1085 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-01-27Preinitialize app root path to improve performancesubmit/tizen/20160127.083815accepted/tizen/wearable/20160128.010633accepted/tizen/tv/20160128.010605accepted/tizen/mobile/20160128.010553Junghoon Park4-2/+20
Change-Id: Iacbf6a7becbb1aa2038b5b7ae0901f53cfcc8fc9 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-01-26Install preload-list for launchpad-loadersubmit/tizen/20160126.013029accepted/tizen/wearable/20160126.050708accepted/tizen/tv/20160126.050644accepted/tizen/mobile/20160126.050627Hwankyu Jhun4-4/+9
Change-Id: If46f6ee4d469a7d78d9a7e28a00dec0d0adff229 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-01-22Add loader type for js-nativesubmit/tizen/20160122.050256accepted/tizen/wearable/20160122.080541accepted/tizen/tv/20160122.080526accepted/tizen/mobile/20160122.080502Junghoon Park5-13/+37
Change-Id: Ia4bcdb32a872212269c7f44b4ec77fe26e8ef404 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-01-21Add launchpad_loader_get_extra()Daehyeon Jung5-19/+44
- Get passed bundle from aul_add_loader() Change-Id: If4e62e16d063133b81467352bc9614d5f8470c3d Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
2016-01-20Make default slots after amd was launchedsubmit/tizen/20160120.053111accepted/tizen/wearable/20160122.031209accepted/tizen/tv/20160122.031205accepted/tizen/mobile/20160122.031123Junghoon Park2-5/+9
Change-Id: Id904e2c46822729b0e154ba93043830c9c7b3b20 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-01-19Use gdbus instead of dbus-glibsubmit/tizen/20160119.013756accepted/tizen/wearable/20160119.043408accepted/tizen/tv/20160119.043344accepted/tizen/mobile/20160119.043317Hwankyu Jhun3-50/+47
Change-Id: I457f0b662fcbb24acfd7251b903aaee906955300 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-01-18Add option on app_pkt_t typesubmit/tizen/20160118.103423accepted/tizen/wearable/20160119.001417accepted/tizen/tv/20160119.001358accepted/tizen/mobile/20160119.001343Hwankyu Jhun2-2/+6
Change-Id: I7f395b11adbe65849a12aa6ae0d7c16002808714 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2016-01-15set env for subcompositorDaehyeon Jung2-0/+12
Change-Id: If981d4a5f0b7baf69869810670e336546c1b8f72 Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
2016-01-14Modify launchpad-process-pool to support wrt-loadersubmit/tizen/20160114.010839accepted/tizen/wearable/20160114.063216accepted/tizen/tv/20160114.063125accepted/tizen/mobile/20160114.063045Junghoon Park2-2/+17
Change-Id: If90b2fbbef5eed2ee1ea80605e7f4b4ab3b5affd Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
2016-01-05Fix preparing candidate processsubmit/tizen/20160104.233150accepted/tizen/wearable/20160105.044017accepted/tizen/tv/20160105.043952accepted/tizen/mobile/20160105.043931Hwankyu Jhun1-1/+3
- 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>
2015-12-30Fix socket buffer sizesubmit/tizen/20151230.025906Hwankyu Jhun1-1/+1
- Socket buffer size is changed 65535 to 131071. Change-Id: I0118d238caa7b7a17e1736689eb7793f82a72b03 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2015-12-29Fix memory leakMyungki Lee1-3/+6
Change-Id: I5e67478ffe1db5b40821536503be4a8f302f7e02 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2015-12-15Apply coding rulesubmit/tizen_common/20151229.154718submit/tizen_common/20151229.144031submit/tizen/20151215.071017accepted/tizen/wearable/20151215.083156accepted/tizen/tv/20151215.083114accepted/tizen/mobile/20151215.083047Hwankyu Jhun4-162/+137
Change-Id: I08a0324648a099ec3137770a9aec21307f40fcda Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2015-12-14Don't wait launched application is readysubmit/tizen/20151214.102838submit/tizen/20151214.102546accepted/tizen/wearable/20151214.234043accepted/tizen/wearable/20151214.233948accepted/tizen/tv/20151214.234022accepted/tizen/tv/20151214.233929accepted/tizen/mobile/20151214.234005accepted/tizen/mobile/20151214.233909Sangyoon Jang1-34/+3
amd will wait by itself Change-Id: Id01f848eb53936a866df9f9e2fca41d794b2d163 Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>