platform/core/appfw/launchpad.git
12 months agoRelease version 0.24.4 58/312158/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20240607.172820
Sangyoon Jang [Wed, 5 Jun 2024 01:05:25 +0000 (10:05 +0900)]
Release version 0.24.4

Changes:
 - Add to mount lib directory for rpk

Change-Id: Idbeff900cfa5bf5e60211e12e0078d21aa5c4f89
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
12 months agoAdd to mount lib directory for rpk 13/311913/2
Sangyoon Jang [Thu, 30 May 2024 07:49:31 +0000 (16:49 +0900)]
Add to mount lib directory for rpk

- The RPK supports Libs sharing. Libs are packaged in /lib directory in
rpk package. And then it's mounted to user package's /lib directory path.

Change-Id: Ie7fc4b118eb293d995a507f104a1c4be55430867
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
13 months agoRelease version 0.24.3 41/310941/1 accepted/tizen/7.0/unified/20240513.035107
Hwankyu Jhun [Fri, 10 May 2024 04:00:17 +0000 (13:00 +0900)]
Release version 0.24.3

Changes:
 - Fix memory leak

Change-Id: Ia44777b726095276eca606fa7814a01c15ef1018
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoFix memory leak 32/310932/2
Hwankyu Jhun [Fri, 10 May 2024 01:28:18 +0000 (10:28 +0900)]
Fix memory leak

The allocated raw variable must be release before returning the function.

Change-Id: I1f7a4de45448b6ea5779c523476e3c045f66fd78
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoRelease version 0.24.2 08/310108/1 accepted/tizen/7.0/unified/20240425.011915
Hwankyu Jhun [Tue, 23 Apr 2024 00:56:42 +0000 (09:56 +0900)]
Release version 0.24.2

Changes:
 - Modify gadget mount directories

Change-Id: I357fcf644e825fe76bd7fa1a7cd73fd0f3291163
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoModify gadget mount directories 81/310081/6
Hwankyu Jhun [Mon, 22 Apr 2024 07:16:34 +0000 (16:16 +0900)]
Modify gadget mount directories

The path of the gadget mount is changed to '<root_path>/bin'.
Before mounting the path, the launchpad tries to change mount namespace
to the loader process if the launch request should be sent to the loader
process. And then, the launchpad tries to mount to the bin path.

Change-Id: I19b9d11542441a473456ca77823fcc5654e48fc8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoRelease version 0.24.1 69/298869/1
Hwankyu Jhun [Thu, 14 Sep 2023 10:17:00 +0000 (19:17 +0900)]
Release version 0.24.1

Changes:
 - Modify disposal loader handler

Change-Id: I640538460db3002f20155957e589b06ffda244b4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoModify disposal loader handler 64/298864/1
Hwankyu Jhun [Thu, 14 Sep 2023 10:11:52 +0000 (19:11 +0900)]
Modify disposal loader handler

The result should be delivered to the caller before sending SIGKILL signal.

Change-Id: I3b8aebcc7a6fb511c7184cd556977dbcfda8d8f6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoRelease version 0.24.0 16/298816/1
Hwankyu Jhun [Thu, 14 Sep 2023 01:45:45 +0000 (10:45 +0900)]
Release version 0.24.0

Changes:
 - Add a new function for loader termination

Change-Id: I8ef7349a826edce3463df815cd1dff881cc4e8f7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoAdd a new function for loader termination 12/298812/4
Hwankyu Jhun [Thu, 14 Sep 2023 00:43:21 +0000 (09:43 +0900)]
Add a new function for loader termination

The launchpad_loader_dispose() function is added to dispose the loader iself.
The function sends a disposal request to the launchpad-process-pool.
When the launchpad-process-pool gets the request, it sends SIGKILL signal to
the running loader process.

Change-Id: I93889f3272704d140ce7f1ae86b328fbda384d13
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.10 22/292622/1 accepted/tizen/7.0/unified/20230511.180840
Hwankyu Jhun [Wed, 10 May 2023 07:06:25 +0000 (07:06 +0000)]
Release version 0.23.10

Changes:
 - Fix SMACK issue

Change-Id: I69ccfbe0a0f89e4dfee81f54d0d34eda9ccf8640
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix SMACK issue 02/292602/2
Hwankyu Jhun [Wed, 10 May 2023 06:11:32 +0000 (06:11 +0000)]
Fix SMACK issue

If calling security_manager_prepare_app2() is failed, the process cannot
access the executable file. In that time, the SMACK denied issue can be occurred.

Change-Id: I009a19d471463f6948a2fbb193169da9a0d7ef89
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.9 47/292547/1
Hwankyu Jhun [Wed, 10 May 2023 00:54:36 +0000 (00:54 +0000)]
Release version 0.23.9

Changes:
 - Fix build break issue

