Bug 1366173
Summary: | /root/.esmtp_queue has bad context when created from a cron job | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ondřej Lysoněk <olysonek> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | ariscop, dominick.grift, dwalsh, jwakely, lvrabec, marco.guazzone, mgrepl, plautrba |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.13.1-158.24.fc23 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-29 22:52:16 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1303305 |
Description
Ondřej Lysoněk
2016-08-11 08:45:22 UTC
This might be the cause of [1] and [2], but there may be other process contexts, under which the directory is created with bad context. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1282043 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1319370 *** Bug 1282043 has been marked as a duplicate of this bug. *** *** Bug 1319370 has been marked as a duplicate of this bug. *** (In reply to Ondřej Lysoněk from comment #0) > When a process with context > 'unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023' > creates the '/root/.esmtp_queue/' directory, then the directory is assigned > the correct context N.B. I'm seeing atd use /.esmtp_queue/ **not** /root/.esmtp_queue/ (In reply to Jonathan Wakely from comment #4) > (In reply to Ondřej Lysoněk from comment #0) > > When a process with context > > 'unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023' > > creates the '/root/.esmtp_queue/' directory, then the directory is assigned > > the correct context > > N.B. I'm seeing atd use /.esmtp_queue/ **not** /root/.esmtp_queue/ Yes, this is a bug, which is being resolved in [1]. The correct directory should be /root/.esmtp_queue/. If you want to test this bug, I can send you a patch for esmtp, which fixes [1]. I did not build it yet, as I'm waiting for the resolution of this selinux-policy bug. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1303305 This seems to be fixed now in f24-rawhide. Are you planning to backport the fix to f23 too? It's backported. I just need to create new build. selinux-policy-3.13.1-158.24.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f739cc7524 selinux-policy-3.13.1-158.24.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f739cc7524 selinux-policy-3.13.1-158.24.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |