[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: Idd4a2e446c5d7db4b93777a871f2478055a0818e
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
update_DAC_for_db_file %{TZ_SYS_DB}/.app_info.db
update_DAC_for_db_file %{TZ_SYS_DB}/.app_info.db-journal
+chsmack -a 'User' %{TZ_SYS_DB}/.app_info.db*
%postun
/sbin/ldconfig