Remove SMACK rule file(.rule) according three domain model 22/19422/2 tizen submit/tizen/20140430.061142
authorseong.chung <seong.chung@samsung.com>
Fri, 11 Apr 2014 13:43:31 +0000 (22:43 +0900)
committerSeongwook Chung <seong.chung@samsung.com>
Fri, 11 Apr 2014 13:44:24 +0000 (06:44 -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.pwlock.rule)
- Remove install statement about installing rule file described in CMakeLists.txt
- Remove file path and name declaration of spec file (packaging/org.tizen.pwlock.spec)

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

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

index 95e3b4b..8e4566a 100755 (executable)
@@ -99,7 +99,6 @@ TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PKGNAME}.xml DESTINATION /usr/share/packages)
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR})
 
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${PKGNAME}.rule DESTINATION /etc/smack/accesses.d)
 
 # i18n
 ADD_SUBDIRECTORY(po)
diff --git a/org.tizen.pwlock.rule b/org.tizen.pwlock.rule
deleted file mode 100644 (file)
index 9ac6f8d..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-org.tizen.pwlock system::homedir rwxat
-org.tizen.pwlock system::vconf rwxat
-org.tizen.pwlock system::media rwxat
-org.tizen.pwlock system::share rwxat
-org.tizen.pwlock system::syslogd w
-org.tizen.pwlock sys-assert::core rwxat
-org.tizen.pwlock net-config r
-org.tizen.pwlock xorg rw
-org.tizen.pwlock isf r
-org.tizen.pwlock device::app_logging w
-org.tizen.pwlock ail::db rw
-org.tizen.pwlock dbus w
-org.tizen.pwlock pulseaudio rwxat
-org.tizen.app-tray org.tizen.pwlock rx
-org.tizen.pwlock stest-service w
-org.tizen.pwlock pkgmgr:db rw
-org.tizen.pwlock telephony_framework::api_sim rx
-org.tizen.pwlock ode rwx
-org.tizen.pwlock csc-manager r
-org.tizen.pwlock e17 rw
-dbus org.tizen.pwlock w
-e17 org.tizen.pwlock rw
-stest-service org.tizen.pwlock rx
index d74ee7e..ff1737a 100755 (executable)
@@ -55,7 +55,6 @@ vconftool $GOPTION set -t int memory/pwlock/state "0" -f -i
 
 %files
 %manifest %{name}.manifest
-/etc/smack/accesses.d/org.tizen.pwlock.rule
 %defattr(-,root,root,-)
 %attr(4755,root,root) /usr/apps/org.tizen.pwlock/bin/pwlock
 /usr/apps/org.tizen.pwlock/bin/pwlock