From e1477527bc3c527f35e0af2be07e51084bf6e4d4 Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 11:52:43 -0400 Subject: [PATCH] Auto sync2gitlab import of mysql-selinux-1.0.2-6.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - mysql-selinux.spec | 106 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 mysql-selinux.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e791f5d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mysql-selinux-1.0.2.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/mysql-selinux.spec b/mysql-selinux.spec new file mode 100644 index 0000000..a947be0 --- /dev/null +++ b/mysql-selinux.spec @@ -0,0 +1,106 @@ +# defining macros needed by SELinux +%global selinuxtype targeted +%global moduletype contrib +%global modulename mysql + +Name: mysql-selinux +Version: 1.0.2 +Release: 6%{?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: 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 +* Thu Jan 10 2022 Lukas Javorsky - 1.0.2-6 +- Fix the gating.yaml file so it checks the correct tests + +* Thu Apr 22 2021 Lukas Javorsky - 1.0.2-5 +- Fix rpm verification it's a ghost file so it should ignore the error + +* Mon Dec 07 2020 Honza Horak - 1.0.2-4 +- Rebuild for added tmt gating + Related: #1895021 + +* 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 + diff --git a/sources b/sources new file mode 100644 index 0000000..8bff39e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (mysql-selinux-1.0.2.tar.gz) = f3bea6ae7abec1cac42e91d71538933d69f6ef73c050e8a7e824333b7597914ed4ada0ff694bd46bb1828f9759de5ba455a38c4eced4f18c310e1f7fcee37dca