Bug 1257828
| Summary: | SELinux prevents abrt to run 'journalctl' from abrt's post-mortem scripts | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jakub Filak <jfilak> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.2 | CC: | jberan, lmiksik, lvrabec, mgrepl, mmalik, mvadkert, plautrba, pvrabec, ssekidde |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.13.1-54.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 10:44: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: | |||
Today I found this AVC:
time->Wed Sep 2 12:56:45 2015
type=SYSCALL msg=audit(1441191405.309:437): arch=c000003e syscall=2 success=no exit=-13 a0=7f4e27934c43 a1=80101 a2=ffffffff a3=7f4e2698f7b8 items=0 ppid=14077 pid=14078 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runlevel" exe="/usr/bin/systemctl" subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1441191405.309:437): avc: denied { write } for pid=14078 comm="runlevel" name="kmsg" dev="devtmpfs" ino=1034 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file
abrtd runs "runlevel >runlevel 2>&1" in the /etc/libreport/events.d/abrt_event.conf file.
Moving back to correct state 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://rhn.redhat.com/errata/RHBA-2015-2300.html |
Description of problem: When a new core file is detected abrtd searches for relevant lines in journald. The command which does that job can be found in the /etc/libreport/events.d/ccpp_event.conf file. Aafter I upgraded a fresh RHEL-7.1 VM to RHEL-7.2 packages, I started getting the followed AVC: type=SYSCALL msg=audit(1440747891.891:473): arch=c000003e syscall=2 success=no exit=-13 a0=7f2dd50fb2ab a1=80101 a2=ffffffff a3=7f2dd3f847b8 items=0 ppid=14297 pid=14298 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="journalctl" exe="/usr/bin/journalctl" subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1440747891.891:473): avc: denied { write } for pid=14298 comm="journalctl" name="kmsg" dev="devtmpfs" ino=1034 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file Version-Release number of selected component (if applicable): abrt-2.1.11-31.el7.x86_64 selinux-policy-3.13.1-44.el7.noarch How reproducible: Always Steps to Reproduce: 1. systecmtl start abrtd abrt-ccpp 2. sleep 1000 & 3. kill -SEGV %%