Remove SMACK rule file(.rule) according three domain model 82/19382/2
authorseong.chung <seong.chung@samsung.com>
Fri, 11 Apr 2014 08:25:17 +0000 (17:25 +0900)
committerSeongwook Chung <seong.chung@samsung.com>
Fri, 11 Apr 2014 08:27:46 +0000 (01:27 -0700)
Since SMACK only allows three labels, "_"(floor), "User", "System"
The labels of current rule file are not appropriate

Solution:
- Remove rule file (org.tizen.bt-syspopup.rule)
- Remove install statement about installing rule file described in CMakeLists.txt
- Remove file path and name declaration of spec file (packaging/org.tizen.bt-syspopup.spec)

Reference site
https://wiki.tizen.org/wiki/Security:SmackThreeDomainModel

Change-Id: I85b0de743d6fb612013f4afdf7b35062668dbd47
Signed-off-by: seong.chung <seong.chung@samsung.com>
CMakeLists.txt
data/org.tizen.bt-syspopup.rule [deleted file]
packaging/org.tizen.bt-syspopup.spec

index 671ecc61213b91c853af84abe0b01bde461b1f86..4cd5fa6eebcff64590e508bb484fef81b86d74bd 100644 (file)
@@ -82,6 +82,5 @@ INSTALL(TARGETS ${PROJECT_NAME} DESTINATION /opt/apps/org.tizen.bt-syspopup/bin)
 # install desktop file & icon
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 INSTALL(FILES ${CMAKE_BINARY_DIR}/data/org.tizen.bt-syspopup.xml DESTINATION /usr/share/packages/)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/data/org.tizen.bt-syspopup.rule DESTINATION /opt/etc/smack/accesses.d)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/org.tizen.bt-syspopup.png DESTINATION /opt/share/icons/default/small)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/custom_popup.edj DESTINATION /opt/apps/org.tizen.bt-syspopup/res/edje)
diff --git a/data/org.tizen.bt-syspopup.rule b/data/org.tizen.bt-syspopup.rule
deleted file mode 100644 (file)
index 9ecea79..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-org.tizen.bt-syspopup system::homedir rwxat
-org.tizen.bt-syspopup system::vconf rwxat
-org.tizen.bt-syspopup system::media rwxat
-org.tizen.bt-syspopup system::share rwxat
-org.tizen.app-tray org.tizen.bt-syspopup r-x--
-org.tizen.bt-syspopup pulseaudio rwxat
-org.tizen.bt-syspopup sys-assert::core rwxat
-e17 org.tizen.bt-syspopup rwx--
-org.tizen.bt-syspopup ug_bluetooth r----
-org.tizen.bt-syspopup system::use_internet r----
-org.tizen.bt-syspopup xorg rw---
-org.tizen.bt-syspopup isf rwx--
-org.tizen.bt-syspopup ail::db rw---
-org.tizen.bt-syspopup syspopup::db rwx--
-org.tizen.bt-syspopup dbus rw---
-org.tizen.bt-syspopup sound_server rw---
-org.tizen.bt-syspopup power_manager -w---
-org.tizen.bt-syspopup immvibed rw---
-org.tizen.bt-syspopup svi-data r-x--
-org.tizen.bt-syspopup ui-gadget::client rw---
-org.tizen.bt-syspopup deviced rwx--
-deviced org.tizen.bt-syspopup rwx--
index 2b346689b99437853c3a55b0977865af1fe4fc72..e288d54114ffa8258502c33bec14a23ca0f74da5 100644 (file)
@@ -65,7 +65,6 @@ rm -rf %{buildroot}
 
 %files
 %manifest org.tizen.bt-syspopup.manifest
-/opt/etc/smack/accesses.d/org.tizen.bt-syspopup.rule
 %defattr(-,root,root,-)
 %{_usrdir}/share/packages/org.tizen.bt-syspopup.xml
 %{_appdir}/org.tizen.bt-syspopup/bin/bt-syspopup