| Summary: | AVC set to not audit prevent easy policy modifications for roundcube mail and postfix | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Andrew Duggan <lists> |
| Component: | selinux-policy-targeted | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 14 | CC: | dwalsh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.9.7-46.fc14 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-30 00:33:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Andrew Duggan
2011-05-12 15:46:58 UTC
I finally found it after doing a semodule -DB but as an enhancement a flag for sebool for turning off dontaudits would be better. What was the AVC that was being blocked? Hi,
These are the two AVCs
type=AVC msg=audit(1305818917.735:36670): avc: denied { execute } for pid=23766 comm="sendmail" name="postdrop" dev
=dm-0 ino=134464 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:postfix_postdrop_exec_t:s0 tclas
s=file
type=AVC msg=audit(1305818917.735:36670): avc: denied { execute_no_trans } for pid=23766 comm="sendmail" path="/usr/sbin/postdrop" dev=dm-0 ino=134464 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:postfix_postdrop_exec_t:s0 tclass=file
from which this was generated by audit2allow
allow httpd_t postfix_postdrop_exec_t:file { execute execute_no_trans read open };
# which sendmail
/usr/sbin/sendmail
# ls -laZ /usr/sbin/sendmail
lrwxrwxrwx. root root unconfined_u:object_r:bin_t:s0 /usr/sbin/sendmail -> /etc/alternatives/mta
I did a restorecon on /usr/sbin/sendmail, just to make sure it wasn't incorrectly labeled, but it that was the context both before and after the restorcon.
If you execute httpd_can_sendmail, would this be allowed. # setsebool -P httpd_can_sendmail 1 sesearch --dontaudit -s httpd_t -t postfix_postdrop_exec_t
WARNING: Policy would be downgraded from version 26 to 25.
Found 1 semantic av rules:
dontaudit httpd_t exec_type : file { execute execute_no_trans } ;
This is probably a bad idea.
Maybe we should transition these to httpd_sys_script_t? Or just eliminate the dontaudit.
Ok researching this further it looks like we are using a application_exec from apache which includes this interface. Postfix.if postfix_user_domain_template' + application_domain(postfix_$1_t, postfix_$1_exec_t) Miroslav can you add this to F14, RHEL6. selinux-policy-3.9.7-46.fc14 selinux-policy-3.9.7-46.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-46.fc14 Package selinux-policy-3.9.7-46.fc14: * should fix your issue, * was pushed to the Fedora 14 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.7-46.fc14' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-14734 then log in and leave karma (feedback). selinux-policy-3.9.7-46.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |