Add multi-user support

Bug-Tizen: PTREL-331
Change-Id: I989696309e9e76cfd54682e0556729beb89a849e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Use fsetxattr() directly to set '@' and '*' for the socket.

The functions that were used are not part of libsmack v1.0 API.

Change-Id: I52690bc09ff5d712df410e7ec3e1f5687b8d2ae6
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
Desactivate preload features

Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Create am_agent process

Change-Id: I8e392c38d692a803c35b935df3accc45216348e3
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Remove old launchpad daemon

Change-Id: I07673e13a49d0dcdfbb03fedac5f173e6f486e8a
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Make am_agent discuss with amd process to launch an app

Change-Id: I7e3d8d2c6d9cd10dad0a69db2b3430d0eca452d3
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Add Crosswalk Launchpad capabilities

Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
renamed am_agent to am_session_agent; fix segfault in amd_session_agent after first app launch

Change-Id: I5b63c6f90161cf831b78816040dd227afc51dabb
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
cleanup agent code, added uid in amd request to agent

Change-Id: I68ab3d6c76391d9dd09289f2e1bec315ad93bed1
Fix build with Cosswalk and add Dbus call

Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
fix build; added specific dlog tag for agent

Change-Id: I74b380b92b72c8a3008d3b563cf52775e35fa541
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
fix caller_uid check in agent

Change-Id: I53ce4430fb4590ed6f1a7c1fbd57035ae7d6a202
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Use DBUS SESSION bus instead of DBUS SYSTEM bus

Launch/Dead signals are now sent on DBUS SESSION bus.

TO BE FIXED: amd daemon has no dead signal anymore. A new implementation for this signal must be defined.

Change-Id: I6cc935acf8bdeb29a416f45a2bf858f42072b76d
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
amd_session_agent now sends an APP_DEAD_SIGNAL request to amd daemon to signal the end of an app

Change-Id: Ic1c9d2ba79c414cb73d547ff240c88df414351b9
Fix Error Management

Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
amd: check that sender of APP_DEAD_SIGNAL is /usr/bin/amd_session_agent

Change-Id: I78c37c4aa2a74d0179c6d4f394acabe41c4a9096
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Add systemd service

Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>