Change-Id: I309b0e99361155947483db4008b1ebd81fc26aaa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix build break issue 46/292546/1
Hwankyu Jhun [Wed, 10 May 2023 00:48:39 +0000 (00:48 +0000)]
Fix build break issue

To use the CAPI in the C++ code, the function should be defined with
external linkage.

Change-Id: I9cd0bd140e67b56dc130f6819821bb477f0fed71
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.8 44/292544/1
Hwankyu Jhun [Wed, 10 May 2023 00:15:55 +0000 (00:15 +0000)]
Release version 0.23.8

Changes:
 - Fix a bug about app-defined-loader
 - Modify app-defined-loader for linux container

Change-Id: Id13f7ca55a156bfb4c102c40d4622625e46f5ce7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoModify app-defined-loader for linux container
Hwankyu Jhun [Wed, 3 May 2023 06:57:40 +0000 (06:57 +0000)]
Modify app-defined-loader for linux container

Some product developer wants to use the app-defined-loader for executing
an application which will be attached to the linux container.
This patch adds the plugin function call while calling the OnCreate() method.

Change-Id: Ied702faffcc6097b22f71646ee1a21f318b5ab31
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix a bug about app-defined-loader
Hwankyu Jhun [Wed, 3 May 2023 06:26:13 +0000 (06:26 +0000)]
Fix a bug about app-defined-loader

The arguments has to be changed before executing an application.

Change-Id: I64d97656bd8e8481ff3711e7f9904ceb51228957
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.7 25/292025/1
Changgyu Choi [Wed, 26 Apr 2023 08:34:15 +0000 (17:34 +0900)]
Release version 0.23.7

Changes:
 - Apply cpu boosting

Change-Id: If75e57c2bf5b084c8411cd86b9888e64f37551d5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoApply cpu boosting 20/292020/2
Changgyu Choi [Wed, 26 Apr 2023 07:57:28 +0000 (16:57 +0900)]
Apply cpu boosting

This patch applies cpu boosting while calling __before_loop()

Change-Id: I1dbe82f54c443ae07eb6388c4f162824708c5476
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.23.6 00/292000/1
Changgyu Choi [Wed, 26 Apr 2023 04:40:58 +0000 (13:40 +0900)]
Release version 0.23.6

Changes:
  - Add hw logs into before loop each steps

Change-Id: I3e79857d63ed5220b2069dfcee58634c6050654a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd hw logs into before loop each steps 97/291997/1
Changgyu Choi [Wed, 26 Apr 2023 03:33:36 +0000 (12:33 +0900)]
Add hw logs into before loop each steps

This patch is for debugging.

Change-Id: Ic57544c126bc6ddd70a9bef57796c7a3db28d3a7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.23.5 17/290817/1
Hwankyu Jhun [Mon, 3 Apr 2023 23:58:29 +0000 (23:58 +0000)]
Release version 0.23.5

Changes:
 - Check file existence

Change-Id: If25901e10f577315d47e58a98d5865a58939ece2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoCheck file existence 16/290816/1
Hwankyu Jhun [Mon, 3 Apr 2023 23:04:03 +0000 (23:04 +0000)]
Check file existence

When checking cpu idle, the launchpad checks whether the file is ready or not.
If it's not ready, the launchpad skips the loader creation.

Change-Id: Ide2f9067e5930ecb7d319f0b196659ee42b380fc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.4 49/290649/1
Hwankyu Jhun [Thu, 30 Mar 2023 06:45:36 +0000 (06:45 +0000)]
Release version 0.23.4

Changes:
 - Fix wrong initialization

Change-Id: Ie854e077be3c6e52ce821071a5e376c850e6d381
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix wrong initialization 48/290648/1
Hwankyu Jhun [Thu, 30 Mar 2023 06:26:48 +0000 (15:26 +0900)]
Fix wrong initialization

Before creating the loaders, the launchpad-process-pool should read the vconf values.
While creating the loaders, the launchpad-process-pool checks whether
the system memory is low or not. If the system memory is low state,
the launchpad-process-pool makes the state of the loader context is paused.
This patch fixes it.

Change-Id: Ieb14f997f2bd4bcdce58beb911c493997571ea24
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.3 38/289938/1
Hwankyu Jhun [Thu, 16 Mar 2023 01:40:51 +0000 (01:40 +0000)]
Release version 0.23.3

Changes:
 - Fix wrong function call

Change-Id: I7895ed95d739eb1ca26fc5e1aeff13131cabf833
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix wrong function call 35/289935/1
Hwankyu Jhun [Thu, 16 Mar 2023 01:11:07 +0000 (01:11 +0000)]
Fix wrong function call

This patch fixes the wrong argument. The argument should start
after the key string.

Change-Id: Ibb63faa4b0fc469c8ab1e8798f2c4d6ca00c920f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.2 03/289403/1
Hwankyu Jhun [Tue, 7 Mar 2023 06:04:07 +0000 (06:04 +0000)]
Release version 0.23.2

