[tizen v3.0] changes of smack rule as per instruction from tizen v3.0
authorYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 3 Mar 2015 10:11:04 +0000 (19:11 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
On Tizen v3.0, most of smack rules are removed.
So, current smack rules need to be changed,
as per the smack instruction from Tizen v3.0.

This changes are confirmed by Tizen platform team.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=11716
Reviewed by: Antonio Gomes, KC Park

Change-Id: Id01dbcfaf25dc9f145d832a51c946428c9ad270a
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
tizen_src/packaging/chromium-efl.spec
tizen_src/packaging/chromium-efl_v3.0.manifest

index 81bf5f0..ca2ba01 100644 (file)
@@ -281,7 +281,7 @@ export LDFLAGS="$LDFLAGS -L/lib"
   CXXFLAGS=$(echo $CXXFLAGS | sed 's/-g[0-9]*/ /g')
 %endif
 
-%if %{!?chromium_efl_tizen_profile:0}%{?chromium_efl_tizen_profile} == "mobile"
+%if "%{!?chromium_efl_tizen_profile:0}%{?chromium_efl_tizen_profile}" == "mobile"
   %define OUTPUT_BUILD_PROFILE_TARGET mobile
 %else
   %define OUTPUT_BUILD_PROFILE_TARGET tv
@@ -414,7 +414,9 @@ mkdir -p "%{OUTPUT_FOLDER}"/pkgconfig/
 sed -e 's#?VERSION?#%{version}#' tizen_src/build/pkgconfig/chromium-efl.pc.in \
     > "%{OUTPUT_FOLDER}"/pkgconfig/chromium-efl.pc
 
+%if "%{?chromium_efl_tizen_version}%{!?chromium_efl_tizen_version:0}" != "3.0"
 install -d "%{buildroot}"%{_sysconfdir}/smack/accesses2.d
+%endif
 install -d "%{buildroot}"%{_bindir}
 install -d "%{buildroot}"%{_libdir}/pkgconfig
 install -d "%{buildroot}"%{_includedir}/chromium-ewk
index 2fa5f40..2a0cec5 100644 (file)
@@ -1,61 +1,5 @@
 <manifest>
-  <define>
-    <domain name="org.tizen.chromium-efl" policy="shared" />
-    <provide>
-      <label name="org.tizen.chromium-efl::db"/>
-    </provide>
-    <permit>
-      <smack permit="com.samsung.menu-screen" type="rwx" />
-      <smack permit="e17" type="rwx" />
-      <smack permit="system::use_internet" type="w" />
-    </permit>
-    <request>
-      <smack request="ail::db" type="rw" />
-      <smack request="dbus" type="rwx" />
-      <smack request="com.samsung.indicator" type="rw" />
-      <smack request="system::vconf" type="rwxat" />
-      <smack request="system::media" type="rwxat" />
-      <smack request="system::share" type="rwxat" />
-      <smack request="system::use_internet" type="rw" />
-      <smack request="system::homedir" type="rwxat" />
-      <smack request="xorg" type="rwx" />
-      <smack request="isf" type="rwx" />
-      <smack request="net-config" type="rw" />
-      <smack request="device::app_logging" type="w" />
-      <smack request="immvibed" type="rw" />
-      <smack request="aul::launch" type="x" />
-      <smack request="location_fw::client" type="rw" />
-      <smack request="device::video" type="rw" />
-      <smack request="mm_qcamera_daemon" type="w" />
-      <smack request="pulseaudio" type="rwxat" />
-      <smack request="pulseaudio::record" type="r" />
-      <smack request="sound_server" type="rw" />
-      <smack request="org.tizen.chromium-efl::db" type="rwxat" />
-      <smack request="ui-gadget::client" type="rwx" />
-      <smack request="deviced::haptic" type="rw" />
-
-      <smack request="pkgmgr::db" type="rw" />
-      <smack request="system::vconf_inhouse" type="rwl" />
-      <smack request="system::vconf_system" type="rwl" />
-      <smack request="system::vconf_setting" type="r" />
-      <smack request="system::vconf_misc" type="rl" />
-      <smack request="system::vconf_multimedia" type="rl" />
-      <smack request="sys-assert::core" type="wx" />
-      <smack request="pkgmgr-server" type="r" />
-      <smack request="efreet" type="rx" />
-      <smack request="_" type="rwx" />
-      <smack request="device::sys_logging" type="w" />
-    </request>
-  </define>
   <request>
     <domain name="_"/>
   </request>
-  <assign>
-    <filesystem path="/usr/lib/chromium-efl/efl_webprocess" label="org.tizen.chromium-efl" exec_label="none"/>
-    <filesystem path="/opt/usr/apps/chromium-efl/data/db/" label="org.tizen.chromium-efl::db" exec_label="none"/>
-    <filesystem path="/usr/lib/libchromium-ewk.so" label="_" />
-    <filesystem path="/opt/share/icons/mini-browser.png" label="_" />
-    <filesystem path="/usr/bin/efl_webview_app" label="org.tizen.chromium-efl" exec_label="org.tizen.chromium-efl"/>
-    <filesystem path="/usr/bin/mini_browser" label="org.tizen.chromium-efl" exec_label="org.tizen.chromium-efl"/>
-  </assign>
 </manifest>