From: Marcin Krol Date: Sun, 31 Dec 2023 14:09:52 +0000 (+0100) Subject: - more %files fixes X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=d64a95aa1e6fef50688bb25e03849806e253cd57;p=packages%2Fmysql.git - more %files fixes --- diff --git a/mysql.spec b/mysql.spec index 0784fb7..e003056 100644 --- a/mysql.spec +++ b/mysql.spec @@ -1080,15 +1080,17 @@ fi %{_datadir}/mysql/%{mysqlversion}/lang/charsets %files -n mysql-common +%defattr(644,root,root,755) %attr(751,root,root) %dir %{_sysconfdir}/mysql -%attr(751,root,root) %dir %{_libdir}/mysql -%attr(751,root,root) %dir %{_datadir}/mysql +%dir %{_libdir}/mysql +%dir %{_datadir}/mysql %attr(751,root,root) %dir /var/lib/mysql -%attr(751,root,root) %dir /var/lib/mysql-files -%attr(751,root,root) %dir /var/log/mysql -%attr(751,root,root) %dir /var/log/archive/mysql +%attr(750,root,root) %dir /var/lib/mysql-files +%attr(750,root,root) %dir /var/log/mysql +%attr(750,root,root) %dir /var/log/archive/mysql %files dirs +%defattr(644,root,root,755) %attr(751,root,root) %dir %{_sysconfdir}/mysql/%{mysqlversion} # root:root is proper here for mysql.rpm while mysql:mysql is potential security hole %attr(751,root,root) %dir /var/lib/mysql/%{mysqlversion}