Modification about smack label of db file belong to process. 12/20812/2 accepted/tizen_mobile tizen accepted/tizen/mobile/20141022.083003 submit/tizen/20140519.044905
authorjooseong.lee <jooseong.lee@samsung.com>
Tue, 13 May 2014 05:13:19 +0000 (14:13 +0900)
committerjooseong lee <jooseong.lee@samsung.com>
Tue, 13 May 2014 05:12:56 +0000 (22:12 -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: Ib4aa1e071225035ffd2dcd8f305e5a2ac3eedf3b
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
packaging/data-provider-master.manifest

index a76fdba..9039e9c 100644 (file)
@@ -2,4 +2,7 @@
        <request>
                <domain name="_" />
        </request>
+       <assign>
+               <filesystem path="/opt/dbspace/.livebox.db*" label="User" />
+       </assign>
 </manifest>