Summary: SELinux is preventing /bin/mailx "getattr" access on /var/run/packagekit-cron.9HXVBh. Detailed Description: [SELinux is in permissive mode. This access was not denied.] SELinux denied access requested by mail. It is not expected that this access is required by mail and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access. Allowing Access: You can generate a local policy module to allow this access - see FAQ (http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug report. Additional Information: Source Context system_u:system_r:system_mail_t:s0-s0:c0.c1023 Target Context system_u:object_r:crond_var_run_t:s0 Target Objects /var/run/packagekit-cron.9HXVBh [ file ] Source mail Source Path /bin/mailx Port <Unknown> Host (removed) Source RPM Packages mailx-12.4-3.fc12 Target RPM Packages Policy RPM selinux-policy-3.6.32-73.fc12 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Plugin Name catchall Host Name (removed) Platform Linux (removed) 2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18 19:52:07 UTC 2010 x86_64 x86_64 Alert Count 1 First Seen Thu 28 Jan 2010 07:42:42 AM EST Last Seen Thu 28 Jan 2010 07:42:42 AM EST Local ID 53a486ab-3a1f-4789-80bd-5abae166ac7e Line Numbers Raw Audit Messages node=(removed) type=AVC msg=audit(1264682562.220:697): avc: denied { getattr } for pid=4654 comm="mail" path="/var/run/packagekit-cron.9HXVBh" dev=dm-4 ino=135678 scontext=system_u:system_r:system_mail_t:s0-s0:c0.c1023 tcontext=system_u:object_r:crond_var_run_t:s0 tclass=file node=(removed) type=SYSCALL msg=audit(1264682562.220:697): arch=c000003e syscall=5 success=yes exit=128 a0=0 a1=7fff1e8d8910 a2=7fff1e8d8910 a3=2000 items=0 ppid=24372 pid=4654 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=76 comm="mail" exe="/bin/mailx" subj=system_u:system_r:system_mail_t:s0-s0:c0.c1023 key=(null) Hash String generated from selinux-policy-3.6.32-73.fc12,catchall,mail,system_mail_t,crond_var_run_t,file,getattr audit2allow suggests: #============= system_mail_t ============== allow system_mail_t crond_var_run_t:file getattr;
Do you know if the system is actually trying to mail this file?
Miroslav, Add mta_system_content(cron_var_run_t) to cron.te please
I think it is supposed to be mailing me a list of what it updated, but I can't say for sure that *this* event was supposed to be that. I'll note here that I have ssmtp installed and active per alternatives: $ ls -l /usr/sbin/sendmail /etc/alternatives/mta lrwxrwxrwx. 1 root root 24 2009-11-30 15:47 /etc/alternatives/mta -> /usr/sbin/sendmail.ssmtp lrwxrwxrwx. 1 root root 21 2009-11-30 15:47 /usr/sbin/sendmail -> /etc/alternatives/mta Not sure of that makes a difference here or not.
I think allow mail to read this file is fine.
Fixed in selinux-policy-3.6.32-79.fc12
selinux-policy-3.6.32-82.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-82.fc12
selinux-policy-3.6.32-84.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/F12/FEDORA-2010-1492
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.