Bug 573414
| Summary: | SELinux is preventing /usr/sbin/asterisk "write" access on /. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jerry Werner <g.werner> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 12 | CC: | dnovotny, dwalsh, mgrepl, tsmetana |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:e5838ccc48f0d842944e36874dd7dd73a0eb647835518609e0f6bdb03aeaf3e5 | ||
| Fixed In Version: | selinux-policy-3.6.32-106.fc12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-03-30 02:10:55 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
Jerry Werner
2010-03-14 17:47:41 UTC
Do you have logrotate watching content in /? This looks like logrotate is leaking an open file descriptor to asterisk hello Jerry, do you have any logrotate configuration file for asterisk in /etc/logrotate.d ? if so, can you post it, please? The file, dated 2009-08-25 09:32, is:
/var/log/asterisk/messages /var/log/asterisk/event_log /var/log/asterisk/queue_log {
missingok
notifempty
create 0640 asterisk asterisk
sharedscripts
postrotate
/usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true
endscript
}
Jerry, thanks for the file now we see that logrotate runs /usr/sbin/asterisk in its "postrotate" script and that is why we see /usr/sbin/asterisk in "logrotate_t" context in the error message shouldn't there be a transition rule "if logrotate runs asterisk, run it in asterisk context and not logrotate_t context"? reassigning to selinux-policy Miroslav, F13 has optional_policy(` asterisk_domtrans(logrotate_t) ') Instead of optional_policy(` asterisk_exec(logrotate_t) asterisk_stream_connect(logrotate_t) asterisk_manage_lib_files(logrotate_t) ') Fixed in selinux-policy-3.6.32-104.fc12 selinux-policy-3.6.32-106.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-106.fc12 selinux-policy-3.6.32-106.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-106.fc12 selinux-policy-3.6.32-106.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |