From: Hoseon LEE Date: Tue, 12 Mar 2013 09:01:44 +0000 (+0900) Subject: Adding the smack rule include files X-Git-Tag: 2.2.1_release^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd2a8aabe28438f35b9d7c4eb78fcc8724ca0bda;p=apps%2Fhome%2Fwrt-setting.git Adding the smack rule include files [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 --- diff --git a/packaging/wrt-setting.spec b/packaging/wrt-setting.spec index caaefea..46274c0 100644 --- a/packaging/wrt-setting.spec +++ b/packaging/wrt-setting.spec @@ -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/* diff --git a/webapp-common/CMakeLists.txt b/webapp-common/CMakeLists.txt index 3201a43..7561002 100755 --- a/webapp-common/CMakeLists.txt +++ b/webapp-common/CMakeLists.txt @@ -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 index 0000000..fd3a922 --- /dev/null +++ b/webapp-common/ug.webapp-common-efl.include @@ -0,0 +1 @@ +$1 wrt-commons::db_wrt rwx diff --git a/webapp-detail/CMakeLists.txt b/webapp-detail/CMakeLists.txt index 0f07eb2..b3cfd1c 100755 --- a/webapp-detail/CMakeLists.txt +++ b/webapp-detail/CMakeLists.txt @@ -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 index 0000000..fd3a922 --- /dev/null +++ b/webapp-detail/ug.webapp-detail-efl.include @@ -0,0 +1 @@ +$1 wrt-commons::db_wrt rwx