SELinux policy modules for MySQL and MariaDB packages
Go to file
Michal Schorm dced3fa222 Don't ignore errors in SELinux scriptlets
... well, at leats on the SPECfile side. They are still being ignored in the macros themselves

$ rpm -E %selinux_modules_install
|
| if [ -e /etc/selinux/config ]; then
|   . /etc/selinux/config
| fi
| _policytype=
| if [ -z "${_policytype}" ]; then
|   _policytype="targeted"
| fi
| if [ "${SELINUXTYPE}" = "${_policytype}" ]; then
|   /usr/sbin/semodule -n -s ${_policytype} -X 200 -i  || :
|   /usr/sbin/selinuxenabled && /usr/sbin/load_policy || :
| fi

$ rpm -E %selinux_modules_uninstall
|
| if [ -e /etc/selinux/config ]; then
|   . /etc/selinux/config
| fi
| _policytype=
| if [ -z "${_policytype}" ]; then
|   _policytype="targeted"
| fi
| if [ $1 -eq 0 ]; then
|   if [ "${SELINUXTYPE}" = "${_policytype}" ]; then
|     /usr/sbin/semodule -n -X 200 -s ${_policytype} -r  &> /dev/null || :
|     /usr/sbin/selinuxenabled && /usr/sbin/load_policy || :
|   fi
| fi

Defined here:
https://src.fedoraproject.org/rpms/selinux-policy/blob/rawhide/f/rpm.macros#_48

The reason is described here: https://bugzilla.redhat.com/show_bug.cgi?id=1665643
TL;DR: The return values of any scriptlet in Fedora MUST be zero.
No matter how the errors in the scriptlets are handled.
For now, the "handled" means "ignored" in the case of SELinux scriplet macros.
2023-09-15 17:15:29 +02:00
.fmf Add missing .fmf dir 2020-12-08 10:08:07 +01:00
.gitignore Enhance .gitignore 2021-09-13 13:19:00 +02:00
.packit.yaml Add PACKIT configuration 2023-09-14 11:00:50 +02:00
ci.fmf Use production branch and add gating 2020-12-08 14:43:06 +01:00
gating.yaml Use production branch and add gating 2020-12-08 14:43:06 +01:00
mysql-selinux.spec Don't ignore errors in SELinux scriptlets 2023-09-15 17:15:29 +02:00
README.md Added the README 2018-08-02 13:41:01 +00:00
README.packit [packit] 1.0.7 upstream release 2023-09-14 09:12:41 +00:00
sources [packit] 1.0.7 upstream release 2023-09-14 09:12:41 +00:00

mysql-selinux

The mysql-selinux package