Update deprecated libprivilege-control API functions.

Change-Id: Ia3bd3396471e63b5baf1815c2828e7e423b1ed13
Signed-off-by: Marcin Lis <m.lis@samsung.com>
Remove smack hardcoded path

Bug-Tizen: PTREL-776

Change-Id: I92032cb365fca44cefa5e6fe393e71d625ad1e14
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Merge "Update deprecated libprivilege-control API functions." into tizen
Remove SMACK rule file(.rule) according three domain model

Since SMACK only allows three labels, "_"(floor), "User", "System"
The labels of current rule file are not appropriate 
Result : 
- Remove rule file 
- Remove file declaration statement of spec file

Reference site
https://wiki.tizen.org/wiki/Security:SmackThreeDomainModel

Change-Id: Ibdb278463e6a206afb8a7d82b56c8eae800f6b22
Signed-off-by: seong.chung <seong.chung@samsung.com>
Change /tmp/amd_ready to /run/amd_ready

/tmp/amd_ready file was used for path activation in the systemd user session.
Path is changed to /run/amd_ready to fix issue on SMACK label issue and
to use the right directory for the purpose.

Change-Id: Iceb5e61e5956cc367f5501a09cd727c76b76c177
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
Modification about smack label of db file belong to process.

[Problem] 
Most db files have 'floor' label.  Because these are created during image creation time.
Therefore no process can write the dbs (since 'floor' label allows only read and execute)

[Solution] 
Modify smack label of the db files based on condition below referring three domain model
Condition1. Assign domain of process which creates db files
Condition2. Assign domain of process accesses db files.

Change-Id: I705b4f646ad3f9e41f014573c8cebfbabc8bdcd8
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
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>