Bug 1965989
| Summary: | [RHEL9] SELinux is preventing kexec from read access on the file /var/lib/kdump/initramfs-*kdump.img | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | ltao |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9.0 | CC: | lvrabec, mmalik, plautrba, ssekidde |
| Target Milestone: | beta | Keywords: | Triaged |
| Target Release: | 9.0 Beta | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-34.1.9-1.el9 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-12-07 21:35:16 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1965952 | ||
|
Description
ltao
2021-05-31 10:20:07 UTC
Needs backporting:
commit af7e4b6492b315ee0912aef7f9f2d89a4f681ab6
Author: Zdenek Pytela <zpytela>
Date: Mon May 10 18:36:26 2021 +0200
Label /var/lib/kdump with kdump_var_lib_t
The kexec-tools usually create initramfs-KERNELVERSIONkdump.img in /boot.
On some operating systems, the /boot directory can be read-only,
preventing the image file from being created. In newer kexec-tools
package versions, the image files are created in /var/lib/kdump
in case /boot is read-only.
The kdump_manage_lib_files() interface was created and rpm_script_t
allowed to manage /var/lib/kdump files. This is needed when the
/lib/kernel/install.d/60-kdump.install kernel install hook is triggered
to delete unused images.
Resolves: rhbz#1951323
This one needs to be backported, too: https://github.com/fedora-selinux/selinux-policy/pull/782 |