Description of problem: SElinux is denying sendmail access to uux when sendmail is configured to use an uucp mailer. Version-Release number of selected component (if applicable): sendmail-8.14.2-4.fc9 uucp-1.07-17.fc9 selinux-policy-3.3.1-107.fc9 How reproducible: always Steps to Reproduce: 1. configure sendmail to use an uucp mailer 2. send mail that should be transported via the uucp mailer 3. observe failure Actual results: Mail fails and gets bounced back to sender. Expected results: Mail should be transported via uucp to next-hop MTA. Additional info: The uucp mailer was added to sendmail.cf by adding "MAILER(uucp)" to sendmail.mc and using m4 with the "standard" sendmail-cf-8.14.2-4.fc9.i386 package.
Reassigning to selinux-policy as I guess it should be fixed there.
What avc messages are you seeing?
/var/log/audit/audit.log shows: type=AVC msg=audit(1227613116.899:1248): avc: denied { getattr } for pid=6851 comm="sendmail" path="/usr/bin/uux" dev=sda3 ino=66987 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:uux_exec_t:s0 tclass=file type=AVC msg=audit(1227613116.919:1249): avc: denied { execute } for pid=6851 comm="sendmail" name="uux" dev=sda3 ino=66987 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:uux_exec_t:s0 tclass=file There are similar entries in /var/log/messages, generated by setroubleshoot. If these, or the "translations" by sealert, should be helpful, I'm happy to provide them as well.
Ok I can add optional_policy(` uucp_domtrans_uux(sendmail_t) ') to policy which will allow sendmail to start up the uux program. It might cause other avc's. Cab you create a file (myuux.te) with the following #======================================================== policy_module(myuux, 1.0) gen_require(` type sendmail_t; ') uucp_domtrans_uux(sendmail_t) #========================================================= Then compile it and install it with the command # make -f /usr/share/selinux/devel/Makefile # semodule -i myuux.pp Then try so send mail via uux again
The make command you gave missed a "myuux.pp" at its end... With this new policy module the mail transfer succeeded, but there was another avc: type=AVC msg=audit(1227630135.315:1353): avc: denied { read } for pid=7222 comm="uux" path="/var/spool/mqueue/dfmAPGMFpq007219" dev=sda9 ino=204425 scontext=system_u:system_r:uux_t:s0 tcontext=system_u:object_r:mqueue_spool_t:s0 tclass=file Receiving mails via uucp worked fine, without any avc's or other problems.
Fixed in selinux-policy-3.3.1-116.fc9.noarch
Yes, I can confirm that selinux-policy-3.3.1-116.fc9.noarch fixes this issue.