summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhhh.kwon <hhh.kwon@samsung.com>2013-05-03 13:14:02 (GMT)
committerhhh.kwon <hhh.kwon@samsung.com>2013-05-03 13:14:02 (GMT)
commit97dc5306cf01bd5904c665fac3f5f4e100d16134 (patch)
tree04bc9d02f5e1404210133864b8bcfd9e34a95e45
parent6f4e661192f57cde2a5302f9b74193328e1f8a10 (diff)
downloadstarter-97dc5306cf01bd5904c665fac3f5f4e100d16134.zip
starter-97dc5306cf01bd5904c665fac3f5f4e100d16134.tar.gz
starter-97dc5306cf01bd5904c665fac3f5f4e100d16134.tar.bz2
Apply smack rule.
-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