Split SMACK rule from manifest file
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 6 Mar 2013 08:04:42 +0000 (17:04 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 7 Mar 2013 07:12:00 +0000 (16:12 +0900)
Change-Id: I7620ef4fea1194fba8f53b0509faaa7bf8965d04

Makefile.am
isf.manifest
isf.rule [new file with mode: 0755]
packaging/isf.spec

index d1fc456..835a835 100644 (file)
@@ -56,6 +56,9 @@ endif
 pkgconfig_DATA          = isf.pc scim.pc \
                          $(GTK_UTILS_PKGCONFIG)
 
+smackdir = /etc/smack/accesses2.d/
+smack_DATA = isf.rule
+
 ACLOCAL_AMFLAGS = -I ism/m4
 
 .PHONY: update-ChangeLog
index 587be28..17dcacb 100755 (executable)
@@ -1,17 +1,6 @@
 <manifest>
        <define>
                <domain name="isf"/>
-               <request>
-                       <smack request="system::vconf" type="arwxt"/>
-                       <smack request="system::homedir" type="arwxt"/>
-                       <smack request="xorg" type="w"/>
-                       <smack request="system::use_internet" type="r"/>
-                       <smack request="e17" type="r"/>
-                       <smack request="device::app_logging" type="w"/>
-                       <smack request="svi-data" type="rx"/>
-                       <smack request="sound_server" type="w"/>
-                       <smack request="sys-assert::core" type="arwxt"/>
-               </request>
        </define>
        <assign>
                <filesystem path="/usr/lib/ecore/immodules/libisf-imf-module.so" label="_"/>
diff --git a/isf.rule b/isf.rule
new file mode 100755 (executable)
index 0000000..f5f7e72
--- /dev/null
+++ b/isf.rule
@@ -0,0 +1,9 @@
+isf system::vconf arwxt
+isf system::homedir arwxt
+isf xorg w
+isf system::use_internet r
+isf e17 r
+isf device::app_logging w
+isf svi-data rx
+isf sound_server w
+isf sys-assert::core arwxt
index 0e4420a..1525642 100755 (executable)
@@ -73,7 +73,8 @@ mkdir -p /opt/usr/apps/scim/lib/scim-1.0/1.4.0/Helper
 
 
 %files
-%manifest isf.manifest
+%manifest %{name}.manifest
+/etc/smack/accesses2.d/%{name}.rule
 %defattr(-,root,root,-)
 %{_libdir}/systemd/user/core-efl.target.wants/scim.service
 %{_libdir}/systemd/user/scim.service