platform/core/appfw/amd.git
2 weeks agoRelease version 1.75.2 73/324773/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250530.090447 accepted/tizen/unified/x/20250531.233010
Jihoi Kim [Mon, 26 May 2025 07:35:50 +0000 (16:35 +0900)]
Release version 1.75.2

Changes:
 - Fix wrong exception handling
 - Fix AUL_DAEMON path existence issue

Change-Id: Ie7829c6d80bdf8b6cdee6fbb7352cb576899236a
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
2 weeks agoFix AUL_DAEMON path existence issue 71/324771/4
Jihoi Kim [Mon, 26 May 2025 06:57:38 +0000 (15:57 +0900)]
Fix AUL_DAEMON path existence issue

- Create AUL and AUL_DAEMONS Path when amd launched
- Change amd to open socket when it fail to create fake amd_sock.

Change-Id: I8e43b7fc5ce044666201bd1b6d0a9b96d41bc6f6
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
4 weeks agoFix wrong exception handling 76/324276/1
Hwankyu Jhun [Thu, 15 May 2025 06:19:15 +0000 (15:19 +0900)]
Fix wrong exception handling

To check whether the application is disabled or not, the amd should not
return an error immediately.

Change-Id: I8f6bb6fddccec85fcdabce34beb2921fcddde2f1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 weeks agoRelease version 1.75.1 80/324180/1 accepted/tizen/unified/20250515.075533 accepted/tizen/unified/20250516.055927 accepted/tizen/unified/x/20250515.094136 accepted/tizen/unified/x/20250516.065709
Changgyu Choi [Wed, 14 May 2025 01:13:18 +0000 (10:13 +0900)]
Release version 1.75.1

Changes:
 - Fix static analysis issue

Change-Id: I68c391f2bb3a15c708d09f35223f43a55ccfb7b3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 weeks agoFix static analysis issue 78/324178/5
Changgyu Choi [Wed, 14 May 2025 00:48:06 +0000 (09:48 +0900)]
Fix static analysis issue

Changes:
 - Adds nullptr checking logic

Change-Id: Ice8b0e1191d3030ab203e526a953290cac79bc96
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 weeks agoRelease version 1.75.0 09/324109/1
Jihoi Kim [Tue, 13 May 2025 06:17:49 +0000 (15:17 +0900)]
Release version 1.75.0

Changes:
 - Implement print backtrace request

Change-Id: I626a29a33aec832ca415d0286623ff50ca0edf96
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
4 weeks agoImplement print backtrace request 09/323909/11
Jihoi Kim [Fri, 25 Apr 2025 07:04:21 +0000 (16:04 +0900)]
Implement print backtrace request

- amd_watchdog will handle WATCHDOG_PRINT_BT
- print backtrace of given pid(tid)

Change-Id: I0722f7a08f2c7f6519251d93f08915392a2f55a2
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
8 weeks agoRelease version 1.74.3 48/322948/1 accepted/tizen/unified/20250429.071350 accepted/tizen/unified/x/20250429.203539
Changgyu Choi [Fri, 18 Apr 2025 09:10:50 +0000 (18:10 +0900)]
Release version 1.74.3

Changes:
 - Prevent StartMonitoring duplication
 - Skip global user check
 - Revert "Skip global user check"
 - Modify IsGlobalUser method
 - Fix wrong mkdir permission bit

Change-Id: Icc18940eaec30a5b7eccf01324437f74342790cc
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
8 weeks agoFix wrong mkdir permission bit 56/322856/2
Changgyu Choi [Thu, 17 Apr 2025 00:50:52 +0000 (09:50 +0900)]
Fix wrong mkdir permission bit

mkdir permission bit should be an octal number, not a decimal number.

Change-Id: Id706924d6dc24f561d143b9438f7a232ce7fde3f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 months agoModify IsGlobalUser method 36/322336/1
Hwankyu Jhun [Mon, 7 Apr 2025 23:31:41 +0000 (08:31 +0900)]
Modify IsGlobalUser method

If the user ID is less than the regular user ID, the method returns
"true" string.

Change-Id: Ic2832d365359287f2d449b0de77671af59962bac
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoRevert "Skip global user check" 34/322334/1
Hwankyu Jhun [Mon, 7 Apr 2025 22:07:40 +0000 (07:07 +0900)]
Revert "Skip global user check"

This reverts commit 10ad086285d12991d137f429cbec76865f428265.

Change-Id: I206bc3958f1c031481bd79c519986b602e75a8aa

2 months agoSkip global user check 99/322299/1
Hwankyu Jhun [Mon, 7 Apr 2025 10:22:12 +0000 (19:22 +0900)]
Skip global user check

