commit 7762d47d1eb0c92ca0c992df21ae9eba1b76a89a Author: CentOS Sources Date: Tue Nov 2 08:53:41 2021 -0400 import mysql-selinux-1.0.4-2.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..347a548 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/mysql-selinux-1.0.4.tar.gz diff --git a/.mysql-selinux.metadata b/.mysql-selinux.metadata new file mode 100644 index 0000000..0bb48a7 --- /dev/null +++ b/.mysql-selinux.metadata @@ -0,0 +1 @@ +92d872599452815eb6ccc6c2af62b8f0af48a780 SOURCES/mysql-selinux-1.0.4.tar.gz diff --git a/SPECS/mysql-selinux.spec b/SPECS/mysql-selinux.spec new file mode 100644 index 0000000..d891bd3 --- /dev/null +++ b/SPECS/mysql-selinux.spec @@ -0,0 +1,111 @@ +# defining macros needed by SELinux +%global selinuxtype targeted +%global moduletype contrib +%global modulename mysql + +Name: mysql-selinux +Version: 1.0.4 +Release: 2%{?dist} + +License: GPLv3 +URL: https://github.com/devexp-db/mysql-selinux +Summary: SELinux policy modules for MySQL and MariaDB packages + +Source0: mysql-selinux-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: make +BuildRequires: selinux-policy-devel +Requires(post): policycoreutils +%{?selinux_requires} + +%description +SELinux policy modules for MySQL and MariaDB packages. + +%prep +%setup -q -n %{name}-%{version} + +%pre +%selinux_relabel_pre -s %{selinuxtype} + +%build +make + +%install +# install policy modules +install -d %{buildroot}%{_datadir}/selinux/packages +install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages + +%check + +%post +%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 || : + +%postun +if [ $1 -eq 0 ]; then + %selinux_modules_uninstall -s %{selinuxtype} %{modulename} || : +fi + +%posttrans +%selinux_relabel_post -s %{selinuxtype} || : + +%files +%defattr(-,root,root,0755) +%attr(0644,root,root) %{_datadir}/selinux/packages/%{modulename}.pp.bz2 +%ghost %verify(not mode md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} +%license COPYING + +%changelog +* Mon Aug 09 2021 Mohan Boddu - 1.0.4-2 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Tue May 04 2021 Lukas Javorsky - 1.0.4-1 +- Rebase to 1.0.4 +- Fix rpm verification it's a ghost file so it should ignore the error + +* Fri Apr 16 2021 Mohan Boddu - 1.0.2-3 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Dec 02 2020 Michal Schorm - 1.0.2-1 +- Rebase to 1.0.2 release + Added context for "*mariadb*" named executables + +* Tue Dec 01 2020 Michal Schorm - 1.0.1-1 +- Rebase to 1.0.1 release + This release is just a sync-up with upstream selinux-policy +- URL changed to a new upstream repository + +* Tue Jul 28 2020 Fedora Release Engineering - 1.0.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.0.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.0.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jan 11 2019 Kevin Fenzi - 1.0.0-7 +- Also make sure posttrans does not fail. + +* Thu Jan 10 2019 Kevin Fenzi - 1.0.0-6 +- Add Requires(post) on policycoreutils for semodule and make sure post/postun cannot fail + +* Thu Dec 06 2018 Jakub Janco - 1.0.0-5 +- Sync with upstream + +* Wed Aug 29 2018 Jakub Janco - 1.0.0-4 +- Allow mysqld sys_nice capability + +* Mon Aug 20 2018 Jakub Janco - 1.0.0-3 +- reflect latest changes of mysql policy + +* Fri Jul 27 2018 Jakub Janco - 1.0.0-2 +- reflect latest changes of Independent Product Policy + +* Wed Jul 18 2018 Jakub Janco - 1.0.0-1 +- First Build +