|
|
b9d7d6 |
# defining macros needed by SELinux
|
|
|
b9d7d6 |
%global selinuxtype targeted
|
|
|
b9d7d6 |
%global moduletype contrib
|
|
|
b9d7d6 |
%global modulename mysql
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
Name: mysql-selinux
|
|
|
b9d7d6 |
Version: 1.0.2
|
|
|
b9d7d6 |
Release: 4%{?dist}
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
License: GPLv3
|
|
|
b9d7d6 |
URL: https://github.com/devexp-db/mysql-selinux
|
|
|
b9d7d6 |
Summary: SELinux policy modules for MySQL and MariaDB packages
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
Source0: mysql-selinux-%{version}.tar.gz
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
BuildArch: noarch
|
|
|
b9d7d6 |
BuildRequires: selinux-policy-devel
|
|
|
b9d7d6 |
Requires(post): policycoreutils
|
|
|
b9d7d6 |
%{?selinux_requires}
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%description
|
|
|
b9d7d6 |
SELinux policy modules for MySQL and MariaDB packages.
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%prep
|
|
|
b9d7d6 |
%setup -q -n %{name}-%{version}
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%pre
|
|
|
b9d7d6 |
%selinux_relabel_pre -s %{selinuxtype}
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%build
|
|
|
b9d7d6 |
make
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%install
|
|
|
b9d7d6 |
# install policy modules
|
|
|
b9d7d6 |
install -d %{buildroot}%{_datadir}/selinux/packages
|
|
|
b9d7d6 |
install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%check
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%post
|
|
|
b9d7d6 |
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 || :
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%postun
|
|
|
b9d7d6 |
if [ $1 -eq 0 ]; then
|
|
|
b9d7d6 |
%selinux_modules_uninstall -s %{selinuxtype} %{modulename} || :
|
|
|
b9d7d6 |
fi
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%posttrans
|
|
|
b9d7d6 |
%selinux_relabel_post -s %{selinuxtype} || :
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%files
|
|
|
b9d7d6 |
%defattr(-,root,root,0755)
|
|
|
b9d7d6 |
%attr(0644,root,root) %{_datadir}/selinux/packages/%{modulename}.pp.bz2
|
|
|
b9d7d6 |
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
|
|
|
b9d7d6 |
%license COPYING
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
%changelog
|
|
|
b9d7d6 |
* Mon Dec 07 2020 Honza Horak <hhorak@redhat.com> - 1.0.2-4
|
|
|
b9d7d6 |
- Rebuild for added tmt gating
|
|
|
b9d7d6 |
Related: #1895021
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Wed Dec 02 2020 Michal Schorm <mschorm@redhat.com> - 1.0.2-1
|
|
|
b9d7d6 |
- Rebase to 1.0.2 release
|
|
|
b9d7d6 |
Added context for "*mariadb*" named executables
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Tue Dec 01 2020 Michal Schorm <mschorm@redhat.com> - 1.0.1-1
|
|
|
b9d7d6 |
- Rebase to 1.0.1 release
|
|
|
b9d7d6 |
This release is just a sync-up with upstream selinux-policy
|
|
|
b9d7d6 |
- URL changed to a new upstream repository
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-10
|
|
|
b9d7d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-9
|
|
|
b9d7d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
|
|
|
b9d7d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Fri Jan 11 2019 Kevin Fenzi <kevin@scrye.com> - 1.0.0-7
|
|
|
b9d7d6 |
- Also make sure posttrans does not fail.
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Thu Jan 10 2019 Kevin Fenzi <kevin@scrye.com> - 1.0.0-6
|
|
|
b9d7d6 |
- Add Requires(post) on policycoreutils for semodule and make sure post/postun cannot fail
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Thu Dec 06 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-5
|
|
|
b9d7d6 |
- Sync with upstream
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Wed Aug 29 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-4
|
|
|
b9d7d6 |
- Allow mysqld sys_nice capability
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Mon Aug 20 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-3
|
|
|
b9d7d6 |
- reflect latest changes of mysql policy
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Fri Jul 27 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-2
|
|
|
b9d7d6 |
- reflect latest changes of Independent Product Policy
|
|
|
b9d7d6 |
|
|
|
b9d7d6 |
* Wed Jul 18 2018 Jakub Janco <jjanco@redhat.com> - 1.0.0-1
|
|
|
b9d7d6 |
- First Build
|
|
|
b9d7d6 |
|