Use symlinks for directories that are symlinked 72/298772/2 accepted/tizen/unified/20230914.164932
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 13 Sep 2023 08:38:25 +0000 (10:38 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 13 Sep 2023 11:09:01 +0000 (13:09 +0200)
commit676f358fddaf4297e6037950ab45d0f7c0949556
treef3f77f9adcc554dc42afb9e0eb6abcf7a88a0e55
parent79ae44add8314ffd0c90dcbe95fc91ee9f8fc9a6
Use symlinks for directories that are symlinked

In the system the directory like /lib is a link to /usr/lib
In the sandbox we have performed two binds, which resulted in the fact
that from the sandbox perspective, the modificaiton (bind) in directory
/usr/lib was not visible in /lib

By using symlinks inside the sandbox the ISU package that
provides some libraries can bind it to one path:

  --bind #ISU_RUN_PATH#/service/rootfs/usr/lib/libservice.so.1 /usr/lib/libservice.so.1

instead of:

  --bind #ISU_RUN_PATH#/service/rootfs/usr/lib/libservice.so.1 /usr/lib/libservice.so.1
  --bind #ISU_RUN_PATH#/service/rootfs/usr/lib/libservice.so.1 /lib/libservice.so.1

Change-Id: I9c7c8854261546b2bc9f7111b3f90e9f9cd07c41
packaging/isu.spec
src/helpers/service-common.inc
src/helpers/user-service-common.inc