Changes:
 - Add logs for debugging loader creation

Change-Id: Icfbbe1f6fed01504a66005e6512c22683adbf0ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd logs for debugging loader creation 98/289398/2
Hwankyu Jhun [Tue, 7 Mar 2023 05:43:15 +0000 (05:43 +0000)]
Add logs for debugging loader creation

To debug loader creation, new logs are added.

Change-Id: Ib152e00d265c23c2f2dd7f5d7e41f8964f887ff8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.1 75/289375/1
Hwankyu Jhun [Mon, 6 Mar 2023 22:45:55 +0000 (22:45 +0000)]
Release version 0.23.1

Changes:
 - Add a missing memory free

Change-Id: I71d2c57a59e2b556152af47d3d73a755d11f5d9a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd a missing memory free 25/289325/1
Changgyu Choi [Mon, 6 Mar 2023 09:32:56 +0000 (18:32 +0900)]
Add a missing memory free

Change-Id: I474cbd953309f5d90970dc8cb5680e17eabb47fb
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.23.0 03/289303/1
Hwankyu Jhun [Mon, 6 Mar 2023 05:58:10 +0000 (05:58 +0000)]
Release version 0.23.0

Changes:
 - Delete unused files after process shutdown
 - Add a new option to the loader configuration

Change-Id: Ifb39f74e9c880408f6b660add85df89a94fb1511
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd a new option to the loader configuration 97/289297/4
Hwankyu Jhun [Mon, 6 Mar 2023 04:46:44 +0000 (04:46 +0000)]
Add a new option to the loader configuration

The "CONDITION_PATH_EXISTS" option is added to the loader configuration.
The option is for the "ON_BOOT_TIMEOUT" option. If the path does not exist,
the launchpad does not prepare the candidate process. And, the launchpad
adds a timer to wait until the path exists. The interval of the timer is 100 ms.

Change-Id: Ib7050e1ddfb94caf1e82fec22d3098085dbaa84d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoDelete unused files after process shutdown 89/289289/1
Hwankyu Jhun [Fri, 3 Mar 2023 04:49:55 +0000 (04:49 +0000)]
Delete unused files after process shutdown

After the process is terminated, the launchpad deletes unnecessary files.
To debug & profile dotnet applications, the coreclr creates "clr-debug-pipe-"
and "dotnet-diagnostic-" files. The launchpad deletes the files if the files
exists. To avoid blocking the main thread of the launchpad, this patch
creates a new worker thread that is "RecycleBin+".

Change-Id: I68e02359ed2ec79801b46da2f45ef54b5c35f4b9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.22.6 15/289215/1
Hwankyu Jhun [Fri, 3 Mar 2023 00:00:21 +0000 (00:00 +0000)]
Release version 0.22.6

Changes:
 - Fix wrong initialization

Change-Id: I0004c9859084edaa0ccb8d520e530dbd09bb488c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix wrong initialization 12/289212/1
Hwankyu Jhun [Thu, 2 Mar 2023 23:34:02 +0000 (23:34 +0000)]
Fix wrong initialization

The memory monitor initialization should be called before adding default slots.
If the threshold is greater than 100, the memory monitor should be disabled.

Change-Id: I64ce56d5d73c3a61bccec425827567ad37c2c640
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.22.5 00/289000/1 accepted/tizen/7.0/unified/20230228.093320
jh9216.park [Mon, 27 Feb 2023 07:55:38 +0000 (02:55 -0500)]
Release version 0.22.5

Changes:
 - Fix lib dir
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: I2e4c69f4a6a96b6616975ba5b53004750f7ac6c5

2 years agoFix lib dir 98/288998/1
jh9216.park [Mon, 27 Feb 2023 06:14:05 +0000 (01:14 -0500)]
Fix lib dir

Change-Id: I8c44ae1304579b250937d5568ae751b36e9854b2
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
(cherry picked from commit 5cbc42a2864441f9c20978031fa35d8df0903cd2)

2 years agoRelease version 0.22.4 87/288387/1 accepted/tizen/7.0/unified/20230216.140344
Changgyu Choi [Thu, 16 Feb 2023 05:19:10 +0000 (14:19 +0900)]
Release version 0.22.4

Changes:
 - Fix library path for aarch64

Change-Id: Ib6bd9ad0b5cd1d570261553f610ada7c48d27075
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix library path for aarch64
Changgyu Choi [Thu, 16 Feb 2023 05:04:33 +0000 (14:04 +0900)]
Fix library path for aarch64

Change-Id: I8aa04dccb3d66aadccd31f6571fbab1ad048736e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.22.3 81/287681/1
Hwankyu Jhun [Thu, 2 Feb 2023 07:38:18 +0000 (07:38 +0000)]
Release version 0.22.3

Changes:
 - Fix wrong condition of maximum count of cpu checker

