| Summary: | SELinux is preventing /usr/bin/systemctl from 'write' accesses on the chr_file kmsg. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Supreet <srandhaw> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.3 | CC: | brian, dominick.grift, dwalsh, extras-qa, lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde, yasir.elsharif |
| Target Milestone: | rc | ||
| Target Release: | 7.4 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | abrt_hash:32c48965af05234a05c970c5926eb9e6d21d0605ae0bd98e291e6d36209c49ae; | ||
| Fixed In Version: | selinux-policy-3.13.1-174.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1295508 | Environment: | |
| Last Closed: | 2018-04-10 12:25:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 1295508 | ||
| Bug Blocks: | 1420851 | ||
|
Description
Supreet
2016-11-23 10:00:41 UTC
Additional info : [root@supreet sosreport-MarkoMki.01744697-20161122110509]# grep selinux installed-rpms candlepin-selinux-0.9.49.16-1.el7.noarch Mon Nov 7 11:56:04 2016 foreman-selinux-1.7.2.16-1.el7sat.noarch Mon Nov 23 15:27:14 2015 libselinux-2.5-6.el7.x86_64 Mon Nov 7 11:54:53 2016 libselinux-python-2.5-6.el7.x86_64 Mon Nov 7 11:55:14 2016 libselinux-ruby-2.5-6.el7.x86_64 Mon Nov 7 11:58:45 2016 libselinux-utils-2.5-6.el7.x86_64 Mon Nov 7 11:55:51 2016 pulp-selinux-2.6.0.21-1.el7sat.noarch Tue Aug 2 13:32:30 2016 selinux-policy-3.13.1-102.el7_3.4.noarch Mon Nov 7 11:55:52 2016 selinux-policy-targeted-3.13.1-102.el7_3.4.noarch Mon Nov 7 11:56:35 2016 [root@supreet sosreport-MarkoMki.01744697-20161122110509]# Looks like a logrotate script is executing a kmesg command. Not sure why it is doing this rather then write to syslog. Allowing this is probably ok, but I am not sure if there is any potential problems allowing processes to write to /dev/kmsg. Please provide the output of following command: # grep kmsg /proc/cmdline I already saw similar AVCs on machines where following parameters were given to the kernel at boot time: systemd.debug systemd.log_level=debug systemd.log_target=kmsg Hello Milos, Please find the below requested information from sosreport : [root@supreet sosreport-MarkoMki.01744697-20161122110509]# grep kmsg proc/cmdline BOOT_IMAGE=/vmlinuz-3.10.0-514.el7.x86_64 root=/dev/mapper/rhel-root ro rd.lvm.lv=rhel/swap crashkernel=auto rd.lvm.lv=rhel/root rhgb quiet LANG=en_GB.UTF-8 systemd.debug systemd.log_level=debug systemd.log_target=kmsg 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:0763 |