Update a smack rule file.
authorHokwon Song <hokwon.song@samsung.com>
Wed, 30 Oct 2013 10:00:38 +0000 (19:00 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Wed, 30 Oct 2013 10:00:38 +0000 (19:00 +0900)
Change-Id: I8fe83e43a1de6921c7ee5bec20fbed4a92a079c7
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
CMakeLists.txt
osp-common-service.manifest
packaging/osp-common-service.spec
res/osp-common-service.rule [new file with mode: 0644]

index bf926b0..49cac1e 100644 (file)
@@ -96,4 +96,4 @@ TARGET_LINK_LIBRARIES(${this_target} ${${this_target}_LDFLAGS} ${${this_target}_
 INSTALL(TARGETS ${this_target} DESTINATION ../usr/apps/${APPID}/bin)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/manifest.xml DESTINATION ../usr/apps/${APPID}/info)
 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/ DESTINATION ../usr/apps/${APPID}/data)
-
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/res/${this_target}.rule DESTINATION ../opt/etc/smack/accesses.d)
index 0c6f1a9..ed97903 100644 (file)
@@ -2,11 +2,6 @@
        <define>
                <domain name="sjjevolsjk"/>
                <request>
-                       <smack request="deviced::display" type="rw"/>
-                       <smack request="location_fw::client" type="rw"/>
-                       <smack request="connman" type="rw"/>
-                       <smack request="net-config" type="rw"/>
-                       <smack request="bt-service::admin" type="w"/>
                </request>
        </define>
        <request>
index 48d7438..4236830 100644 (file)
@@ -40,7 +40,6 @@ BuildRequires:        osp-messaging-internal-devel
 # runtime requires
 Requires: chromium
 Requires: osp-appfw
-
 Requires(post): bluetooth-frwk-service
 
 %description
@@ -90,7 +89,7 @@ cp %{_builddir}/%{name}-%{version}/LICENSE.APLv2  %{buildroot}/usr/share/license
 
 %files
 /usr/apps/sjjevolsjk/*
+/opt/etc/smack/accesses.d/%{name}.rule
 %manifest osp-common-service.manifest
 /usr/share/license/%{name}
 
-
diff --git a/res/osp-common-service.rule b/res/osp-common-service.rule
new file mode 100644 (file)
index 0000000..60d4257
--- /dev/null
@@ -0,0 +1,9 @@
+root sjjevolsjk rw----
+_default_ sjjevolsjk rw----
+sjjevolsjk alarm-server::alarm rw----
+sjjevolsjk bt-service::admin -w----
+sjjevolsjk net-config rw----
+sjjevolsjk connman rw----
+sjjevolsjk location_fw::client rw----
+sjjevolsjk deviced::display rw----
+sjjevolsjk tethering::dbus-access rw----