Change-Id: Idc5cd13b598260e8bf281fc719307e9e2f9cdd5e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix wrong condition of maximum count of cpu checker
Hwankyu Jhun [Thu, 2 Feb 2023 07:30:39 +0000 (07:30 +0000)]
Fix wrong condition of maximum count of cpu checker

The return value should be compared with the INT_MIN.

Change-Id: I83cca8e386abafaecf925c035e239dba28189347
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.23.0 62/287662/1 accepted/tizen/7.0/unified/20230203.164130
Hwankyu Jhun [Thu, 2 Feb 2023 04:49:13 +0000 (04:49 +0000)]
Release version 0.23.0

Changes:
 - Add res pkgids to env

Change-Id: Ib8b492421492eae3dcbea30ea9d73f63336027d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd res pkgids to env
Sangyoon Jang [Mon, 21 Nov 2022 01:18:01 +0000 (10:18 +0900)]
Add res pkgids to env

Change-Id: I920242fa6eda3bf634f527f83b46b89c3bd0eef0
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRelease version 0.22.1 71/287571/1 accepted/tizen/7.0/unified/20230202.173323
Hwankyu Jhun [Tue, 31 Jan 2023 22:55:21 +0000 (22:55 +0000)]
Release version 0.22.1

Changes:
 - Modify loader priority feature

Change-Id: I7da0d502d698f57c3bab12b5bfa148c63080926c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoModify loader priority feature
Hwankyu Jhun [Tue, 31 Jan 2023 06:35:46 +0000 (06:35 +0000)]
Modify loader priority feature

After this patch is applied, the loader priority feature is basically activated.
The platform developer can adjust a scheduling priority using
the loader configuration file.
The 'SCEHD_PRIORITY' tag is added for the loader process.
The loader developer can set the scheduling priority as below:
+------------------------------------------------------------------------------+
| [LOADER]                                                                     |
| NAME hw-loader                                                               |
| ...                                                                          |
| SCEHD_PRIORITY         -20                                                   |
+------------------------------------------------------------------------------+

The range of the priority is -20 to 19. (-20 being the highest priority
and 19 being the lowest priority.)
If the loader has the sched priority tag, the child process sets
the scheduling priority using the configure information after the process
is created. And then, the loader process sets the priority to the normal
priority before running the main loop.

Change-Id: I531cc8381936ef4f6c9b8bad1640a0a8714f2777
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.22.0 31/287431/1 accepted/tizen/7.0/unified/20230131.162906
Hwankyu Jhun [Mon, 30 Jan 2023 01:34:27 +0000 (01:34 +0000)]
Release version 0.22.0

Changes:
 - Add new APIs for loader process

Change-Id: I75492c42ec84067b74c194f0736b466ea233db50
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd new APIs for loader process
Hwankyu Jhun [Thu, 19 Jan 2023 01:47:28 +0000 (01:47 +0000)]
Add new APIs for loader process

Before calling the loader_launch_cb() callback function, the loader process
has to make blocking all sub threads if a new thread is able to be created by
the sub thread. This patch adds new functions for the loader process.
Some loader process creates a new process while calling the security_manager_prepare_app2().
It makes an application launch failure issue.

When calling the loader_prelaunch_cb() callback function, the loader should call
the launchpad_loader_block_threads() to make blocking all sub threads.
And then, the loader calls the launchpad_loader_unblock_threads() while calling
the launchpad_launch_cb() callback function.

Even if the sub thread creates a new thread while calling the launchpad_loader_block_threads(),
it handles by the security_manager_prepare_app2() function.
This is not complete solution. But, this patch is able to reduce the risk about
the launch failure issues.

Adds:
 - launchpad_loader_block_threads()
 - launchpad_loader_unblock_threads()

Change-Id: Ib98d435507abbb0d3ebe0a5617d7fcb2509c154e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.21.9 17/286917/1
Hwankyu Jhun [Tue, 17 Jan 2023 00:26:32 +0000 (00:26 +0000)]
Release version 0.21.9

Changes:
 - Add retrying count check for waiting threads

Change-Id: I24bdcc999fd0f98e1cea34d49e553eb906b1a9bf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd retrying count check for waiting threads
Hwankyu Jhun [Mon, 16 Jan 2023 23:27:29 +0000 (23:27 +0000)]
Add retrying count check for waiting threads

If the retyring count is exceeded, the candidate process stops to wait for
threads ready. The maximum retrying count is 600. In the worst case,
the candidate process can be waitted until 30 seconds.

Change-Id: I4c73674c9f783499af1087c3855f56205a52a6ad
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.21.8 82/286882/1 accepted/tizen/7.0/unified/20230117.141744
Hwankyu Jhun [Mon, 16 Jan 2023 07:57:12 +0000 (07:57 +0000)]
Release version 0.21.8

Changes:
 - Fix build error
 - Wait for threads ready

