Install platform upgrade patch script 12/87712/5 accepted/tizen/common/20160912.181220 accepted/tizen/ivi/20160912.215332 accepted/tizen/mobile/20160912.215243 accepted/tizen/mobile/20160921.023815 accepted/tizen/tv/20160912.215256 accepted/tizen/wearable/20160912.215313 submit/tizen/20160912.042351 submit/tizen_mobile/20160921.023558
authorSeungbae Shin <seungbae.shin@samsung.com>
Fri, 9 Sep 2016 07:30:39 +0000 (16:30 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 12 Sep 2016 04:17:16 +0000 (13:17 +0900)
This patch script changes smack label from pulseaudio to System

[Version] 5.0-89
[Profile] Common
[Issue Type] Security

Change-Id: I02085261a9779402489f0c8cd872e9243552f885

packaging/500.pulseaudio-upgrade.patch.sh [new file with mode: 0755]
packaging/pulseaudio.spec

diff --git a/packaging/500.pulseaudio-upgrade.patch.sh b/packaging/500.pulseaudio-upgrade.patch.sh
new file mode 100755 (executable)
index 0000000..ef94b0a
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+chsmack -a System /var/lib/pulse
index 4a6f022..28fb8f6 100644 (file)
@@ -6,17 +6,19 @@
 %bcond_with x
 
 %define udev_dir %{_prefix}/lib/udev
+%define upgrade_script_dir %{_datadir}/upgrade/scripts
 
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          5.0
-Release:          88
+Release:          89
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
 URL:              http://pulseaudio.org
 Source0:          http://www.freedesktop.org/software/pulseaudio/releases/%{name}-%{version}.tar.gz
 Source99:         baselibs.conf
 Source1001:       pulseaudio.manifest
+Source1:          500.pulseaudio-upgrade.patch.sh
 BuildRequires:    libtool-ltdl-devel
 BuildRequires:    libtool
 BuildRequires:    intltool
@@ -302,6 +304,9 @@ mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants/
 ln -s  ../pulseaudio.service  %{buildroot}%{_unitdir}/multi-user.target.wants/pulseaudio.service
 %endif
 
+mkdir -p %{buildroot}%{upgrade_script_dir}
+cp %{SOURCE1} %{buildroot}%{upgrade_script_dir}/
+
 fdupes  %{buildroot}%{_datadir}
 fdupes  %{buildroot}%{_includedir}
 
@@ -460,6 +465,8 @@ fi
 
 %exclude %config(noreplace) /etc/bash_completion.d/pulseaudio-bash-completion.sh
 
+%{upgrade_script_dir}/500.pulseaudio-upgrade.patch.sh
+
 %files -n libpulse
 %manifest %{name}.manifest
 %defattr(-,root,root,-)