Even if the app information is not "global", it should be able to
disable/enable. This patch is to fix miswritten code implementations
in the existing refactoring process.

Change-Id: I8b2f2ac734b554c3441f332ad904bff7338eee00
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoPrevent StartMonitoring duplication 39/321939/1
Changgyu Choi [Tue, 1 Apr 2025 05:42:09 +0000 (14:42 +0900)]
Prevent StartMonitoring duplication

If a specific app is not launched and is repeatedly scheduled in the boot sequencer,
there is a problem that the log is repeatedly output due to unnecessary monitoring.
This patch is prevents this case.

Change-Id: I06247152b7d0ffbb58fdcce710715a2a76eee481
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 months agoRelease version 1.74.2 02/321902/1 accepted/tizen/unified/20250402.122841 accepted/tizen/unified/x/20250402.101941
Changgyu Choi [Tue, 1 Apr 2025 00:46:39 +0000 (09:46 +0900)]
Release version 1.74.2

Changes:
 - Fix static analysis issue

Change-Id: I1192b81066424243443e09ada4a5e6bf6d29285b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 months agoFix static analysis issue 64/321864/1
Changgyu Choi [Mon, 31 Mar 2025 10:57:09 +0000 (19:57 +0900)]
Fix static analysis issue

Change-Id: I6fb1cf1ff79f21d2d45b74c2c35e8a5124e288cc
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 months agoRelease version 1.74.1 36/321836/1
Changgyu Choi [Mon, 31 Mar 2025 05:02:31 +0000 (14:02 +0900)]
Release version 1.74.1

Changes:
 - [United Service App] Set service package infos
 - Remove app com user session event

Change-Id: Ie46867914e217f8444625bf5fdfacc5e17a2c7e6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 months agoRemove app com user session event 77/321777/1
Changgyu Choi [Fri, 28 Mar 2025 05:16:39 +0000 (14:16 +0900)]
Remove app com user session event

removes that event because the multi-user scenario is virtually unused.

Change-Id: Icde3efdf1d0656f90f4aa7065396ee751ae2ca01
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 months ago[United Service App] Set service package infos 35/319635/3
Hwankyu Jhun [Fri, 14 Feb 2025 01:05:52 +0000 (10:05 +0900)]
[United Service App] Set service package infos

To deliver service packages to the application to be executed, AMD sets
package informations to the bundle object.

Change-Id: Ife9bce3ba22849b2ddd8a96be1d849016def18ce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 months agoRelease version 1.74.0 71/320271/2 accepted/tizen/unified/20250228.005539 accepted/tizen/unified/x/20250228.033203
Jihoi Kim [Wed, 26 Feb 2025 05:35:49 +0000 (14:35 +0900)]
Release version 1.74.0

Changes:
 - Add request handler log
 - Support UID Sandbox feature

Change-Id: Id02c340dae66fa6050bd110a66e023dae2de4776
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
3 months agoSupport UID Sandbox feature 06/319606/7
Jihoi Kim [Thu, 13 Feb 2025 10:49:41 +0000 (19:49 +0900)]
Support UID Sandbox feature

- Retrieve app socket path using aul_sock api
- Change request builder to convert app uid into user uid
- Change app status manager to check each uid in request

Change-Id: I5155d592c48267be6edcd2f6444e06075beb9026
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
3 months agoAdd request handler log 82/320182/1
Jihoi Kim [Tue, 25 Feb 2025 04:14:23 +0000 (13:14 +0900)]
Add request handler log

- Fix request handler to logging request info from daemons

Change-Id: I2d8423079ae4b090138cb245d1e1525c806dacc9
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
3 months agoRelease version 1.73.10 81/319781/1 accepted/tizen/unified/20250225.074858 accepted/tizen/unified/x/20250226.020352
Hwankyu Jhun [Tue, 18 Feb 2025 00:23:40 +0000 (09:23 +0900)]
Release version 1.73.10

Changes:
 - [argos-watchdog] Fix SetEntries of Directionary::Builder
 - Fix segmentation fault

Change-Id: I713f697ad442e9431092ff564d6d70d396635b72
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 months agoFix segmentation fault 80/319780/1
Hwankyu Jhun [Tue, 18 Feb 2025 00:07:33 +0000 (09:07 +0900)]
Fix segmentation fault

Before using socket instance, we should check whether the instance is
nullptr or not.

Change-Id: Iede5021ce00d6fdf5f1c8b8fdcfa92ff17ec3b73
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 months ago[argos-watchdog] Fix SetEntries of Directionary::Builder 29/319629/1
Hwankyu Jhun [Thu, 13 Feb 2025 23:40:40 +0000 (08:40 +0900)]
[argos-watchdog] Fix SetEntries of Directionary::Builder

This patch adds a local variable for the previous iniparser library.
The n value of the dictionary of the iniparser is 'integer'.
The value will be changed to 'unsigned interger'.

Change-Id: I751de4a4d57d2886d290c73cad037c1128e2818e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 months agoRelease version 1.73.9 47/319547/1
Hwankyu Jhun [Wed, 12 Feb 2025 23:58:54 +0000 (08:58 +0900)]
Release version 1.73.9

Changes:
 - [argos-wathcodg] Modify dictionary implementation

Change-Id: I7a45043bd099d9723106fa05807b0df502f47c0e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 months ago[argos-wathcodg] Modify dictionary implementation 46/319546/1
Hwankyu Jhun [Wed, 12 Feb 2025 23:55:52 +0000 (08:55 +0900)]
[argos-wathcodg] Modify dictionary implementation

The type of the d of the dictionary will be changed to unsigned int.

Change-Id: I558262ac095cf239e3026235510d0d857666a61b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.73.8 13/319513/1 accepted/tizen/unified/20250213.041713 accepted/tizen/unified/x/20250218.043742
Hwankyu Jhun [Wed, 12 Feb 2025 07:12:15 +0000 (16:12 +0900)]
Release version 1.73.8

Changes:
 - Add unistd header inclusion

Change-Id: Ib1fef8bd2c0d0b71d60008a630f15e5e0b097cce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoAdd unistd header inclusion 11/319511/2
Hwankyu Jhun [Wed, 12 Feb 2025 07:00:38 +0000 (16:00 +0900)]
Add unistd header inclusion

The unistd.h file will be removed from the iniparser.h file after
the iniparser package is upgraded.

Change-Id: I57260b8f3afaf24c5fccc1eebb81cb21623c0896
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoRelease version 1.73.7 03/319303/1 accepted/tizen/unified/20250210.160155 accepted/tizen/unified/x/20250212.043726
Hwankyu Jhun [Fri, 7 Feb 2025 08:19:15 +0000 (17:19 +0900)]
Release version 1.73.7

Changes:
 - Fix static analysis issue

Change-Id: I80de003e4b8d39aad122a62176f90e86f2fb2dab
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoFix static analysis issue 75/319075/2
Jihoi Kim [Tue, 4 Feb 2025 03:05:05 +0000 (12:05 +0900)]
Fix static analysis issue

- Handling std::thread::join() exception
- Fix null dereference

Change-Id: I38a8ebaaaa14bcfc97f5e1497528eff166a62b30
Signed-off-by: Jihoi Kim <jihoi.kim@samsung.com>
4 months agoRelease version 1.73.6 99/318799/1 accepted/tizen_unified_x_asan accepted/tizen/unified/20250203.113940 accepted/tizen/unified/x/asan/20250211.003211
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>
4 months agoUsing filesystem::exist to check app socket 95/318795/1
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>
4 months agoRelease version 1.73.5 87/318787/1
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>
4 months agoAdd preventing invalid pointer access 70/318770/1
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>
4 months agoRelease version 1.73.4 97/318697/1
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>
4 months agoFix static analysis issue 98/318598/7
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>
4 months ago Fix file name issue on checking launchpad socket 76/318476/1
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>
4 months agoRelease version 1.73.3 52/318352/1 accepted/tizen/unified/20250117.152458 accepted/tizen/unified/x/20250117.125242
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>
4 months agoModify app registration handler 80/317680/3
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>
4 months agoRelease version 1.73.2 93/318093/1 accepted/tizen/unified/20250114.104249 accepted/tizen/unified/x/20250114.211233
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>
5 months agoCheck launchpad socket existence 92/317992/1
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>
5 months agoRelease version 1.73.1 34/317934/1
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>
5 months agoFix bugs about app info management for updated apps 33/317933/1
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>
5 months agoRelease version 1.73.0 53/317853/1
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>
5 months agoUse cynara API to get smack label 49/317849/3
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>
5 months agoRelease version 1.72.6 04/317604/1
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>
5 months agoFix static analysis issue 73/317573/1
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>
5 months agoRelease version 1.72.5 01/317401/1
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>
5 months agoModify amd startup monitor 52/317152/7
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>
5 months agoChange to use abstract socket in amd,launchpad 84/317284/4
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>
6 months agoRelease version 1.72.4 18/315818/1 accepted/tizen/9.0/unified/20241210.020000 accepted/tizen/unified/20241209.090221 accepted/tizen/unified/x/20241218.032457 accepted/tizen/unified/x/asan/20241224.004218
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>
6 months agoisu: Separate session for amd process using --new-session 65/315765/1
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

6 months agoisu: Add CAP_FOWNER capability to sandbox configuration 64/315764/1
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

6 months agoRelease version 1.72.3 28/315628/1 accepted/tizen/unified/20241205.060752 accepted/tizen/unified/x/20241207.045415
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>
6 months agoAdd cynara permissive mode build option - dev_wos 76/315576/1
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>
6 months agoRelease version 1.72.2 02/315502/1
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>
6 months agoSend pid for rpc-port request upon setting pending item pid 98/315498/2
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>
6 months agoRelease version 1.72.1 96/321196/1 accepted/tizen/9.0/unified/20241202.173939 accepted/tizen/unified/20241202.071814
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>
6 months agoKill duplicate registered app 77/321177/2
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>
6 months agoRelease version 1.72.0 57/321157/1
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>
6 months agoHandle termination request for oom 28/321028/5
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>
6 months agoRelease version 1.71.7 50/320950/1
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>
6 months agoPrevent pid 0 case 38/320938/3
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>
6 months agoRelease version 1.71.6 51/320651/1 accepted/tizen/9.0/unified/20241121.045848 accepted/tizen/unified/20241121.162157
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>
6 months agoFix sending wrong signal 49/320649/1
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>
6 months agoRelease version 1.71.5 85/320585/1 accepted/tizen/9.0/unified/20241119.133357 accepted/tizen/unified/20241119.153858
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>
6 months agoMerge "Fix static analysis issue" into tizen
Changgyu Choi [Tue, 19 Nov 2024 03:48:12 +0000 (03:48 +0000)]
Merge "Fix static analysis issue" into tizen

6 months agoAMD log shortening 10/320410/7
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>
6 months agoFix static analysis issue 42/320542/2
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>
6 months agoRelease version 1.71.4 99/320499/1 accepted/tizen/unified/20241119.035511
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>
6 months ago[screen-resolution] Register appid for fast launched apps to enlightenment 33/320433/2
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>
7 months agoRelease version 1.71.3 51/320251/1 accepted/tizen/9.0/unified/20241112.144027 accepted/tizen/unified/20241112.120758
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>
7 months agoFix default user login 40/320240/1
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>
7 months agoRelease version 1.71.2 77/320177/1
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>
7 months agoMove to set default user id for system daemon 76/320176/1
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>
7 months agoRefining AMD log message 53/319753/9
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

7 months agoRelease version 1.71.1 37/319837/1 accepted/tizen/9.0/unified/20241108.065601 accepted/tizen/unified/20241108.105434
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>
7 months agoSet CAP_FOWNER capabilitiy 16/319716/1
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>
7 months agoRelease version 1.71.0 95/319595/1 accepted/tizen/9.0/unified/20241104.170057 accepted/tizen/unified/20241105.042042
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>
7 months agoImplement garbage collector of launchpad 25/319525/7
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>
7 months agoRelease version 1.70.20 43/319343/1
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>
7 months agoRevert "Change maximum count of delay count" 39/319339/1
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

7 months agoRelease version 1.70.19 23/319223/1
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>
7 months agoModify retrying logic of loading app info 20/319220/1
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>
7 months agoRelease version 1.70.18 54/319054/1
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>
7 months agoChange maximum count of delay count 53/319053/1
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>
8 months agoRelease version 1.70.17 52/318952/1
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>
8 months agoReduce inefficient logs 38/318938/2
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>
8 months agoRelease version 1.70.16 74/318774/1 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.231636 accepted/tizen/unified/20241011.010636 accepted/tizen/unified/toolchain/20241022.122313 accepted/tizen/unified/toolchain/20241022.122806 accepted/tizen/unified/x/20241011.021804 accepted/tizen/unified/x/asan/20241013.235611 tizen_9.0_m2_release
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>
8 months agoFix CheckAppControlPrivilege function 73/318773/1
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>
8 months agoRelease version 1.70.15 72/318772/1
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>
8 months agoCheck port name for screen connecor input 67/318767/1
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>
8 months agoUse pkgmgrinfo_appinfo_foreach_appcontrol_v3() instead 63/318763/2
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>
8 months agoRelease version 1.70.14 61/318761/1
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>
8 months agoCheck request before access control 58/318758/1
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>
8 months agoRelease version 1.70.13 44/318544/1
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>
8 months agoModfiy handling pending item 39/318539/1
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>
8 months agoLoad appcontrol privileges at bootup time 34/318534/3
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>
10 months agoRelease version 1.70.12 04/314904/1 accepted/tizen_unified_dev accepted/tizen/unified/20240724.005728 accepted/tizen/unified/dev/20240724.110007 accepted/tizen/unified/toolchain/20240812.131620 accepted/tizen/unified/x/20240724.011805 accepted/tizen/unified/x/asan/20240813.225856
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>
10 months agoAdd metadata profile for NUIGadget 02/314902/2
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>