Change-Id: I90f28eb1f9caccb0638c06f0105f13908abcbf8b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoWait for threads ready
Hwankyu Jhun [Mon, 16 Jan 2023 01:00:42 +0000 (01:00 +0000)]
Wait for threads ready

Before calling the security_manager_prepare_app2() function, all threads
of the loader process MUST be ready. After this patch is applied,
the loader porcess waits until threads are ready if the key-value data
related to the thread exists in the extra data.

Change-Id: I871b1a53e602dadc50134fca5575a54d6fc1b249
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix build error
Hwankyu Jhun [Mon, 16 Jan 2023 05:02:08 +0000 (05:02 +0000)]
Fix build error

If the priority change feature is enabled, the build error is occurred.
This patch fixes the build error. The TIZEN_FEATURE_PRIORITY_CHANGE feature
is not used in the loader process. It's removed from the app-defined-loader.

Change-Id: Ia6333c0195b5db3baaa7ce5aa6feb7cd7b08d23e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.21.7 31/286731/1
Hwankyu Jhun [Thu, 12 Jan 2023 06:54:34 +0000 (06:54 +0000)]
Release version 0.21.7

Changes:
 - Print appid for debugging

Change-Id: I01192fa243a31e7b6ac79c7823b019b0eb549163
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoPrint appid for debugging
Hwankyu Jhun [Thu, 12 Jan 2023 06:47:20 +0000 (06:47 +0000)]
Print appid for debugging

To debug which the application is calling security_manager_prepare_app_v2(),
the launchpad prints the application ID.
This patch fixes the typo and removes build warning message.

Change-Id: I3c38ff369ab4cc01aac2c8fdfd3d1e74c3f490ee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.21.6 86/286286/1 accepted/tizen/7.0/unified/20230105.155141 accepted/tizen/unified/20230104.172225
Hwankyu Jhun [Tue, 3 Jan 2023 06:24:26 +0000 (06:24 +0000)]
Release version 0.21.6

Changes:
 - Create aul worker thread before running the main loop

Change-Id: Icea70fcc50d99488bfa3a7b42986abd2e031a58f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoCreate aul worker thread before running the main loop 71/286271/1
Hwankyu Jhun [Tue, 3 Jan 2023 04:44:28 +0000 (04:44 +0000)]
Create aul worker thread before running the main loop

To improve launching performance, the launchpad library calls
the aul_launch_worker_init() function to prepare the aul worker thread.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/appfw/aul-1/+/286270

Change-Id: I09da6090fafc4148cb6532307a69cfeb7b703f70
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.21.5 88/286088/1 accepted/tizen/unified/20221228.170003
Changgyu Choi [Tue, 27 Dec 2022 09:58:30 +0000 (18:58 +0900)]
Release version 0.21.5

Changes:
 - Fix static analysis issues

Change-Id: I892a5db902e63797fd9b3a960e058722a45b66b3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix static analysis issues 81/286081/1
Changgyu Choi [Tue, 27 Dec 2022 08:49:41 +0000 (17:49 +0900)]
Fix static analysis issues

Change-Id: If01054da536adbfe4afc5a6fece227b5ba252264
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.21.4 95/285895/1 accepted/tizen/7.0/unified/20221223.170221 accepted/tizen/unified/20221227.170634
Changgyu Choi [Thu, 22 Dec 2022 06:26:26 +0000 (15:26 +0900)]
Release version 0.21.4

Changes:
 - Fix library path for aarch64

Change-Id: I636804d10678b84d8355569e538f4a04a0ad663a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix library path for aarch64 83/285883/1
Changgyu Choi [Thu, 22 Dec 2022 05:49:18 +0000 (14:49 +0900)]
Fix library path for aarch64

Change-Id: I1c576aadef1c5a096823c251d9416af5314f5eeb
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.21.3 37/285437/1 accepted/tizen/7.0/unified/20221216.024731
Hwankyu Jhun [Tue, 13 Dec 2022 00:58:49 +0000 (00:58 +0000)]
Release version 0.21.3

Changes:
 - Remove forker thread

Change-Id: I125713cf0ee0e4e2f2e2d635fa861b5df832ee9a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRemove forker thread 35/285435/1
Hwankyu Jhun [Mon, 12 Dec 2022 23:39:34 +0000 (23:39 +0000)]
Remove forker thread

If the main thread is calling the malloc() when the forker thread calls
the fork(), the child process will be always blocked if it calls the malloc().
This issue is similar to the previous commit that is
'0fbcdd1969571c72cc97a2a24dd76a76c42a18e3'.

Change-Id: Iec8f8083c79d5f8a3b08aa49be7bb8d972fbb5a7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.21.2 34/284634/1 accepted/tizen/7.0/unified/20221123.170844 accepted/tizen/unified/20221124.015422
Changgyu Choi [Tue, 22 Nov 2022 06:42:28 +0000 (15:42 +0900)]
Release version 0.21.2

