Bug 2236876
| Summary: | Observing an SELinux denial when starting kdump.service on F40/Rawhide machine | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Aashish Radhakrishnan <aaradhak> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | dwalsh, lvrabec, mmalik, nknazeko, omosnacek, pkoncity, vmojzis, zpytela |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-25 07:23:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Aashish Radhakrishnan
2023-09-01 20:39:28 UTC
We already have a PR resolving the issue Before the fix was applied, the following SELinux denial appeared in enforcing mode:
----
type=PROCTITLE msg=audit(09/13/2023 07:02:41.422:200) : proctitle=/sbin/kexec -s -d -p --command-line=BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-6.6.0-0.rc1.13.fc40.x86_64 ro net.ifnames=0 rhgb irqpoll
type=SYSCALL msg=audit(09/13/2023 07:02:41.422:200) : arch=x86_64 syscall=write success=no exit=EACCES(Permission denied) a0=0x3 a1=0x7f9b3a60e010 a2=0xdf1b08 a3=0x22 items=0 ppid=4670 pid=5034 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=kexec exe=/usr/sbin/kexec subj=system_u:system_r:kdump_t:s0 key=(null)
type=AVC msg=audit(09/13/2023 07:02:41.422:200) : avc: denied { write } for pid=5034 comm=kexec path=/memfd:kernel (deleted) dev="tmpfs" ino=12 scontext=system_u:system_r:kdump_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=0
----
Before the fix was applied, the following SELinux denials appeared in permissive mode:
----
type=PROCTITLE msg=audit(09/13/2023 07:04:23.219:204) : proctitle=/sbin/kexec -s -d -p --command-line=BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-6.6.0-0.rc1.13.fc40.x86_64 ro net.ifnames=0 rhgb irqpoll
type=SYSCALL msg=audit(09/13/2023 07:04:23.219:204) : arch=x86_64 syscall=write success=yes exit=14621448 a0=0x3 a1=0x7f412be0e010 a2=0xdf1b08 a3=0x22 items=0 ppid=5049 pid=5413 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=kexec exe=/usr/sbin/kexec subj=system_u:system_r:kdump_t:s0 key=(null)
type=AVC msg=audit(09/13/2023 07:04:23.219:204) : avc: denied { write } for pid=5413 comm=kexec path=/memfd:kernel (deleted) dev="tmpfs" ino=13 scontext=system_u:system_r:kdump_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=1
----
type=PROCTITLE msg=audit(09/13/2023 07:04:23.224:205) : proctitle=/sbin/kexec -s -d -p --command-line=BOOT_IMAGE=(hd0,gpt2)/boot/vmlinuz-6.6.0-0.rc1.13.fc40.x86_64 ro net.ifnames=0 rhgb irqpoll
type=SYSCALL msg=audit(09/13/2023 07:04:23.224:205) : arch=x86_64 syscall=kexec_file_load success=yes exit=0 a0=0x3 a1=0x4 a2=0x12f a3=0x556d3db9f9d0 items=0 ppid=5049 pid=5413 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=kexec exe=/usr/sbin/kexec subj=system_u:system_r:kdump_t:s0 key=(null)
type=AVC msg=audit(09/13/2023 07:04:23.224:205) : avc: denied { read } for pid=5413 comm=kexec path=/memfd:kernel (deleted) dev="tmpfs" ino=13 scontext=system_u:system_r:kdump_t:s0 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=1
----
# rpm -qa selinux\* kexec\* | sort
kexec-tools-2.0.27-1.fc40.x86_64
selinux-policy-38.27-1.fc40.noarch
selinux-policy-targeted-38.27-1.fc40.noarch
#
|