Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1536690

Summary: SELinux denial of 'kexec' trying to read the vmlinuz file
Product: Red Hat Enterprise Linux 7 Reporter: Micah Abbott <miabbott>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: lvrabec, mgrepl, miabbott, mmalik, plautrba, ssekidde, walters
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-203.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:02:20 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:

Description Micah Abbott 2018-01-19 23:11:59 UTC
Using RHELAH 7.4.4, I'm seeing a denials like so:

# journalctl -b | grep 'avc:  denied'                                                
Jan 19 17:52:04 dhcp-41-226.bos.redhat.com kernel: type=1400 audit(1516402324.116:5): avc:  denied  { read } for  pid=15497 comm="kexec" name="vmlinuz-3.10.0-693.17.1.el7.x86_64" dev="sda1" ino=786497 scontext=system_u:system_r:kdump_t:s0 tcontext=system_u:object_r:modules_object_t:s0 tclass=file                   
Jan 19 17:52:04 dhcp-41-226.bos.redhat.com kernel: type=1400 audit(1516402324.116:6): avc:  denied  { read } for  pid=15497 comm="kexec" name="vmlinuz-3.10.0-693.17.1.el7.x86_64" dev="sda1" ino=786497 scontext=system_u:system_r:kdump_t:s0 tcontext=system_u:object_r:modules_object_t:s0 tclass=file                   
Jan 19 17:52:04 dhcp-41-226.bos.redhat.com kernel: type=1400 audit(1516402324.116:7): avc:  denied  { read } for  pid=15497 comm="kexec" name="vmlinuz-3.10.0-693.17.1.el7.x86_64" dev="sda1" ino=786497 scontext=system_u:system_r:kdump_t:s0 tcontext=system_u:object_r:modules_object_t:s0 tclass=file                   


I can't seem to determine any ill effects from this denial, but reporting it here anyway.


# rpm-ostree status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
                   Version: 7.4.4 (2018-01-19 17:43:39)
                    Commit: 91b59e14c4eef641f388cbc5b2cbbdd4653a89f4053d684217d9c1c9394c3dd3
              GPGSignature: Valid signature by 567E347AD0044ADE55BA8A5F199E2F91FD431D51


# rpm -q selinux-policy
selinux-policy-3.13.1-166.el7_4.7.noarch

Comment 2 Milos Malik 2018-01-22 07:14:21 UTC
I believe that some files in /boot directory are mislabeled. Can run following command on the machine, where you see the SELinux denials, and paste here the output?

# ls -Z /boot

Thanks

Comment 4 Micah Abbott 2018-01-23 12:26:22 UTC
(In reply to Milos Malik from comment #2)
> I believe that some files in /boot directory are mislabeled. Can run
> following command on the machine, where you see the SELinux denials, and
> paste here the output?
> 
> # ls -Z /boot
> 
> Thanks

# ls -Z /boot
drwxr-xr-x. root root system_u:object_r:boot_t:s0      efi
drwx------. root root system_u:object_r:boot_t:s0      grub2
-rw-------. root root system_u:object_r:boot_t:s0      initramfs-3.10.0-693.11.6.el7.x86_64.img
lrwxrwxrwx. root root system_u:object_r:boot_t:s0      loader -> loader.0
drwxr-xr-x. root root system_u:object_r:boot_t:s0      loader.0
drwxr-xr-x. root root system_u:object_r:boot_t:s0      ostree

Comment 6 Micah Abbott 2018-03-03 02:27:41 UTC
Is this BZ related:  https://bugzilla.redhat.com/show_bug.cgi?id=1536991

They look awfully similar and may have been fixed by a change to ostree.

Comment 10 errata-xmlrpc 2018-10-30 10:02:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3111