Changes:
 - Fix static analysis issues

Change-Id: I94fc406a20e88da798d35f8561ccfd091252c72d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix static analysis issues 82/284582/4
Changgyu Choi [Mon, 21 Nov 2022 08:14:52 +0000 (17:14 +0900)]
Fix static analysis issues

Change-Id: I28acaeb2507b199fcbf1ac56c51120a0468c11b1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.21.1 00/284500/1
Hwankyu Jhun [Fri, 18 Nov 2022 06:18:26 +0000 (06:18 +0000)]
Release version 0.21.1

Changes:
 - Do not check candidate process state

Change-Id: I31279689af35625c4f0df1c37dc335c32cb62fa5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoDo not check candidate process state 95/284495/1
Hwankyu Jhun [Fri, 18 Nov 2022 05:45:11 +0000 (05:45 +0000)]
Do not check candidate process state

When starting launchpad, getting the vconf value can be failed.
Even if getting the vconf value is failed, the loader process should be
executed that has a onboot timeout feature in the configuration file.

Change-Id: Ie6d22f18aa711a325b445102bff16914f6ed4727
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.21.0 90/284490/1 accepted/tizen/7.0/unified/20221123.015514 accepted/tizen/unified/20221123.015012
Hwankyu Jhun [Fri, 18 Nov 2022 02:19:52 +0000 (02:19 +0000)]
Release version 0.21.0

Changes:
 - Make enumeration for commands
 - Modify slot addition function
 - Support timeout feature related on boot

Change-Id: I7d588a3ef2c0d3360d6f158d9938749e6eb78768
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoSupport timeout feature related on boot 89/284489/4
Hwankyu Jhun [Fri, 18 Nov 2022 00:26:46 +0000 (00:26 +0000)]
Support timeout feature related on boot

To exeucte the loader process forcedly, the feature is supported.
"ON_BOOT_TIMEOUT" tag is added for parsing on boot timeout value.
Even if the CPU threshold is not exceeded, the loader process will be
executed by the timer.

Change-Id: I6a588d28ed1c81685f5718b9c03a680d6d0631d3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoModify slot addition function 88/284488/3
Hwankyu Jhun [Thu, 17 Nov 2022 23:51:04 +0000 (23:51 +0000)]
Modify slot addition function

To reduce the number of parameters of the __add_slot() function,
the slot_info_t is added.

Change-Id: I487e1eb1172ff667531c7ad2e9c6a1ff3fdf3296
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoMake enumeration for commands 87/284487/1
Hwankyu Jhun [Thu, 17 Nov 2022 22:49:05 +0000 (22:49 +0000)]
Make enumeration for commands

This patch defines enumeration for launchpad commands.

Change-Id: Iee03d39889d7f1b0d2a051d97167f4045f1d23c8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.20.1 80/284280/1 accepted/tizen/7.0/unified/20221116.014838 accepted/tizen/unified/20221115.172902
Hwankyu Jhun [Tue, 15 Nov 2022 02:37:57 +0000 (02:37 +0000)]
Release version 0.20.1

Changes:
 - Move calling fork() to main thread

Change-Id: If303c4ccb6c820206133bf0fe0be931eca7c9d6e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoMove calling fork() to main thread 73/284273/1
Hwankyu Jhun [Tue, 15 Nov 2022 00:06:39 +0000 (00:06 +0000)]
Move calling fork() to main thread

After the previous patchset is applied, dyntranstion feature is not working fine
as below:
+------------------------------------------------------------------------------+
| security_manager_sync_threads_internal(671) > Not all threads synchronized:  |
|     threads left: 15                                                         |
| operator()(1013) > Can't properly setup application threads (Smack label &   |
|     capabilities) for application                                            |
+------------------------------------------------------------------------------+
To avoid the issue, creating a child process for a candidate process is moved to
the main thread.

Change-Id: If58914fb04b8b07782f624ffcc1b9342ad1a7b4a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.20.0 35/284235/1
Hwankyu Jhun [Mon, 14 Nov 2022 05:40:02 +0000 (05:40 +0000)]
Release version 0.20.0

Changes:
 - Create a child process in the worker thread

Change-Id: I411e8cc77ff26bb7f733c0d0c974312eb2acba57
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoCreate a child process in the worker thread 63/283963/5
Hwankyu Jhun [Tue, 8 Nov 2022 01:48:16 +0000 (01:48 +0000)]
Create a child process in the worker thread

To avoid blocking main thread of launchpad-process-pool, the worker thread
creates a child process.

Change-Id: I6cd499a6d6a5fc3d0d2d81f2256e299f4067eb68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.19.3 28/283128/1 accepted/tizen/unified/20221104.082311
Hwankyu Jhun [Tue, 18 Oct 2022 10:36:39 +0000 (10:36 +0000)]
Release version 0.19.3

