Modification about smack label of db file belong to process. 82/20982/2 accepted/tizen/common/20140519.230349 submit/tizen/20140516.061258 submit/tizen_common/20140521.163740 submit/tizen_common/20140522.130648 submit/tizen_common/20140522.135644
authorjooseong.lee <jooseong.lee@samsung.com>
Wed, 14 May 2014 09:44:08 +0000 (18:44 +0900)
committerjooseong lee <jooseong.lee@samsung.com>
Wed, 14 May 2014 09:43:48 +0000 (02:43 -0700)
commit800b3e1adfe4c5f6bdcc74267cb80fdc02016bca
treeaa5c73d6c557001dbb97a6538ae6e344b2b10b3e
parentc3b6ec3bc5a38d8d379688e15ad6423e5dbfb424
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: I7538593b434e3e8a07696c12f441cbd444a31d16
Signed-off-by: jooseong.lee <jooseong.lee@samsung.com>
tool/pkg_initdb.c