Modification about smack label of db file belong to process. 70/20670/2 tizen submit/tizen_common/20140521.163740 submit/tizen_common/20140522.130648 submit/tizen_common/20140522.135644
authorjooseong.lee <jooseong.lee@samsung.com>
Mon, 12 May 2014 02:28:39 +0000 (11:28 +0900)
committerjooseong lee <jooseong.lee@samsung.com>
Mon, 12 May 2014 02:28:20 +0000 (19:28 -0700)
[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: Ib3e0f1f36865658de4404eb007bf85f6269800ff
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
packaging/wrt-security.spec

index 4ac95bf..3791e60 100644 (file)
@@ -108,6 +108,8 @@ else
     fi
 fi
 
+chsmack -a 'User' /opt/dbspace/.ace.db*
+
 /sbin/ldconfig
 echo "[WRT] wrt-security postinst done ..."