Bug 1274987
Summary: | Selinux avc denials for abrt-handle-event and abrtd | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Steeve Goveas <sgoveas> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED CANTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | lvrabec, mgrepl, mmalik, plautrba, pvrabec, sgoveas, ssekidde |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-02 07:53:41 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
Steeve Goveas
2015-10-24 15:15:09 UTC
The problem is with mislabeled /var/spool/abrt. restorecon -R -v /var/spool/abrt will fix it. Did it happen be default? I mean I would like to know how to reproduce it. (In reply to Miroslav Grepl from comment #2) > The problem is with mislabeled /var/spool/abrt. > > restorecon -R -v /var/spool/abrt > > will fix it. Did it happen be default? I mean I would like to know how to > reproduce it. Yes, I think it happened by default when a crash was detected. (In reply to Steeve Goveas from comment #3) > (In reply to Miroslav Grepl from comment #2) > > The problem is with mislabeled /var/spool/abrt. > > > > restorecon -R -v /var/spool/abrt > > > > will fix it. Did it happen be default? I mean I would like to know how to > > reproduce it. > > Yes, I think it happened by default when a crash was detected. Did restorecon command help you? Restorecon did help, but I had to create the crash dump directory. So, I had to investigate further. I found these avc errors during an upgrade from rhel7.1 (released version) to rhel7.2. In rhel7.1 released version, abrt crash dump location was /var/tmp/abrt. This was changed to /var/spool/abrt in a z stream release due to security reasons. During the upgrade crash happens before abrt's upgrade has finished. Hence, the directory /var/spool/abrt does not exist with the selinux context set, causing the errors. I have filed bz1276361 for abrt. (In reply to Steeve Goveas from comment #5) > Restorecon did help, but I had to create the crash dump directory. So, I had > to investigate further. > > I found these avc errors during an upgrade from rhel7.1 (released version) > to rhel7.2. In rhel7.1 released version, abrt crash dump location was > /var/tmp/abrt. This was changed to /var/spool/abrt in a z stream release due > to security reasons. During the upgrade crash happens before abrt's upgrade > has finished. Hence, the directory /var/spool/abrt does not exist with the > selinux context set, causing the errors. > > I have filed bz1276361 for abrt. Nice catch. RPM should take care about labeling if it is a part of payload. But in this case there was a crash which causes this race condition. |