| Summary: | cannot send email via /usr/sbin/sendmail | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matěj Cepl <mcepl> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | dominick.grift, dwalsh, jskarvad, mcepl, mgrepl, mlichvar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-07 14:28:50 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
Matěj Cepl
2011-06-17 13:44:14 UTC
It is working on default F15 install with unconfined_u user.
But it doesn't work with the staff_u user. It seems not to emit AVC in the enforcing mode. But I got the AVC in permissive mode by:
# setenforce 0
$ id -Z
staff_u:staff_r:staff_t:s0-s0:c0.c1023
$ echo test | /usr/bin/sendmail -i jskarvad
# ausearch -m AVC -ts recent
---
type=SYSCALL msg=audit(1308573783.738:119): arch=c000003e syscall=5 success=yes exit=0 a0=0 a1=7fff7636af30 a2=7fff7636af30 a3=7fff7636ac80 items=0 ppid=3080 pid=3081 auid=502 uid=502 gid=503 euid=502 suid=502 fsuid=502 egid=90 sgid=90 fsgid=90 tty=tty2 ses=2 comm="postdrop" exe="/usr/sbin/postdrop" subj=staff_u:staff_r:postfix_postdrop_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1308573783.738:119): avc: denied { getattr } for pid=3081 comm="postdrop" path="socket:[38850]" dev=sockfs ino=38850 scontext=staff_u:staff_r:postfix_postdrop_t:s0-s0:c0.c1023 tcontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tclass=unix_stream_socket
CCed SELinux guys to get their opinion. I have no problem allowing this. I am surprised it is happening. Does bash create a unix_stream_socket for thipe from echo to sendmail? If you put the machine into permissive mode or postfix_postdrop_t into permissive mode, does it generate additional AVC messages? |