| Name: | container-selinux |
|---|---|
| Epoch: | 2 |
| Version: | 2.124.0 |
| Release: | 1.module+el8.2.0+7618+3a616245 |
| Architecture: | noarch |
| Module: | container-tools:2.0:8020020200420104655:28c38760 container-tools:2.0:8020020200420175838:3ba8ebeb container-tools:2.0:8020020200518151901:28c38760 container-tools:2.0:8020020200707073953:28c38760 |
| Group: | Unspecified |
| Size: | 45036 |
| License: | GPLv2 |
| RPM: | container-selinux-2.124.0-1.module+el8.2.0+7618+3a616245.noarch.rpm |
| Source RPM: | container-selinux-2.124.0-1.module+el8.2.0+7618+3a616245.src.rpm |
| Build Date: | Mon May 11 2020 |
| Build Host: | jenkins-10-147-72-125-65401f72-f687-4923-a026-2f2c8925146f.appad1iad.osdevelopmeniad.oraclevcn.com |
| Vendor: | Oracle America |
| URL: | https://github.com/containers/container-selinux |
| Summary: | SELinux policies for container runtimes |
| Description: | SELinux policy modules for use with container runtimes. |
- update to 2.124.0 - Related: RHELPLAN-25139
- implement spec file refactoring by Zdenek Pytela, namely:
Change the uninstall command in the %postun section of the specfile
to use the
. /etc/selinux/config
_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 macro which uses priority 200. &> /dev/null || :
/usr/sbin/selinuxenabled && /usr/sbin/load_policy || :
fi
fi
Change the install command in the %post section if the specfile
to use the
. /etc/selinux/config
_policytype=
if [ -z "${_policytype}" ]; then
_policytype="targeted"
fi
if [ "${SELINUXTYPE}" = "${_policytype}" ]; then
/usr/sbin/semodule -n -s ${_policytype} -X 200 -i macro.
/usr/sbin/selinuxenabled && /usr/sbin/load_policy || :
fi
Replace relabel commands with using the
. /etc/selinux/config
_policytype=
if [ -z "${_policytype}" ]; then
_policytype="targeted"
fi
if /usr/sbin/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then
[ -f /var/lib/rpm-state/file_contexts.pre ] || cp -f /etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts /var/lib/rpm-state/file_contexts.pre
fi
. /etc/selinux/config
_policytype=
if [ -z "${_policytype}" ]; then
_policytype="targeted"
fi
if /usr/sbin/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then
if [ -f /var/lib/rpm-state/file_contexts.pre ]; then
/usr/sbin/fixfiles -C /var/lib/rpm-state/file_contexts.pre restore &> /dev/null
rm -f /var/lib/rpm-state/file_contexts.pre
fi
fi
Change formatting so that the lines are vertically aligned
in the %postun section.
(https://github.com/containers/container-selinux/pull/85)
- Related: RHELPLAN-25139
- update to 2.123.0 - Related: RHELPLAN-25139
- update to 2.122.0 - Related: RHELPLAN-25139
- update to master container-selinux - bug 1769469 - Related: RHELPLAN-25139
- fix post scriptlet - fail if semodule fails - bug 1729272 - Related: RHELPLAN-25139
- update to 2.119.0 - Related: RHELPLAN-25139
- update to 2.116 Resolves: #1748519
- Use at least selinux policy 3.14.3-9.el8, Resolves: #1728700
- Resolves: #1720654 - rebase to v2.107