Rework pkgdir-tool 33/67933/26
authorSangyoon Jang <s89.jang@samsung.com>
Fri, 29 Apr 2016 08:10:31 +0000 (17:10 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 23 May 2016 07:46:59 +0000 (16:46 +0900)
commit41b7ac5c6c5d55423a249a688a5dcded3a8c7b59
tree0b9a8add8d4f532c8ca1f8e6ab779d2bf406bd9c
parent4bef3f859a40cba9d9ed0a535978fb4205ef5c94
Rework pkgdir-tool

For several issue(performace, code consistency, ...), the pkgdir-tool is
reworked.

The app-installer calls security-manager api just once for labeling
skel directories, not for each users.
And the pkgdir-tool copies those labeled directories to each user's home
directory.

The pkgdir-tool doesn't have setuid bit no more(because of security issue),
so it will be launched by dbus activation.
(It still needs root privilege for writing permission to user directories)

Requires:
 - https://review.tizen.org/gerrit/68140
 - https://review.tizen.org/gerrit/68294

Change-Id: Ib96c41f08d681443c5993bedd3fcf4f1c91db8c3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
14 files changed:
CMakeLists.txt
packaging/app-installers.spec
src/common/CMakeLists.txt
src/common/security_registration.cc
src/common/security_registration.h
src/common/shared_dirs.cc
src/common/shared_dirs.h
src/common/step/filesystem/step_create_per_user_storage_directories.cc
src/common/step/filesystem/step_remove_per_user_storage_directories.cc
src/common/utils/file_util.cc
src/pkgdir_tool/CMakeLists.txt
src/pkgdir_tool/org.tizen.pkgdir_tool.conf [new file with mode: 0644]
src/pkgdir_tool/org.tizen.pkgdir_tool.service [new file with mode: 0644]
src/pkgdir_tool/pkgdir_tool.cc