From: SooChan Lim Date: Thu, 2 Apr 2020 23:49:29 +0000 (+0900) Subject: assign the display group for the file asscess on sw_sync X-Git-Tag: accepted/tizen/unified/20200415.121412~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F229687%2F1;p=platform%2Fcore%2Fuifw%2Flibtbm.git assign the display group for the file asscess on sw_sync When the user uses tbm_sync_timeline_xxx api, SYNC_DEVICE_PATH has to get the display group authority. The sw_sync.conf file will do that. Change-Id: I22e221995c58b61a4974b943ba3515dfcb9e0093 --- diff --git a/packaging/libtbm.spec b/packaging/libtbm.spec index 37a6206..335e1de 100644 --- a/packaging/libtbm.spec +++ b/packaging/libtbm.spec @@ -7,6 +7,8 @@ %define HALTESTS_GCOV 0 %endif +%define _tmpfilesdir %{_libdir}/tmpfiles.d + Name: libtbm Version: 3.3.4 Release: 1 @@ -15,6 +17,7 @@ Summary: The library for Tizen Buffer Manager Group: System/Libraries Source0: %{name}-%{version}.tar.gz Source1001: %name.manifest +Source1002: sw_sync.conf BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(wayland-server) @@ -96,6 +99,9 @@ rm gcov-obj/tbm_haltests-tc* rm -rf %{buildroot} %make_install +%__mkdir_p %{buildroot}%{_tmpfilesdir} +install -m 0644 %SOURCE1002 %{buildroot}%{_tmpfilesdir}/sw_sync.conf + %__mkdir_p %{buildroot}%{_unitdir_user} install -m 644 service/tbm-drm-auth-user.service %{buildroot}%{_unitdir_user} install -m 644 service/tbm-drm-auth-user.path %{buildroot}%{_unitdir_user} @@ -131,6 +137,7 @@ rm -f %{_unitdir_user}/basic.target.wants/tbm-drm-auth-user.path %{_includedir}/tbm_*.h %{_libdir}/libtbm.so %{_libdir}/pkgconfig/libtbm.pc +%{_tmpfilesdir}/sw_sync.conf %if "%{HALTESTS_PACKAGE}" == "1" %files haltests diff --git a/packaging/sw_sync.conf b/packaging/sw_sync.conf new file mode 100644 index 0000000..deac6c8 --- /dev/null +++ b/packaging/sw_sync.conf @@ -0,0 +1,2 @@ +z /sys/kernel/debug/sync/sw_sync 0666 root display - +t /sys/kernel/debug/sync/sw_sync - - - - security.SMACK64="*"