Changes:
 - Add an environmant variable related to ASAN

Change-Id: Ib84a6127f8d2a0a041a07cb7b371a2a36f3b844b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd an environmant variable related to ASAN 23/283123/1
Hwankyu Jhun [Tue, 18 Oct 2022 09:22:59 +0000 (09:22 +0000)]
Add an environmant variable related to ASAN

While getting a launch request for ASAN debugging, the launchpad adds
'TIZEN_ASAN_ACTIVATION' environment variable for activating ASAN.

Related:
 - https://review.tizen.org/gerrit/#/c/platform/upstream/gcc/+/283119/

Change-Id: I5d6fdf47d872de4f7985e074ada550368ebaced3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.19.2 86/283086/1
Changgyu Choi [Tue, 18 Oct 2022 02:26:24 +0000 (11:26 +0900)]
Release version 0.19.2

Changes:
 - Fix static analysis issues

Change-Id: I5fd2f82cf99c3ab8360780f98db913f81496f378
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoFix static analysis issues 29/283029/1
Changgyu Choi [Mon, 17 Oct 2022 03:12:25 +0000 (12:12 +0900)]
Fix static analysis issues

Change-Id: I6ef67f0f1b6423756955a94370fbcee51b1d81ee
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.19.1 62/281462/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061016 accepted/tizen/7.0/unified/hotfix/20221116.105017 accepted/tizen/unified/20220920.050145 tizen_7.0_m2_release
Hwankyu Jhun [Mon, 19 Sep 2022 07:57:12 +0000 (07:57 +0000)]
Release version 0.19.1

Changes:
 - Fix resource leak

Change-Id: Idc73789582823bab17303215ca0d10b31b59bc3b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix resource leak 59/281459/1
Hwankyu Jhun [Mon, 19 Sep 2022 07:45:29 +0000 (07:45 +0000)]
Fix resource leak

The allocated memory has to be released. The xmlGetProp() returns the
allocated value. It should be released using xmlFree().

Change-Id: I031d76c587ad8dcab9141c585d732893d916eea9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.19.0 76/279276/2 accepted/tizen/unified/20220805.131913 submit/tizen/20220804.142848 submit/tizen/20220805.012935
Changgyu Choi [Fri, 5 Aug 2022 01:27:17 +0000 (10:27 +0900)]
Release version 0.19.0

Changes:
 - Implement launch of light user application

Change-Id: I090af4f7c74ff05a8fee7d1ea82df059a8a42dc7
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoImplement launch of light user application 38/278338/10
Ilho Kim [Tue, 19 Jul 2022 06:43:17 +0000 (15:43 +0900)]
Implement launch of light user application

Change-Id: I9ab41fe9e0dca4e2b40051a741182067a20f99f9
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 0.18.14 89/278689/1 accepted/tizen/unified/20220726.012248 submit/tizen/20220725.062229
Hwankyu Jhun [Mon, 25 Jul 2022 06:17:42 +0000 (15:17 +0900)]
Release version 0.18.14

Changes:
 - Send and receive candidate process ID

Change-Id: I619a48d0f237aebf3f2a3511c533ffb9fcd95919
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoSend and receive candidate process ID 83/278683/3
Hwankyu Jhun [Mon, 25 Jul 2022 05:36:00 +0000 (14:36 +0900)]
Send and receive candidate process ID

The hydra loader sends a launched candidate process ID to
launchpad-process-pool. When disposing the candidate process,
launchpad-process-pool checks whether the candidate process is running
or not to send SIGKILL signal. In the provious implementation, there is
a problem that the candidate process was not terminated while it's
executing.

Change-Id: I88fe989f80007d9c5b6f4bb381c5ad2d863be4e8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.13 67/278667/1 submit/tizen/20220725.024329
Changgyu Choi [Mon, 25 Jul 2022 02:41:06 +0000 (11:41 +0900)]
Release version 0.18.13

Changes:
 - Revert "Add cpu priority inheritance"

Change-Id: I70f6b48c13e553bba15b980cff572b5e46fc98b2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRevert "Add cpu priority inheritance" 58/278658/2
Changgyu Choi [Mon, 25 Jul 2022 01:45:27 +0000 (10:45 +0900)]
Revert "Add cpu priority inheritance"

This reverts commit b67f9e7e9a31a6b2ff4f2867d2c63edd9fda7209.

Change-Id: I80317085c0a8b60ce463ab855313716f27d8709f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoRelease version 0.18.12 57/277857/1 submit/tizen/20220714.070033 submit/tizen/20220724.222434
Hwankyu Jhun [Thu, 14 Jul 2022 06:40:18 +0000 (15:40 +0900)]
Release version 0.18.12

Changes:
 - Add a new environemtn variable

Change-Id: I83a4a7a3b151bea2910f59c69f184637b1219c84
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoAdd a new environemtn variable 33/277833/1
Hwankyu Jhun [Thu, 14 Jul 2022 04:23:49 +0000 (13:23 +0900)]
Add a new environemtn variable

