Adding the smack rule include files
authorHoseon LEE <hoseon46.lee@samsung.com>
Tue, 12 Mar 2013 09:01:44 +0000 (18:01 +0900)
committerHoseon LEE <hoseon46.lee@samsung.com>
Tue, 12 Mar 2013 11:51:11 +0000 (20:51 +0900)
[Issue#] N/A
[Problem] Setting menu does not get the permission of SMACK
[Cause] Setting process does not have the rule of wrt setting ug
[Solution] Adding the smack rule
[SCMRequest] N/A

Change-Id: Ib34850a946899d04edea54ecb27619b9dcaa692d

packaging/wrt-setting.spec
webapp-common/CMakeLists.txt
webapp-common/ug.webapp-common-efl.include [new file with mode: 0644]
webapp-detail/CMakeLists.txt
webapp-detail/ug.webapp-detail-efl.include [new file with mode: 0644]

index caaefea..46274c0 100644 (file)
@@ -41,6 +41,8 @@ rm -rf %{buildroot}
 
 %files
 %manifest wrt-setting.manifest
+/etc/smack/accesses2.d/ug.webapp-common-efl.include
+/etc/smack/accesses2.d/ug.webapp-detail-efl.include
 %defattr(-,root,root,-)
 %{_datadir}/license/%{name}
 /opt/ug/*
index 3201a43..7561002 100755 (executable)
@@ -48,6 +48,7 @@ SET_TARGET_PROPERTIES(${TARGET_UG_LIB} PROPERTIES SOVERSION ${PROJECT_API_VERSIO
 SET_TARGET_PROPERTIES(${TARGET_UG_LIB} PROPERTIES VERSION ${PROJECT_VERSION})
 TARGET_LINK_LIBRARIES(${TARGET_UG_LIB} ${UG_WEB_APP_COMMON_DEPS_LDFLAGS})
 INSTALL(TARGETS ${TARGET_UG_LIB} DESTINATION ${UGDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ug.webapp-common-efl.include DESTINATION /etc/smack/accesses2.d)
 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/icons/ DESTINATION ${ICONDIR} FILES_MATCHING PATTERN "*.png")
 
 ADD_SUBDIRECTORY(edc)
diff --git a/webapp-common/ug.webapp-common-efl.include b/webapp-common/ug.webapp-common-efl.include
new file mode 100644 (file)
index 0000000..fd3a922
--- /dev/null
@@ -0,0 +1 @@
+$1 wrt-commons::db_wrt rwx
index 0f07eb2..b3cfd1c 100755 (executable)
@@ -59,5 +59,6 @@ SET_TARGET_PROPERTIES(${TARGET_UG_DETAIL_LIB} PROPERTIES SOVERSION ${PROJECT_API
 SET_TARGET_PROPERTIES(${TARGET_UG_DETAIL_LIB} PROPERTIES VERSION   ${PROJECT_VERSION})
 TARGET_LINK_LIBRARIES(${TARGET_UG_DETAIL_LIB} ${UG_WEB_APP_DETAIL_DEPS_LDFLAGS} ${UG_WEB_APP_DETAIL_DEPS_LIBRARIES})
 INSTALL(TARGETS ${TARGET_UG_DETAIL_LIB} DESTINATION ${UGDIR})
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ug.webapp-detail-efl.include DESTINATION /etc/smack/accesses2.d)
 
 ADD_SUBDIRECTORY(edc)
diff --git a/webapp-detail/ug.webapp-detail-efl.include b/webapp-detail/ug.webapp-detail-efl.include
new file mode 100644 (file)
index 0000000..fd3a922
--- /dev/null
@@ -0,0 +1 @@
+$1 wrt-commons::db_wrt rwx