[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: I419b0114e7aea0254bc3945c5358bec635a1d80b
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
chmod 660 %{TZ_SYS_DB}/.memo.db
chmod 660 %{TZ_SYS_DB}/.memo.db-journal
+chsmack -a 'User' %{TZ_SYS_DB}/.memo.db*
+
%postun -p /sbin/ldconfig
%files