Use a file descriptor passed by the launchpad 34/73534/24 accepted/tizen/common/20160627.191234 accepted/tizen/ivi/20160623.121723 accepted/tizen/mobile/20160623.121624 accepted/tizen/tv/20160623.121635 accepted/tizen/wearable/20160623.121656 submit/tizen/20160622.081450
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 8 Jun 2016 11:16:00 +0000 (20:16 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 21 Jun 2016 22:34:24 +0000 (07:34 +0900)
commitaa9d70f28efd176a032c883258c866dde753303e
tree3929408c8a6c963a5bc3a748b6e7a214a6b99cf3
parent7694216802ea1cee8abd612b5646d12e9dd881b0
Use a file descriptor passed by the launchpad

- The application socket path is changed to "/run/aul/apps/<uid>/".
- An aul.service file is added for making /run/aul/apps and
/run/aul/daemons directories. The /run/aul/daemons directory has
the "User::Home" SMACK label to protect sockets of daemon processes
from being deleted by attacker.
- While calling the aul_initialize(), the application can get
the aul listen socketfd by using getenv(). The launchpad sets the
environment variable about the aul listen socketfd before executing an
application.

Change-Id: Ie0e5cbeef12ed96ddeab2cfbd38e355cca2692de
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
packaging/aul.service [new file with mode: 0644]
packaging/aul.spec
src/aul_sock.c
src/launch.c