From 7779f25b5ba0f1600e8ec1912993f88f1871e1e7 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 3 Apr 2020 08:49:29 +0900 Subject: [PATCH] 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 --- packaging/libtbm.spec | 7 +++++++ packaging/sw_sync.conf | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 packaging/sw_sync.conf 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="*" -- 2.7.4