From d64a95aa1e6fef50688bb25e03849806e253cd57 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 31 Dec 2023 15:09:52 +0100 Subject: [PATCH] - more %files fixes --- mysql.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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} -- 2.46.0