SELinux is preventing /lib/systemd/systemd-tmpfiles from 'getattr' accesses on the file /tmp/yum.log. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that systemd-tmpfiles should be allowed getattr access on the yum.log file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep systemd-tmpfile /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:systemd_tmpfiles_t:s0 Target Context system_u:object_r:root_t:s0 Target Objects /tmp/yum.log [ file ] Source systemd-tmpfile Source Path /lib/systemd/systemd-tmpfiles Port <Okänd> Host (removed) Source RPM Packages systemd-16-1.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.12-5.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.37-2.fc15.x86_64 #1 SMP Fri Jan 7 14:57:36 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen ons 12 jan 2011 14.09.07 Last Seen ons 12 jan 2011 14.09.07 Local ID 1d10f530-9169-4647-bb37-d5bb2a1b2f30 Raw Audit Messages type=AVC msg=audit(1294837747.709:68): avc: denied { getattr } for pid=2656 comm="systemd-tmpfile" path="/tmp/yum.log" dev=dm-1 ino=1966082 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=file type=SYSCALL msg=audit(1294837747.709:68): arch=x86_64 syscall=newfstatat success=yes exit=0 a0=4 a1=19b9b63 a2=7fff0928a920 a3=100 items=0 ppid=1 pid=2656 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-tmpfile exe=/lib/systemd/systemd-tmpfiles subj=system_u:system_r:systemd_tmpfiles_t:s0 key=(null) Hash: systemd-tmpfile,systemd_tmpfiles_t,root_t,file,getattr audit2allow #============= systemd_tmpfiles_t ============== allow systemd_tmpfiles_t root_t:file getattr; audit2allow -R #============= systemd_tmpfiles_t ============== allow systemd_tmpfiles_t root_t:file getattr;
Not sure how you got a file labeled root_t into /tmp. But can you just remove the log file or chcon -t tmp_t and then systemd-tmpfiles will stop complaining.
Possibly a bug in yum, since I could reproduce it too? Reassigning.
*** This bug has been marked as a duplicate of bug 674194 ***