Bug 1723118
| Summary: | kickstart installation with GNOME and Xfce: DNF error in POSTIN scriplet of flatpak-selinux | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | René Genz <liebundartig> | ||||||||||
| Component: | flatpak | Assignee: | David King <amigadave> | ||||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||
| Priority: | unspecified | ||||||||||||
| Version: | 30 | CC: | amigadave, klember, terje.rosten | ||||||||||
| Target Milestone: | --- | ||||||||||||
| Target Release: | --- | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | flatpak-1.4.1-3.fc31 | Doc Type: | If docs needed, set a value | ||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2019-06-25 22:25:25 UTC | Type: | Bug | ||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||
| Documentation: | --- | CRM: | |||||||||||
| Verified Versions: | Category: | --- | |||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
| Embargoed: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
René Genz
2019-06-22 23:51:53 UTC
Created attachment 1583611 [details]
a file from /tmp ; output of RPM packages
Created attachment 1583612 [details]
the other log files from /tmp
for what it is worth: I tracked the installed packages; put their names in the kickstart file; disabled the groups in the kickstart file, enabled "@^minimal-environment", and started another installation. The total number of packages was smaller than before. The installation finished without problems. The GNOME/Xfce combination is required to trigger the problem. I also got this error and I think I found the root cause. flatpak-selinux has %post script: https://src.fedoraproject.org/rpms/flatpak/blob/f30/f/flatpak.spec#_167 %selinux_modules_install %{_datadir}/selinux/packages/flatpak.pp.bz2 which expands to: postinstall scriptlet (using /bin/sh): . /etc/selinux/config _policytype= if [ -z "${_policytype}" ]; then _policytype="targeted" fi if [ "${SELINUXTYPE}" = "${_policytype}" ]; then /usr/sbin/semodule -n -s ${_policytype} -X 200 -i /usr/share/selinux/packages/flatpak.pp.bz2 /usr/sbin/selinuxenabled && /usr/sbin/load_policy || : fi The problem is that /etc/selinux/config is in $ rpm -qf /etc/selinux/config selinux-policy-3.14.3-39.fc30.noarch however flatpak-selinux have only weak requires like this: Requires: selinux-policy >= %{_selinux_policy_version} however it must be the stronger (note the extra post) Requires(post): selinux-policy >= %{_selinux_policy_version} The problem can be seen in rpm db: $ rpm -q --qf '%{name} %{INSTALLTIME}\n' flatpak-selinux selinux-policy flatpak-selinux 1561488293 selinux-policy 1561488294 selinux-policy is installed after flatpak-selinux Created attachment 1587455 [details]
Protect sourcing of /etc/selinux/config
Patch to protect all sourcing of /etc/selinux/config.
Sorry, should be added to https://bugzilla.redhat.com/show_bug.cgi?id=1723940 |