From b0f2450d85133061724a3c4f1dfc6e3f04a92dbd Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Sat, 6 Feb 2021 04:35:20 +0000 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/mysql-selinux.git#7e7c60d6498ee587f87fc114f867ef78086bc7d1 --- .fmf/version | 1 + .gitignore | 3 ++ README.md | 3 ++ ci.fmf | 8 ++++ gating.yaml | 7 ++++ mysql-selinux.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 7 files changed, 123 insertions(+) create mode 100644 .fmf/version create mode 100644 README.md create mode 100644 ci.fmf create mode 100644 gating.yaml create mode 100644 mysql-selinux.spec create mode 100644 sources diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore index e69de29..1781b1e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +/mysql-selinux.tar.gz +/mysql-selinux-1.0.1.tar.gz +/mysql-selinux-1.0.2.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..0160536 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# mysql-selinux + +The mysql-selinux package \ No newline at end of file diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..2a29fba --- /dev/null +++ b/ci.fmf @@ -0,0 +1,8 @@ +summary: Sanity tests +discover: + how: fmf + repository: https://src.fedoraproject.org/tests/mariadb.git + ref: master + filter: tier:1 +execute: + how: tmt diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..9e9f772 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0-tf.functional} diff --git a/mysql-selinux.spec b/mysql-selinux.spec new file mode 100644 index 0000000..af2bf46 --- /dev/null +++ b/mysql-selinux.spec @@ -0,0 +1,100 @@ +# defining macros needed by SELinux +%global selinuxtype targeted +%global moduletype contrib +%global modulename mysql + +Name: mysql-selinux +Version: 1.0.2 +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 %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} +%license COPYING + +%changelog +* 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 + 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