From 381d4379064dd55da51bf78be9f23d4f65a8224a Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sat, 14 Apr 2018 21:01:27 +0000 Subject: [PATCH] - keep app tmp in appdir, accessible by http:http only --- phpMyAdmin.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec index e676dab..6c0e2a9 100644 --- a/phpMyAdmin.spec +++ b/phpMyAdmin.spec @@ -89,7 +89,7 @@ find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} +install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/tmp} cp -p *.php *.css favicon.ico robots.txt $RPM_BUILD_ROOT%{_appdir} cp -a js libraries locale sql templates themes vendor $RPM_BUILD_ROOT%{_appdir} @@ -137,6 +137,7 @@ rm -rf $RPM_BUILD_ROOT %{_appdir}/sql %{_appdir}/templates %{_appdir}/themes +%dir %attr(770,http,http) %{_appdir}/tmp %{_appdir}/vendor %{_appdir}/*.css %{_appdir}/*.php -- 2.46.0