Compare commits
13 Commits
587df32c24
...
0a257336b7
Author | SHA1 | Date | |
---|---|---|---|
|
0a257336b7 | ||
|
785e90b5bb | ||
|
099a21f90c | ||
|
8bef99ef1c | ||
|
b19568706c | ||
|
3beee6268b | ||
|
fc4807dfa1 | ||
|
3461bc3864 | ||
|
73fb266de6 | ||
|
7b79126b8b | ||
|
b294906c15 | ||
|
26fef37d8a | ||
|
82901c3ccd |
1
.mysql-selinux.metadata
Normal file
1
.mysql-selinux.metadata
Normal file
@ -0,0 +1 @@
|
||||
a1d3b982fc4bfba5b74138ad8cd46e8f41c7f5b1 mysql-selinux-1.0.10.tar.gz
|
@ -1,11 +1,16 @@
|
||||
# General maintainer notes:
|
||||
# Fedora guideliens for packaging of SELinux rules:
|
||||
# https://fedoraproject.org/wiki/SELinux/IndependentPolicy
|
||||
# RHEL instructions regarding Troubleshooting problems related to SELinux:
|
||||
# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/using_selinux/troubleshooting-problems-related-to-selinux_using-selinux
|
||||
|
||||
# defining macros needed by SELinux
|
||||
%global selinuxtype targeted
|
||||
%global moduletype contrib
|
||||
%global modulename mysql
|
||||
|
||||
Name: mysql-selinux
|
||||
Version: 1.0.4
|
||||
Release: 2%{?dist}
|
||||
Version: 1.0.10
|
||||
Release: 1%{?dist}
|
||||
|
||||
License: GPLv3
|
||||
URL: https://github.com/devexp-db/mysql-selinux
|
||||
@ -14,10 +19,13 @@ Summary: SELinux policy modules for MySQL and MariaDB packages
|
||||
Source0: https://github.com/devexp-db/mysql-selinux/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: selinux-policy-devel
|
||||
Requires(post): policycoreutils
|
||||
|
||||
%{?selinux_requires}
|
||||
Requires: selinux-policy-%{selinuxtype}
|
||||
Requires(post): selinux-policy-%{selinuxtype}
|
||||
|
||||
%description
|
||||
SELinux policy modules for MySQL and MariaDB packages.
|
||||
@ -31,32 +39,57 @@ make
|
||||
|
||||
%install
|
||||
# install policy modules
|
||||
install -d %{buildroot}%{_datadir}/selinux/packages
|
||||
install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
|
||||
install -d %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}
|
||||
install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}
|
||||
|
||||
|
||||
%pre
|
||||
%selinux_relabel_pre -s %{selinuxtype}
|
||||
|
||||
%post
|
||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 || :
|
||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
%selinux_modules_uninstall -s %{selinuxtype} %{modulename} || :
|
||||
%selinux_modules_uninstall -s %{selinuxtype} %{modulename}
|
||||
fi
|
||||
|
||||
%posttrans
|
||||
%selinux_relabel_post -s %{selinuxtype} || :
|
||||
%selinux_relabel_post -s %{selinuxtype}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,0755)
|
||||
%attr(0644,root,root) %{_datadir}/selinux/packages/%{modulename}.pp.bz2
|
||||
%attr(0644,root,root) %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2
|
||||
%ghost %verify(not mode md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
|
||||
%license COPYING
|
||||
|
||||
# Note:
|
||||
# we do not pack the *.if file as seen in the example:
|
||||
# https://fedoraproject.org/wiki/SELinux/IndependentPolicy#The_%prep_and_%install_Section
|
||||
# since we do not have any interface to be shared (and even then it is optional)
|
||||
|
||||
%changelog
|
||||
* Sat Nov 18 2023 Packit <hello@packit.dev> - 1.0.10-1
|
||||
- 2nd attempt to fix rhbz#2186996 rhbz#2221433 rhbz#2245705 (Michal Schorm)
|
||||
- Resolves rhbz#2250424
|
||||
|
||||
* Fri Nov 17 2023 Packit <hello@packit.dev> - 1.0.9-1
|
||||
- Revert "Attempt to fix rhbz#2186996 rhbz#2221433 rhbz#2245705" This reverts commit de84778e555b891fd9ea5f3111c87a4990650d6c. (Michal Schorm)
|
||||
- Resolves rhbz#2250360
|
||||
|
||||
* Tue Sep 26 2023 Michal Schorm <mschorm@redhat.com> - 1.0.7-2
|
||||
- Bump release for rebuild
|
||||
|
||||
* Thu Sep 14 2023 Packit <hello@packit.dev> - 1.0.7-1
|
||||
- Empty commit to test Fedora PACKIT configuration for packaging automation (Michal Schorm)
|
||||
|
||||
* Wed Jul 12 2023 Adam Dobes <adobes@redhat.com> - 1.0.6-1
|
||||
- Rebase to 1.0.6
|
||||
|
||||
* Thu Jun 09 2022 Michal Schorm <mschorm@redhat.com> - 1.0.5-1
|
||||
- Rebase to 1.0.5
|
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.4-2
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (mysql-selinux-1.0.4.tar.gz) = 8fb0adcbb5b41056846da0dcd80852c771027d048556f5c3e5779a6655ddd2a34fb4506bd25048e52a7de14a7091bdb0efd13ef800493ee83ad7c17945517e61
|
||||
SHA512 (mysql-selinux-1.0.10.tar.gz) = f990b4a3d4aa026d29594c79d6e91cd2861f508eb3b36d7a4dc43d511b26f169b727120735a8a752fbe0d3e9531ae132cdbb527f00e7faa64cac32cbc7007034
|
||||
|
Loading…
Reference in New Issue
Block a user