From e317ab581f44730208e1db3db0e7aa71eb569ad8 Mon Sep 17 00:00:00 2001 From: "jc47.park" Date: Tue, 7 May 2013 16:21:27 +0900 Subject: [PATCH] Added the smack rule. Change-Id: If23db21d9e9b86a22415361468b4b6eeccd7b9f9 --- main/CMakeLists.txt | 8 ++ org.tizen.email.rule | 295 ++++++++++++++++++++++++++--------------- packaging/org.tizen.email.spec | 4 + 3 files changed, 203 insertions(+), 104 deletions(-) mode change 100755 => 100644 org.tizen.email.rule diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 12895b3..3ec80b7 100755 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -54,6 +54,14 @@ INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR}) # install manifest file INSTALL(FILES ${CMAKE_EMAIL_BINARY_DIR}/${PKGNAME}.xml DESTINATION ${SHAREDIR}/packages) +# install rule, include file +INSTALL(FILES ${CMAKE_SOURCE_DIR}/${PKGNAME}.rule DESTINATION /etc/smack/accesses.d/) +#INSTALL(FILES ${CMAKE_SOURCE_DIR}/ug.email-account-efl.include DESTINATION /etc/smack/accesses.d/) +#INSTALL(FILES ${CMAKE_SOURCE_DIR}/ug.email-composer-efl.include DESTINATION /etc/smack/accesses.d/) +#INSTALL(FILES ${CMAKE_SOURCE_DIR}/ug.email-mailbox-efl.include DESTINATION /etc/smack/accesses.d/) +#INSTALL(FILES ${CMAKE_SOURCE_DIR}/ug.email-setting-efl.include DESTINATION /etc/smack/accesses.d/) +#INSTALL(FILES ${CMAKE_SOURCE_DIR}/ug.email-viewer-efl.include DESTINATION /etc/smack/accesses.d/) + #install account xml INSTALL(FILES ${CMAKE_EMAIL_BINARY_DIR}/email-setting-efl.account.xml DESTINATION /opt/usr/share/account) diff --git a/org.tizen.email.rule b/org.tizen.email.rule old mode 100755 new mode 100644 index 53b76b6..c68c693 --- a/org.tizen.email.rule +++ b/org.tizen.email.rule @@ -1,109 +1,196 @@ -# subject rule org.tizen.email system::homedir rwxat org.tizen.email system::vconf rwxat org.tizen.email system::media rwxat org.tizen.email system::share rwxat -org.tizen.email system::use_internet rw -org.tizen.email email-service rwx -org.tizen.email email-service::db rw -org.tizen.email webkit2-efl rwx -org.tizen.email isf rwx -org.tizen.email xorg rwx -org.tizen.email dbus rwx -org.tizen.email cbhm r -org.tizen.email pkgmgr r -org.tizen.email efreet rx -org.tizen.email ail::db rw -org.tizen.email app-svc::db rw -org.tizen.email net-config r -#org.tizen.email csc-manager x -org.tizen.email contacts-service rwx -org.tizen.email contacts-service::db rw -org.tizen.email calendar-service rwx -org.tizen.email calendar-service::db rw -org.tizen.email org.tizen.myfile rwx -org.tizen.email org.tizen.setting rwx -org.tizen.email org.tizen.indicator rw -org.tizen.email org.tizen.browser wx -org.tizen.email org.tizen.gallery rwxa -#org.tizen.email com.samsung.smemo rwx -org.tizen.email org.tizen.calendar rwx -org.tizen.email org.tizen.contacts rwx -org.tizen.email org.tizen.camera-app rwx -org.tizen.email org.tizen.contacts-viewer rw -#org.tizen.email com.samsung.facebook r -#org.tizen.email com.samsung.eml-viewer rw -org.tizen.email org.tizen.quickpanel w -org.tizen.email data-provider-master rw -org.tizen.email data-provider-master::share x -org.tizen.email libug-phone::data wx -org.tizen.email libaccounts-svc::db rw -#org.tizen.email mdm-server w +org.tizen.email system::use_internet rwxat +org.tizen.email email-service rwx-- +org.tizen.email email-service::db rw--- +org.tizen.email webkit2-efl rwx-- +org.tizen.email isf rwx-- +org.tizen.email xorg rwx-- +org.tizen.email dbus rwxat +org.tizen.email cbhm rwx-- +org.tizen.email pkgmgr r---- +org.tizen.email efreet r-x-- +org.tizen.email ail::db rw--- +org.tizen.email app-svc::db rw--- +org.tizen.email net-config r-x-- +org.tizen.email csc-manager rwx-- +org.tizen.email contacts-service rwx-- +org.tizen.email contacts-service::db rw--- +org.tizen.email calendar-service rwx-- +org.tizen.email calendar-service::db rw--- +org.tizen.email org.tizen.myfile rwx-- +org.tizen.email org.tizen.setting rwx-- +org.tizen.email org.tizen.indicator rwx-- +org.tizen.email org.tizen.browser rwx-- +org.tizen.email org.tizen.gallery rwxa- +org.tizen.email org.tizen.smemo rwx-- +org.tizen.email org.tizen.calendar rwx-- +org.tizen.email org.tizen.contacts rwx-- +org.tizen.email org.tizen.camera-app rwx-- +org.tizen.email org.tizen.contacts-viewer rw--- +org.tizen.email org.tizen.facebook r-x-- +org.tizen.email org.tizen.eml-viewer rw--- +org.tizen.email org.tizen.quickpanel rwx-- +org.tizen.email data-provider-master rwx-- +org.tizen.email data-provider-master::share --x-- +org.tizen.email libug-phone::data -wx-- +org.tizen.email libaccounts-svc::db rw--- +org.tizen.email mdm-server rwx-- org.tizen.email pulseaudio rwxat -#org.tizen.email sound_server rw -org.tizen.email media-server rwx -org.tizen.email media-data::db rw -org.tizen.email notification::db rw -org.tizen.email worldclock::db rw -#org.tizen.email ims-service::db rw -#org.tizen.email allshare::svc rwx -#org.tizen.email activesync-ui::eas-appsvc r -#org.tizen.email eas-engine rwx -org.tizen.email ug-image-viewer-efl wx -org.tizen.email org.tizen.image-viewer rw -org.tizen.email sys-assert::info wx -org.tizen.email sys-assert::core wx -org.tizen.email system-server rwa -#org.tizen.email location_fw::db rw -org.tizen.email device::app_logging w -org.tizen.email device::sys_logging w -org.tizen.email net.wifi-qs rx -#org.tizen.email stest-service w -#org.tizen.email resman::db rw -org.tizen.email data-provider-master::db rw -#org.tizen.email map-efl x -#org.tizen.email org.tizen.email::email-tts-play x -org.tizen.email cert-svc rwx -#org.tizen.email deviced rwa -#org.tizen.email ug-email-docsearch-efl rwx -#org.tizen.email ug-email-viewer-efl rwx -#org.tizen.email phone-misc::db rw -org.tizen.email mobileprint x -org.tizen.email org.tizen.music-player rw -#org.tizen.email sec_db rwx - -# subject rule for org.tizen.email::db -#org.tizen.email::db system::use_internet w -#org.tizen.email::db media-server w -#org.tizen.email::db org.tizen.email w - -# object rule -mobileprint ug.email-viewer-efl include -webkit2-efl org.tizen.email rxw -#com.samsung.app-tray org.tizen.email rx -e17 org.tizen.email w -system::use_internet org.tizen.email w -org.tizen.data-provider-slave org.tizen.email rx -#org.tizen.data-provider-slave eas-engine rx -org.tizen.data-provider-slave email-service rx -org.tizen.data-provider-slave email-service::db rw -org.tizen.quickpanel org.tizen.email rx -org.tizen.indicator org.tizen.email rwx -#stest-service org.tizen.email rx -#tts-server org.tizen.email rw -org.tizen.app-selector org.tizen.email x - -# include rule -org.tizen.email ug.worldclock-efl include -#org.tizen.email ug.smemo-efl include -org.tizen.email ug.camera-efl include -org.tizen.email ug.image-viewer-efl include -org.tizen.email ug.email-account-efl include -#org.tizen.email ug.email-block-efl include -#org.tizen.email ug.email-filter-efl include -org.tizen.email ug.email-composer-efl include -#org.tizen.email ug.email-docsearch-efl include -org.tizen.email ug.email-mailbox-efl include -org.tizen.email ug.email-setting-efl include -org.tizen.email ug.email-viewer-efl include -#org.tizen.email ug.activesync-efl include +org.tizen.email sound_server rwx-- +org.tizen.email media-server rwx-- +org.tizen.email media-data::db rw--- +org.tizen.email notification::db rw--- +org.tizen.email worldclock::db rw--- +org.tizen.email ims-service::db rw--- +org.tizen.email allshare::svc rwx-- +org.tizen.email activesync-ui::eas-appsvc rw--- +org.tizen.email eas-engine rwx-- +org.tizen.email ug-image-viewer-efl rwxat +org.tizen.email org.tizen.image-viewer rw--- +org.tizen.email sys-assert::info -wx-- +org.tizen.email sys-assert::core rwxat +org.tizen.email system-server rwxa- +org.tizen.email location_fw::db rw--- +org.tizen.email device::app_logging -w--- +org.tizen.email device::sys_logging -w--- +org.tizen.email net.wifi-qs r-x-- +org.tizen.email stest-service -w--- +org.tizen.email resman::db rw--- +org.tizen.email data-provider-master::db rw--- +org.tizen.email map-efl rwxat +org.tizen.email org.tizen.email::email-tts-play --x-- +org.tizen.email cert-svc rwx-- +org.tizen.email deviced rwxa- +org.tizen.email ug-email-docsearch-efl rwxat +org.tizen.email ug-email-viewer-efl rwx-- +org.tizen.email phone-misc::db rw--- +org.tizen.email mobileprint --x-- +org.tizen.email org.tizen.music-player rw--- +org.tizen.email sec_db rwx-- +org.tizen.email::db system::use_internet -w--- +org.tizen.email::db media-server -w--- +org.tizen.email::db org.tizen.email -w--- +mobileprint system::homedir rwxat +mobileprint system::vconf rwxat +mobileprint system::media rwxat +mobileprint system::share rwxat +mobileprint pulseaudio rwxat +mobileprint webkit2-efl r-x-- +mobileprint org.tizen.email rwx-- +mobileprint ug-email-viewer-efl rwxat +org.tizen.app-tray mobileprint r-x-- +e17 mobileprint -w--- +webkit2-efl org.tizen.email rwx-- +org.tizen.app-tray org.tizen.email r-xat +e17 org.tizen.email rw--- +system::use_internet org.tizen.email -w--- +org.tizen.data-provider-slave org.tizen.email r-x-- +org.tizen.data-provider-slave eas-engine r-x-- +org.tizen.data-provider-slave email-service r-x-- +org.tizen.data-provider-slave email-service::db rw--- +org.tizen.quickpanel org.tizen.email r-x-- +org.tizen.indicator org.tizen.email rwx-- +stest-service org.tizen.email r-x-- +tts-server org.tizen.email rw--- +org.tizen.app-selector org.tizen.email --x-- +org.tizen.email e17 r-x-- +org.tizen.email org.tizen.pwlock r---- +org.tizen.email system::app_logging -w--- +org.tizen.email ug-worldclock-efl r---- +org.tizen.email dali rwxat +org.tizen.email smemo::db rw--- +org.tizen.email org.tizen.image-editor r---- +org.tizen.email system::home rwxat +org.tizen.email org.tizen.gallery::web-media.db rwx-- +org.tizen.email org.tizen.gallery::gallery-media.db rwx-- +org.tizen.email org.tizen.gallery-service rwx-- +org.tizen.email org.tizen.cluster-home rwx-- +org.tizen.email download-provider rw--- +org.tizen.email drmfw rw--- +org.tizen.email crash-worker --x-- +org.tizen.email msg-service rwx-- +org.tizen.email cloud-content-sync::db rw--- +org.tizen.email cloud-content-sync rwx-- +org.tizen.email device::video rw--- +org.tizen.email device::hwcodec rw--- +org.tizen.email org.tizen.gallery::face-svc.db rwx-- +org.tizen.email camera-external-engine rw--- +aul org.tizen.email rwx-- +isf org.tizen.email r---- +org.tizen.gallery-service org.tizen.email rwx-- +org.tizen.cluster-home ug-image-viewer-efl r-x-- +org.tizen.lockscreen ug-image-viewer-efl r-x-- +org.tizen.email org.tizen.message rwx-- +org.tizen.email ug-msg-composer-efl rwxat +media-server org.tizen.email -w--- +org.tizen.email svi-data r-x-- +org.tizen.email immvibed rwx-- +context-service org.tizen.email r-x-- +org.tizen.email msg-service::db rw--- +org.tizen.email ug-msg-viewer-efl rwxat +org.tizen.email org.tizen.email rwx-- +org.tizen.email ug-email-composer-efl rwxat +org.tizen.email ug_bluetooth r-x-- +org.tizen.email syspopup::db rwx-- +org.tizen.email thumb-server r---- +org.tizen.email org.tizen.fileshare-service rwxat +org.tizen.email wifi_direct_manager rw--- +org.tizen.fileshare-service org.tizen.email r---- +org.tizen.email nfc-manager rwx-- +org.tizen.email nfc-manager::p2p rwx-- +org.tizen.email nfc-manager::admin rwx-- +org.tizen.cluster-home org.tizen.email r-x-- +org.tizen.email device::camera rw--- +org.tizen.email device::mdnie rw--- +org.tizen.email pkgmer::db r---- +org.tizen.email power_manager rwx-- +org.tizen.email stt-server rwx-- +org.tizen.email tts-server rwx-- +org.tizen.email ug-camera-efl rwxat +org.tizen.email vcs-server rwx-- +org.tizen.email image-filter-d::db rw--- +org.tizen.email pkgmgr::db rw--- +org.tizen.email org.tizen.svoice rwxat +org.tizen.email org.tizen.dropbox r---- +org.tizen.email oma-ds-agent rwx-- +oma-ds-agent org.tizen.email rwx-- +org.tizen.email oma-ds-agent::cfg rwxat +org.tizen.setting org.tizen.email r-x-- +org.tizen.setting oma-ds-agent::cfg rwx-- +system::use_internet oma-ds-agent rwx-- +oma-ds-agent system::use_internet rwx-- +org.tizen.email syslogd rwx-- +org.tizen.email dlogutil r-x-- +org.tizen.email telephony_framework r-x-- +org.tizen.email aul r-x-- +org.tizen.email ode r-x-- +org.tizen.email sensor-framework r-x-- +org.tizen.email secure-storage rwx-- +org.tizen.email starter r-x-- +org.tizen.email osp-app-service r-x-- +org.tizen.email osp-security-service r-x-- +org.tizen.email osp-channel-service r-x-- +org.tizen.email org.tizen.app-tray r-x-- +org.tizen.email connman rwx-- +org.tizen.email mobicore-daemon r-x-- +org.tizen.email alarm-server rwx-- +org.tizen.email brcm_daemon r-x-- +org.tizen.email resman r-x-- +org.tizen.email osp-connectivity-service rwx-- +org.tizen.email push-service rwx-- +org.tizen.email org.tizen.data-provider-slave rwx-- +org.tizen.email usb-server rwx-- +org.tizen.email mtp-responder rwx-- +org.tizen.email sdbd rwx-- +org.tizen.email org.tizen.volume rwx-- +org.tizen.email samsung-account-front r-x-- +org.tizen.email location_fw::client rwx-- +org.tizen.email org.tizen.smartsearch --x-- +org.tizen.email ug-map-efl rwxat +org.tizen.email obexd r-x-- +org.tizen.email eas-engine::db rw--- +org.tizen.email org.tizen.email::db rw--- +org.tizen.email system::pulseaudio rwxat diff --git a/packaging/org.tizen.email.spec b/packaging/org.tizen.email.spec index 0786d1f..f5848ca 100755 --- a/packaging/org.tizen.email.spec +++ b/packaging/org.tizen.email.spec @@ -112,3 +112,7 @@ ln -sf /usr/bin/ug-client %{_ugdir}/bin/email-setting-efl /opt/usr/share/account/email-setting-efl.account.xml %{_sharedir}/icons/default/small/org.tizen.email.png %{_sharedir}/license/%{name}/LICENSE + +/etc/smack/accesses.d/org.tizen.email.rule + + -- 2.7.4