assign the display group for the file asscess on sw_sync 87/229687/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 2 Apr 2020 23:49:29 +0000 (08:49 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 2 Apr 2020 23:49:29 +0000 (08:49 +0900)
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
packaging/sw_sync.conf [new file with mode: 0644]

index 37a6206..335e1de 100644 (file)
@@ -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 (file)
index 0000000..deac6c8
--- /dev/null
@@ -0,0 +1,2 @@
+z   /sys/kernel/debug/sync/sw_sync    0666    root    display    -
+t   /sys/kernel/debug/sync/sw_sync    -    -    -    -    security.SMACK64="*"