Jihoi Kim [Fri, 24 Jan 2025 07:01:29 +0000 (16:01 +0900)]
Release version 1.73.6
Changes:
- Fix file name issue on checking launchpad socket
- Fix static analysis issue
- Add preventing invalid pointer access
- Using filesystem::exist to check app socket
Change-Id: Ib08e855675af88587e59673773251e488c78db4f
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
Jihoi Kim [Fri, 24 Jan 2025 06:32:54 +0000 (15:32 +0900)]
Using filesystem::exist to check app socket
- If a directory in the path has 700 permission, access() will fail.
Change-Id: I31619393ef324f0b3bc923f2332aa7721683d18a
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
Hwankyu Jhun [Fri, 24 Jan 2025 00:11:15 +0000 (09:11 +0900)]
Release version 1.73.5
Changes:
- Add preventing invalid pointer access
Change-Id: I742ce05081ee9dd53801adf405bf181ad4024555
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 23 Jan 2025 10:31:38 +0000 (19:31 +0900)]
Add preventing invalid pointer access
This is for preventing crash logic.
Change-Id: Ief467637a3f7ee1f4b0ac41a4f3f2fa3edba1ece
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 22 Jan 2025 08:49:18 +0000 (17:49 +0900)]
Release version 1.73.4
Changes:
- Fix file name issue on checking launchpad socket
- Fix static analysis issue
Change-Id: I14015e312672af65cbb7c9efb8f99ae545498e44
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 21 Jan 2025 03:59:10 +0000 (12:59 +0900)]
Fix static analysis issue
Changes:
- Add group nullptr checking.
- Add destroying main task.
- Fix request manager to return false when fail to create socket ready file
- Fix RequestManager::Fini to unlink socket ready file
- Replace filesystem::exists() method with access().
- Add missing target include directory
Change-Id: If870e9edcdf4886f0fc78390a754d3cef404c671
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Jihoi Kim [Fri, 17 Jan 2025 07:32:27 +0000 (16:32 +0900)]
Fix file name issue on checking launchpad socket
- Previous patch change filename which shows launchpad socket is ready
- This patch fix aul apis to access via new filename
- Change variable names to distinguish socket ready file and socket itself
Change-Id: Ic8e3bb7395189ee4f58e1efa5781dcbfef692d7c
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
Hwankyu Jhun [Thu, 16 Jan 2025 03:39:00 +0000 (12:39 +0900)]
Release version 1.73.3
Changes:
- Modify app registration handler
Change-Id: Id9cc8ff076be916250d14ea1e8bf2bb16eeb30a4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 6 Jan 2025 23:17:21 +0000 (08:17 +0900)]
Modify app registration handler
To prevent wrong request handling, amd checks the request id.
Change-Id: Ic95c41a51ba9511b35d76e8f2ff721219e925760
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 13 Jan 2025 06:10:56 +0000 (15:10 +0900)]
Release version 1.73.2
Changes:
- Check launchpad socket existence
Change-Id: I72a121cf605ee4709d5b7f87bf81da5acff583ef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 10 Jan 2025 10:31:00 +0000 (19:31 +0900)]
Check launchpad socket existence
Before connecting to the socket of the launchpad-process-pool, amd
checks whether it exists or not. When recv() returns an error as like EOF,
amd retries to connect to the socket of the launchpad-process-pool.
Change-Id: Id6d23231d320afa81b929076867d76e76014b866
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 10 Jan 2025 04:05:55 +0000 (13:05 +0900)]
Release version 1.73.1
Changes:
- Fix bugs about app info management for updated apps
Change-Id: I65a02b3280489f719539475dfdc8079f482af4d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 10 Jan 2025 03:59:40 +0000 (12:59 +0900)]
Fix bugs about app info management for updated apps
There is a bug about executing an application whil that is updating.
It causes by calling aul_status_update_v2(). When the application calls
the function, amd changes the status of the app info to 'norestart'.
This patch add an exception handling about the 'blocking' status.
If the status is 'blocking', amd does not set the 'norestart' status to
the app info.
Change-Id: I1c2d4d9da394d6afa2a8a5dc5672411a726edfa8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Thu, 9 Jan 2025 03:48:07 +0000 (12:48 +0900)]
Release version 1.73.0
Changes:
- Use cynara API to get smack label
Change-Id: If78b244a9fe1fc166b90ba967e5838bbabf4c38f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 9 Jan 2025 02:13:19 +0000 (11:13 +0900)]
Use cynara API to get smack label
Instead of directly accessing /proc/<pid>/attr/current, cynara api is used.
Change-Id: I8be076bf58d5a7908897760693cf93af61aa68b9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 6 Jan 2025 00:52:20 +0000 (09:52 +0900)]
Release version 1.72.6
Changes:
- Fix static analysis issue
Change-Id: If2aab18dd48535482e909e4e298cd501702c7dc9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Jihoi Kim [Fri, 3 Jan 2025 06:29:48 +0000 (15:29 +0900)]
Fix static analysis issue
- Fix COMPARE_RESULT_OF_NEW
- Using std::nothrow when allocate object
Change-Id: I85196db63f6e60fb802022f1665511effc20688d
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
Changgyu Choi [Thu, 2 Jan 2025 00:37:15 +0000 (09:37 +0900)]
Release version 1.72.5
Changes:
- Change to use abstract socket in amd,launchpad
- Modify amd startup monitor
Change-Id: Iea63bd339bfc771e8500764cde4fa8ca95820afc
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 26 Dec 2024 08:17:17 +0000 (17:17 +0900)]
Modify amd startup monitor
amd killed an app that had been blocked for a long time for debugging purposes with abort.
This patch reduces the frequency of crash by modifying these parts to print backtrace and cpu usage rate periodically.
Change-Id: I405eadc72602a2be025b8d041676c1e7f7dc3edd
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
newb1e [Mon, 30 Dec 2024 05:06:02 +0000 (14:06 +0900)]
Change to use abstract socket in amd,launchpad
- Change socket names: ex) @org.tizen.appfw.amd
- Path name starts with '@' will be abstract sockets
- Change connect(), bind() wrapper classes to handle '@' path
Change-Id: Idf5bbed349e48102fafedf605260fed5d2c4cc97
Signed-off-by: newb1e <jihoi.kim@samsung.com>
Changgyu Choi [Thu, 5 Dec 2024 03:17:05 +0000 (12:17 +0900)]
Release version 1.72.4
Changes:
- isu: Add CAP_FOWNER capability to sandbox configuration
- isu: Separate session for amd process using --new-session
Change-Id: I85a2041e70a98ea1c4607a9718dbf61fddd2fa23
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Adam Michalski [Wed, 4 Dec 2024 14:00:08 +0000 (15:00 +0100)]
isu: Separate session for amd process using --new-session
The DA team requested that the `amd` process running through ISU
sandboxing be executed in a separate session by calling `setsid()`.
This ensures that the `amd` daemon is properly separated from its
parent process and process group, which is a typical setup for
daemonized processes.
Previously, the session of the `amd` process was not separated,
which may lead to potential issues with process management. By adding
the `--new-session` flag to the ISU configuration, this request is
addressed.
Change-Id: If0bf6bc70f36004cf2dc81ea7b498c216cc240cb
Adam Michalski [Wed, 4 Dec 2024 13:31:40 +0000 (14:31 +0100)]
isu: Add CAP_FOWNER capability to sandbox configuration
The CAP_FOWNER capability is required for the `amd` binary to delete
temporary files of applications. Without this capability, calls to
`unlink()` fail with an "operation not permitted" error when attempting
to delete files with permissions such as "srw- --- ---".
This change reflects the update made in the original `amd` service file
(commit
317e86f5cfe2538703c916bbd4564adca291a822), ensuring consistency
between the `amd` service configuration and the ISU sandbox configuration.
Change-Id: I8617dbbbb5845c59d2e28a1853cd1fe5150b34a1
Changgyu Choi [Wed, 4 Dec 2024 00:04:33 +0000 (09:04 +0900)]
Release version 1.72.3
Changes:
- Add cynara permissive mode build option - dev_wos
Change-Id: Ie67a07063c584b772e6c0bfd6b0146633b561c04
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 3 Dec 2024 07:15:04 +0000 (16:15 +0900)]
Add cynara permissive mode build option - dev_wos
Usage: gbs <your favourite flags> --define "dev_wos 1".
If not explicitly specified, the option is disabled (switched to 0).
This option is indended for development purposes only,
not for release builds.
With this option, Cynara enters "permissive mode" and can work
without Smack module enabled in Linux kernel.
In Tizen, Smack labels are used as process (application) identifiers,
and without them, there's no way to distinguish between processes,
making policy checking not easily possible.
With this option, all credentials helper functions that would
normally return client ID (= Smack label), return
same string: User::Pkg::default_app_no_Smack_mode
This mode is intended to be used by Automotive division
for bring-up development of Tizen working in container
with SELinux enabled in host OS - LSM support in Tizen
will be provided either with LSM stacking (1) or by providing
LSM abstraction in Tizen's Security FW.
This option intends to ease functional development while
the two mentioned options for LSM support in Tizen-in-container
task are being investigated.
This change tries its best to provide daemon still working
for policy management modules to set application policy with admin API,
however, client functionality is changed to always return with
"ALLOW" answer, without contacting the daemon, as no app
identification is possible (yet) without Smack.
link: https://lore.kernel.org/all/20231215221636.105680-1-casey@schaufler-ca.com/T/
Change-Id: I6a0d53d98e6578b8061e1cffff981c10fab811bd
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 2 Dec 2024 10:25:28 +0000 (19:25 +0900)]
Release version 1.72.2
Changes:
- Send pid for rpc-port request upon setting pending item pid
Change-Id: I97bc999c24fed7a890db72ad16591c65d015890a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 2 Dec 2024 10:13:01 +0000 (19:13 +0900)]
Send pid for rpc-port request upon setting pending item pid
For RPC_PORT_PREPARE_STUB, amd sends results faster.
Change-Id: Ic2ebf3c14b19e9d8ea22ec82f423c2619c20c1ed
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 29 Nov 2024 00:24:58 +0000 (09:24 +0900)]
Release version 1.72.1
Changes:
- Kill duplicate registered app
Change-Id: I10ef5bd3c0b2a1837fa6516d3013f40ddf26af69
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 28 Nov 2024 10:07:04 +0000 (19:07 +0900)]
Kill duplicate registered app
In some cases, the app has already been launched by amd or is registered in duplicate.
This patch kills that process in such a case.
Change-Id: I87c7b84f5e2cb0bac3cecd150a14b7bc149c70a0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Thu, 28 Nov 2024 08:30:25 +0000 (17:30 +0900)]
Release version 1.72.0
Changes:
- Handle termination request for oom
Change-Id: I062f1f34452b49623ce4b3d4b313cef80fd921df
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 27 Nov 2024 00:49:39 +0000 (09:49 +0900)]
Handle termination request for oom
This patch handels APP_TERM_BY_PID_FOR_OOM request.
If the target application is visible or relauching state, amd rejects
the request.
Change-Id: I499e9ab7325677d85f545893e13e44347652b780
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 26 Nov 2024 04:05:52 +0000 (13:05 +0900)]
Release version 1.71.7
Changes:
- Prevent pid 0 case
Change-Id: Id634a31ff4b24f3d78ddd1949edb951630d2f0eb
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 26 Nov 2024 02:54:38 +0000 (11:54 +0900)]
Prevent pid 0 case
There is a case where the PID of app_status becomes zero due to some cause.
This patch contains defense against such cases.
Change-Id: If738d297af101d1ee6c3c646466b61f630592440
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Wed, 20 Nov 2024 08:22:31 +0000 (17:22 +0900)]
Release version 1.71.6
Changes:
- Fix sending wrong signal
Change-Id: Ia4bdeccd8fc3bff1faf0ba3198621a4cd86490b5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 20 Nov 2024 08:10:05 +0000 (17:10 +0900)]
Fix sending wrong signal
If the delay count is not over 10, amd should not send SIGABRT to
the running process.
Change-Id: Ic2a614dc641a5fce4812a1158214012db4f29239
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 19 Nov 2024 03:50:10 +0000 (12:50 +0900)]
Release version 1.71.5
Changes:
- Fix static analysis issue
- AMD log shortening
Change-Id: Ia666e32a8f0ddb034774a2b6e593719199327153
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Tue, 19 Nov 2024 03:48:12 +0000 (03:48 +0000)]
Merge "Fix static analysis issue" into tizen
newb1e [Fri, 15 Nov 2024 01:46:22 +0000 (10:46 +0900)]
AMD log shortening
- Fix some typos
- Merge two logs in AppStatusManager::Update
- Shorten frequently called Logs in reqeust_manager
Change-Id: I79c2fda1c2089379034cb4c06f8a8a619d2cbaef
Signed-off-by: newb1e <jihoi.kim@samsung.com>
Changgyu Choi [Mon, 18 Nov 2024 07:44:26 +0000 (16:44 +0900)]
Fix static analysis issue
Cannot cast surf pointer as int.
Change-Id: I4c02617a838e126a0800a65290d63c357a618d7f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 18 Nov 2024 00:50:36 +0000 (09:50 +0900)]
Release version 1.71.4
Changes:
- [screen-resolution] Register appid for fast launched apps to enlightenment
Change-Id: I6c7148ba07e8d152d7d0ad43bc42f0e175b2c5d8
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 15 Nov 2024 05:58:21 +0000 (14:58 +0900)]
[screen-resolution] Register appid for fast launched apps to enlightenment
Apps that launched before amd did not have the process of registering appid in enlightenment.
This patch adds these logics.
Change-Id: I68d34ae56e3a3dde32494741f6686e8634779f87
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 11 Nov 2024 11:05:52 +0000 (20:05 +0900)]
Release version 1.71.3
Changes:
- Fix default user login
Change-Id: I3b2bf76a024606d850fa7b02ea4f78c954ad7d11
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Mon, 11 Nov 2024 09:49:10 +0000 (18:49 +0900)]
Fix default user login
To avoid executing onboot apps, the login monitor logins the default
user with the opening state first.
Change-Id: I880364c531d186e72fd02f91d9334a5e667f8356
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 8 Nov 2024 11:20:22 +0000 (20:20 +0900)]
Release version 1.71.2
Changes:
- Refining AMD log message
- Move to set default user id for system daemon
Change-Id: I15fc50f542b8df648efe11476143792dfebe153b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 8 Nov 2024 11:04:55 +0000 (20:04 +0900)]
Move to set default user id for system daemon
It is necessary to perform the same as the previous logic.
Change-Id: Ib53d74d96a441fd4d20704b7893c32b5c5c40624
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
newb1e [Thu, 31 Oct 2024 10:16:26 +0000 (19:16 +0900)]
Refining AMD log message
- Fix some typos in log message
- Merge two correlate logs in 'amd_app_com'
- Fix uninitialized variable to be set in 'ClientChannel::OnDataReceived'
- Merge two correlate logs in 'ClientChannel::OnDataReceived'
- Change log level & log contents related to ClientChannel.dtor
tct passed.
Change-Id: Ie9e6a2dfe54715d5c84522fd11565721ba8af48c
Hwankyu Jhun [Mon, 4 Nov 2024 07:11:15 +0000 (16:11 +0900)]
Release version 1.71.1
Changes:
- Set CAP_FOWNER capabilitiy
Change-Id: I7771c949de94f511b52c3645d3a76b99787a7593
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 30 Oct 2024 23:24:12 +0000 (08:24 +0900)]
Set CAP_FOWNER capabilitiy
To delete tmp files of applications, amd should have a CAP_FOWNER
capability. Currently, calling unlink() returns an error with the
'operation not permitted' message. Because, the file permission is
"srw- --- ---".
Change-Id: I7fc13b18378d545e8dd44bee410048dea52d27f4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 28 Oct 2024 08:01:35 +0000 (17:01 +0900)]
Release version 1.71.0
Changes:
- Implement garbage collector of launchpad
Change-Id: Ie9340103207fdc67158b60e7d14a0ca07a7c6e21
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 25 Oct 2024 04:14:08 +0000 (13:14 +0900)]
Implement garbage collector of launchpad
The codes related to the terminated process are moved from
the launchpad-process-pool. To make the launchpad is a single thread,
sub threads are removed.
Change-Id: I54967e9a78af0425a546dba84858309bc5ec1c1e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 21 Oct 2024 23:15:32 +0000 (08:15 +0900)]
Release version 1.70.20
Changes:
- Revert "Change maximum count of delay count"
Change-Id: I2ea05d5e176eae49eb8303da7efaea56cf96d473
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 21 Oct 2024 22:01:26 +0000 (07:01 +0900)]
Revert "Change maximum count of delay count"
This reverts commit
2336216c6864eb1024c2049e63c2682b1068a9d4.
Change-Id: I6b8c1ae4b31019b4b3d921d6d0edb4ca389ba114
Hwankyu Jhun [Fri, 18 Oct 2024 00:17:14 +0000 (09:17 +0900)]
Release version 1.70.19
Changes:
- Modify retrying logic of loading app info
Change-Id: I49c7a4ca07303eb44235b44201634f4e27e5e381
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 17 Oct 2024 22:06:15 +0000 (07:06 +0900)]
Modify retrying logic of loading app info
The maximum number of the retrying count is increased to 30.
And, if it's exceeded, amd calls abort() to create the coredump.
Change-Id: I1d4a8819dccc2483050b396988c5b424c679fccd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 14 Oct 2024 08:53:10 +0000 (17:53 +0900)]
Release version 1.70.18
Changes:
- Change maximum count of delay count
Change-Id: I6a0313a29bcc4e0b0e06b9a28de46d73604ae903
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 14 Oct 2024 08:38:53 +0000 (17:38 +0900)]
Change maximum count of delay count
The maximum count is changed to 4 from 10.
This patch is a temporary change for debugging.
Change-Id: Ib6c7fada11e31f4215e11c9c5b361f95612d1276
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Fri, 11 Oct 2024 06:09:25 +0000 (15:09 +0900)]
Release version 1.70.17
Changes:
- Reduce inefficient logs
Change-Id: Ie36a93c1379ed6f8d20ad6816f7c92be80839113
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 11 Oct 2024 04:09:01 +0000 (13:09 +0900)]
Reduce inefficient logs
Some logs can be reduced. This patch reduces ineffieient logs.
Change-Id: I7b22237f698f6f685e5b684c03ba5911aa2a07fa
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Tue, 8 Oct 2024 07:10:04 +0000 (16:10 +0900)]
Release version 1.70.16
Changes:
- Load appcontrol privileges at bootup time
- Modfiy handling pending item
- Check request before access control
- Use pkgmgrinfo_appinfo_foreach_appcontrol_v3() instead
- Check port name for screen connecor input
- Fix CheckAppControlPrivilege function
Change-Id: I5e3696df287c035d59af593103e929e6981fe913
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 8 Oct 2024 06:50:10 +0000 (15:50 +0900)]
Fix CheckAppControlPrivilege function
If there is not app info, amd should skip the access control.
In the some product, the application uses alias appids.
Change-Id: Ib9adc4eea8a8ed01d9fe149e3d56503b8cf6e464
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 8 Oct 2024 06:29:29 +0000 (15:29 +0900)]
Release version 1.70.15
Changes:
- Use pkgmgrinfo_appinfo_foreach_appcontrol_v3() instead
- Check port name for screen connecor input
Change-Id: I1f9a88a41bc2e967e090a94bb893c1845b8b2ef0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 8 Oct 2024 06:02:45 +0000 (15:02 +0900)]
Check port name for screen connecor input
If the port name is "ScreenConnectorInput", amd does not send the launch request
to the stub.
Change-Id: I3ba3fb0eb7e76a7c17763f072f0f5779a8a2bcf8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 8 Oct 2024 04:38:47 +0000 (13:38 +0900)]
Use pkgmgrinfo_appinfo_foreach_appcontrol_v3() instead
To improve the performance of amd initialization, amd should use
pkgmgrinfo_appinfo_foreach_appcontrol_v3() function.
Requires:
- https://review.tizen.org/gerrit/#/c/platform/core/appfw/pkgmgr-info/+/318744/
Change-Id: I51fd10437a4ce2b6d1dc87ced4b173ada399434f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 8 Oct 2024 03:56:23 +0000 (12:56 +0900)]
Release version 1.70.14
Changes:
- Check request before access control
Change-Id: I0ae0724a0fe0f58bc2c48bbcf6ff024bebba8603
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 8 Oct 2024 03:36:45 +0000 (12:36 +0900)]
Check request before access control
For access control, the application ID should be set if it's the launch request.
Before checking the permission of the caller, amd checks the request.
If it's the implicit launch request, amd sets the application ID to the request.
Change-Id: I548eb1ac9f9f8a41b6007fa7eacf887af9d8823d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 2 Oct 2024 03:24:51 +0000 (12:24 +0900)]
Release version 1.70.13
Changes:
- Load appcontrol privileges at bootup time
- Modfiy handling pending item
Change-Id: I4ce1ece6bfc9dc36fcc01e8569cd308225c5d8fc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 2 Oct 2024 02:04:13 +0000 (11:04 +0900)]
Modfiy handling pending item
There is a problem that when an execution request for the same app is delivered
before AMD executes the app and obtains the PID information, it cannot deliver
the PID information to the proxy. This problem creates a blocking state in the proxy.
In the FlushPendingRequests() method, if the request type is 'rpc-port',
modify it so that the result is immediately delivered to the caller.
Change-Id: I13334803267e1297df1d1a17ce673ef40feacb4d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 2 Oct 2024 00:52:29 +0000 (09:52 +0900)]
Load appcontrol privileges at bootup time
During the process of calling the pkgmgrinfo API, it was observed that the AMD
is blocked for a certain period of time.
This patch modifies the booting process to load the appcontrol privilege
information by AMD in order to solve this problem.
Change-Id: I343ad57e24a458746d2a9ae0d19fb028745d40ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Jul 2024 06:04:28 +0000 (15:04 +0900)]
Release version 1.70.12
Changes:
- Add metadata profile for NUIGadget
Change-Id: I01a12cdb3b87053bc8169a02a184904e6228e5a9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 23 Jul 2024 05:47:54 +0000 (14:47 +0900)]
Add metadata profile for NUIGadget
The following informations are added for NUIGadget feature:
- http://tizen.org/metadata/ui-gadget/dll
- http://tizen.org/metadata/ui-gadget/resource/dll
- http://tizen.org/metadata/ui-gadget/resource/class-name
Change-Id: I5a7b3f4292c8437fda480804d637ec314c8317d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Tue, 23 Jul 2024 01:16:06 +0000 (10:16 +0900)]
Release version 1.70.11
Changes:
- Add the logic to terminate apps that are not responding
Change-Id: I16456c3836917e1f7d323c3e31e0bcf4bfb193ff
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 22 Jul 2024 04:10:57 +0000 (13:10 +0900)]
Add the logic to terminate apps that are not responding
After this patch is applied, any apps that have not responded for 100 seconds after launching will be terminated.
Change-Id: Ie105ddbb204a6f0279639c8d6ccee65cb96207b5
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Hwankyu Jhun [Mon, 22 Jul 2024 04:57:59 +0000 (13:57 +0900)]
Release version 1.70.10
Changes:
- Check pending item before processing the launch request
Change-Id: I647903f56991f1c84d0aec18d54efb41fa9034d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 22 Jul 2024 03:25:41 +0000 (12:25 +0900)]
Check pending item before processing the launch request
When the target application ID is changed, amd should check whether
the target application is starting or not.
Change-Id: I3197e0fa8718ef9d99f6822097a117a7ae1426b5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 18 Jul 2024 01:19:27 +0000 (10:19 +0900)]
Release version 1.70.9
Changes:
- Call AMD_MOD_PREINIT function
Change-Id: I2e22c59d81fcd462776c183f4ff78e053a0d7a52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 Jul 2024 06:53:16 +0000 (15:53 +0900)]
Call AMD_MOD_PREINIT function
Before amd starts the memory allocation, amd calls AMD_MOD_PREINIT() to
provider the entry point to plugin modules.
Change-Id: I37fb326905ae4103d9a41f85b518d19280861135
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 Jul 2024 00:06:19 +0000 (09:06 +0900)]
Release version 1.70.8
Changes:
- Modify amd_launch_start_app function
Change-Id: I3ce28ccdc008911efa82f46f47bce88921998050
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 16 Jul 2024 23:24:48 +0000 (08:24 +0900)]
Modify amd_launch_start_app function
To check whther the target application is launching or not, the function
calls _request_check_status(). If it returns 1, it means the request is pending.
In that case, the function returns 0.
Change-Id: I58513c0b3b0e83cec0c9b81be23dcd931c227c6a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 11 Jul 2024 00:09:48 +0000 (09:09 +0900)]
Release version 1.70.7
Changes:
- Call Finish method to release all resources
Change-Id: I6a9bd196f22ae696c774a4ee8978ee0da678dce8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 10 Jul 2024 23:13:19 +0000 (08:13 +0900)]
Call Finish method to release all resources
To prevent crash issues, amd should release all resources of
AppStatusManager instance when calling exit handlers.
This patch adds a destructor of the AppStatusManager to call Finish()
method.
Change-Id: I3232c54339fcf95131279a6303e8d7aa44de0fea
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 3 Jul 2024 04:00:09 +0000 (13:00 +0900)]
Release version 1.70.6
Changes:
- Fix static analysis issues
Change-Id: I1e08359b00bfb4af24138b203b10772b93c58f6f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 2 Jul 2024 23:48:21 +0000 (08:48 +0900)]
Fix static analysis issues
Checker:
- DEREF_OF_NULL
Change-Id: I715ecc12e7a65e866e64bdf229eb2da3a029feea
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 1 Jul 2024 05:30:47 +0000 (14:30 +0900)]
Release version 1.70.5
Changes:
- Fix static analysis issues
Change-Id: I0a8af71f3dc100ffd9b17fc3523eb3c9310e52e0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 1 Jul 2024 00:00:40 +0000 (09:00 +0900)]
Fix static analysis issues
Checker:
- UNREACHABLE_CODE
Change-Id: Ie853fcb17ce13dd5398cd512f90fccace5dde428
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 27 Jun 2024 08:26:39 +0000 (17:26 +0900)]
Release version 1.70.4
Changes:
- Modify AppControl Checker
Change-Id: Id8d1508164fc5c73cd0109b54ce05b74b1def812
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 19 Jun 2024 05:36:10 +0000 (14:36 +0900)]
Modify AppControl Checker
If the target application is a robot app, amd checks whether the caller
is the srp-app-launcher or not. If it's not, the launch request will be
rejected.
Change-Id: I8848f88ec46269da7d99ffd0cf501a79173531cd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 25 Jun 2024 00:59:04 +0000 (09:59 +0900)]
Release version 1.70.3
Changes:
- Set default user ID for system daemon
Change-Id: Ia5318bc11c34d9c1f01f2a5565fd445378ad1065
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 25 Jun 2024 00:40:12 +0000 (09:40 +0900)]
Set default user ID for system daemon
If there is no active user, amd sets the system user ID to the target
uid of the request for system daemon.
Change-Id: I8fc7532e0ca59be798db3b961c711ab7410c0381
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 21 Jun 2024 05:08:28 +0000 (14:08 +0900)]
Release version 1.70.2
Changes:
- Change log levels
Change-Id: I6e6307012f09a8451fa7708ddb61fe7a1aba69e0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 20 Jun 2024 23:45:42 +0000 (08:45 +0900)]
Change log levels
This patch changes the log level to error level for debugging.
Change-Id: I29d7cdd4ecd221f29ad5ff3221904e2d4d6aea90
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 4 Jun 2024 09:31:57 +0000 (18:31 +0900)]
Release version 1.70.1
Changes:
- Change return value when app is blocking status
- Modify noti message
- Separate initialization of AppStatusManager
- MemoryLimit has been replaced by MemoryMax
Change-Id: Ibc9c9e0e1057c56d320006fff332142a11e768e2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Łukasz Stelmach [Tue, 4 Jun 2024 09:29:39 +0000 (11:29 +0200)]
MemoryLimit has been replaced by MemoryMax
The MemoryLimit option is marked as deprecated in systemd and needs to
be changed to MemoryMax in unit files.
Change-Id: I767dc60a32719d92418c2549c8636b13b081a0e5
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Hwankyu Jhun [Tue, 4 Jun 2024 06:10:19 +0000 (15:10 +0900)]
Separate initialization of AppStatusManager
The following methods are added:
- AddSignalReadyCb()
- SetRequestBrokerDisconntectedEventCb()
- AddInotifyWatch()
- AddVconfInitTimer()
The AppStatusManager::Init() calls the added functions for the initialization.
Change-Id: I0ac3986fed9f9980c7a43fb272730e7934947959
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 4 Jun 2024 06:15:57 +0000 (15:15 +0900)]
Modify noti message
The argument is added to notify that the status is updated forcedly.
Change-Id: I71e212046be86e2d493d2fd33d30baacd141a7d0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 4 Jun 2024 04:34:04 +0000 (13:34 +0900)]
Change return value when app is blocking status
The implementation of CheckExecutable method changes the value that
returned -ENOENT to -EREJECTED.
Change-Id: Ibb4d999c62f553751b94d38c803328f8f6b46595
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 4 Jun 2024 00:28:44 +0000 (09:28 +0900)]
Release version 1.70.0
Changes:
- Handle robot app type
Change-Id: I4f820e5fdaa9d8924b4381a2b2bc04b479938eef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 3 Jun 2024 06:50:35 +0000 (15:50 +0900)]
Handle robot app type
To support robot profile, amd handles 'robotapp' type.
Change-Id: I5a436de2215ca2da77d7e84effe806f083feb93d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 Apr 2024 07:02:19 +0000 (16:02 +0900)]
Release version 1.69.16
Changes:
- Fix static analysis issues
Change-Id: I038b74c62f126c7ee07853f7eb746a7cd1063af2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 Apr 2024 05:30:15 +0000 (14:30 +0900)]
Fix static analysis issues
This patch checks whether the GError variable is nullptr or not.
Change-Id: Ia98fb1c35ce8538e84d253df0c4849bfc190f390
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 17 Apr 2024 01:55:49 +0000 (10:55 +0900)]
Release version 1.69.15
Changes:
- rpc-port: Modify stub preparation handler
Change-Id: If40713897de07a81435eae1f3bbbeefb36aed619
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>