Remove SMACK rule file(.rule) according three domain model 55/19355/2
authorseong.chung <seong.chung@samsung.com>
Fri, 11 Apr 2014 06:02:04 +0000 (15:02 +0900)
committerSeongwook Chung <seong.chung@samsung.com>
Fri, 11 Apr 2014 06:12:21 +0000 (23:12 -0700)
Since SMACK only allows three labels, "_"(floor), "User", "System"
The labels of current rule file are not appropriate
Result :
- Remove rule file
- Remove file declaration statement of spec file
- Remove install statement declared in CMakeList.txt

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

Change-Id: I38b9000a441d6c74e18da6627ca93d893c10348d
Signed-off-by: seong.chung <seong.chung@samsung.com>
CMakeLists.txt
contacts-service2.rule [deleted file]
packaging/contacts-service.spec

index d668505..fd47a64 100755 (executable)
@@ -57,9 +57,6 @@ INSTALL(FILES ${HEADER_FILES} DESTINATION ${DEST_INCLUDE_DIR})
 FILE(GLOB DB_FILES ${CMAKE_CURRENT_SOURCE_DIR}/build-util/.contacts-svc.db*)
 INSTALL(FILES ${DB_FILES} DESTINATION /opt/usr/dbspace)
 
-#Install SMACK rule file
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/contacts-service2.rule DESTINATION /opt/etc/smack/accesses.d)
-
 ADD_SUBDIRECTORY(client)
 ADD_SUBDIRECTORY(server)
 
diff --git a/contacts-service2.rule b/contacts-service2.rule
deleted file mode 100644 (file)
index fc9dc81..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-contacts-service _ arwxt
-contacts-service system::vconf arwx
-contacts-service contacts-service::db rw
-contacts-service contacts-service::svc rw
-contacts-service contacts-service::phonelog rw
-contacts-service contacts-service::vconf arwx
-contacts-service contacts-service::vconf-private arwx
-contacts-service calendar-service x
-contacts-service device::sys_logging w
-contacts-service device::app_logging w
-contacts-service system::media arwxt
-contacts-service system::ext_storage arwxt
-contacts-service system::homedir arwxt
-contacts-service system::share arwxt
-contacts-service ail::db rw
-contacts-service badge::db rw
-contacts-service data-provider-master::badge rw
-
index 1ba0f46..f812341 100644 (file)
@@ -109,7 +109,6 @@ vconftool set -t int db/contacts-svc/phonenumber_min_match_digit 8 -g 6005 -s co
 /usr/lib/systemd/user/sockets.target.wants/contacts-service.socket
 /usr/lib/systemd/user/contacts-service.socket
 %config(noreplace) /opt/usr/dbspace/.contacts-svc.db*
-/opt/etc/smack/accesses.d/%{name}2.rule
 
 %files -n contacts-service2-devel
 %defattr(-,root,root,-)