summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHong Kwon <hhh.kwon@tizendev.org>2013-05-03 14:13:42 (GMT)
committerGerrit Code Review <gerrit2@kim11>2013-05-03 14:13:42 (GMT)
commitec5bbd6ceec7f079ee56cdc8b889e31e03d4eec3 (patch)
tree04bc9d02f5e1404210133864b8bcfd9e34a95e45
parent84e0d36302fa6f155ac140cb37d91806ef231249 (diff)
parent97dc5306cf01bd5904c665fac3f5f4e100d16134 (diff)
downloadstarter-ec5bbd6ceec7f079ee56cdc8b889e31e03d4eec3.zip
starter-ec5bbd6ceec7f079ee56cdc8b889e31e03d4eec3.tar.gz
starter-ec5bbd6ceec7f079ee56cdc8b889e31e03d4eec3.tar.bz2
Merge "Apply smack rule." into tizen_2.1_smack
-rwxr-xr-xCMakeLists.txt2
-rw-r--r--packaging/starter.spec1
-rw-r--r--starter.rule6
3 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d563331..14707d7 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,6 +88,8 @@ SET(LOCK_SETTING lock-setting)
ADD_SUBDIRECTORY(${CMAKE_SOURCE_DIR}/${LOCK_SETTING})
+INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PKGNAME}.rule DESTINATION /etc/smack/accesses2.d)
+
# install desktop file & icon
#CONFIGURE_FILE(${PROJECT_NAME}.desktop.in ${PROJECT_NAME}.desktop)
#INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.desktop DESTINATION share/applications)
diff --git a/packaging/starter.spec b/packaging/starter.spec
index 9d027fc..c13072c 100644
--- a/packaging/starter.spec
+++ b/packaging/starter.spec
@@ -108,3 +108,4 @@ ln -sf /etc/init.d/rd3starter /etc/rc.d/rc3.d/S43starter
%{_libdir}/systemd/user/core-efl.target.wants/starter.path
/usr/share/license/%{name}
/opt/data/home-daemon
+/etc/smack/accesses2.d/starter.rule
diff --git a/starter.rule b/starter.rule
new file mode 100644
index 0000000..b2dfebf
--- /dev/null
+++ b/starter.rule
@@ -0,0 +1,6 @@
+starter system::homedir rwxat
+starter system::vconf rwxat
+starter system::media rwxat
+starter system::share rwxat
+starter pulseaudio rwxat
+dbus starter rx