Before executing an application, the process sets GCOV_PREFIX="/tmp" for
code coverage measurement.

Change-Id: Ifbdc216f7fb507a522ad4cbe631c2b81af3bb5c1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.11 93/277293/1 accepted/tizen/unified/20220705.220829 submit/tizen/20220705.003005 submit/tizen/20220705.003032
Hwankyu Jhun [Mon, 4 Jul 2022 23:44:32 +0000 (08:44 +0900)]
Release version 0.18.11

Changes:
 - Apply type converstions

Change-Id: I46ea4236057c4f137a7323ecdbc7c21121151300
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoApply type converstions 82/277282/2
Hwankyu Jhun [Mon, 4 Jul 2022 10:10:30 +0000 (19:10 +0900)]
Apply type converstions

The dest_process parameter of resource_register_cpu_inheritance_destination() and
resource_unregister_cpu_inheritance_destination() was char* type.
This patch adds forced type conversions to convert to char* type.

Change-Id: I2dfa722e3a1397e19e483e0e3d5950c3758599ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 0.18.10 28/277128/1 accepted/tizen/unified/20220703.214202 submit/tizen/20220701.041209
Changgyu Choi [Fri, 1 Jul 2022 04:10:36 +0000 (13:10 +0900)]
Release version 0.18.10

Changes:
 - Add cpu priority inheritance

Change-Id: Ie3ad6cfa3bd10cb1051bea4d9d9e319aca4fb004
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoAdd cpu priority inheritance 22/277022/8
Changgyu Choi [Wed, 29 Jun 2022 07:26:30 +0000 (16:26 +0900)]
Add cpu priority inheritance

To improve performance in case of IPC call,
the cpu priority is inherited from caller process.
When calling register_cpu_inheritance_destination(),
it can be inherited cpu priority from caller.

Requires:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/amd/+/276948

Change-Id: Ie4ed308f299efc0f76db465d3b824adeec6c1555
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoRelease version 0.18.9 67/273867/1 accepted/tizen/unified/20220418.141249 submit/tizen/20220415.005359
Hwankyu Jhun [Fri, 15 Apr 2022 00:47:03 +0000 (09:47 +0900)]
Release version 0.18.9

Changes:
 - [UI Thread] Set a new environment variable

Change-Id: I9307d945ac92ac23dcb10438a1002a42d098b591
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years ago[UI Thread] Set a new environment variable 65/273865/2
Hwankyu Jhun [Thu, 14 Apr 2022 23:20:36 +0000 (08:20 +0900)]
[UI Thread] Set a new environment variable

To prevent race condition about calling setenv(), the launchpad sets
"TIZEN_GLIB_CONTEXT" environment variable.

Change-Id: I161ef17f785556b39e74d1bf4ee277d2c36e7874
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.18.8 17/272617/1 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20220323.134138 accepted/tizen/unified/20220322.134043 submit/tizen/20220322.015346 submit/tizen_6.5/20220322.025122
Hwankyu Jhun [Tue, 22 Mar 2022 00:15:39 +0000 (09:15 +0900)]
Release version 0.18.8

Changes:
 - Remove executable file check

Change-Id: I8f333a398b043479d993285a262ca9c0776ad929
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRemove executable file check 16/272616/1
Hwankyu Jhun [Mon, 21 Mar 2022 22:55:04 +0000 (07:55 +0900)]
Remove executable file check

Checking the executable file can be slow when the system is boot up.
It causes performance degrdation of AMD. This patch is to prevent
performance degradation.

Change-Id: I0133598ce003e49b1d238266600b5fc415df3eeb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 years agoRelease version 0.18.7 15/272515/1 accepted/tizen/unified/20220322.082753 submit/tizen/20220321.003517
Changgyu Choi [Fri, 18 Mar 2022 06:39:22 +0000 (15:39 +0900)]
Release version 0.18.7

Changes:
 - Add logs for debugging

Change-Id: I35a39180bd86fe4c1c324bf5258d5411e6b9fa06
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoAdd logs for debugging 90/272490/11
Changgyu Choi [Fri, 18 Mar 2022 00:50:48 +0000 (09:50 +0900)]
Add logs for debugging

Change-Id: Ie8e96eea8d08aa6b4024045c4c60caaa3f353093
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 years agoRelease version 0.18.6 31/271631/1 accepted/tizen/6.5/unified/20220225.151944 accepted/tizen/unified/20220225.151911 submit/tizen/20220224.010450 submit/tizen_6.5/20220224.010325
Changgyu Choi [Thu, 24 Feb 2022 00:56:54 +0000 (09:56 +0900)]
Release version 0.18.6

Changes:
 - Fix static analysis issue

Change-Id: I51bccb92f6af801441171d771217b30b605eae81
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>