Hide Forgot
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.1.6-1.fc16.x86_64 reason: SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the file /etc/host.conf. time: Thu 29 Dec 2011 09:24:54 AM MST description: :SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the file /etc/host.conf. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that sendmail.sendmail should be allowed read access on the host.conf 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 sendmail /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:sendmail_t:s0 :Target Context system_u:object_r:boinc_tmpfs_t:s0 :Target Objects /etc/host.conf [ file ] :Source sendmail :Source Path /usr/sbin/sendmail.sendmail :Port <Unknown> :Host (removed) :Source RPM Packages sendmail-8.14.5-11.fc16 :Target RPM Packages setup-2.8.36-2.fc16 :Policy RPM selinux-policy-3.10.0-67.fc16 :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.1.6-1.fc16.x86_64 #1 SMP Wed Dec : 21 22:41:17 UTC 2011 x86_64 x86_64 :Alert Count 1 :First Seen Wed 28 Dec 2011 10:04:01 PM MST :Last Seen Wed 28 Dec 2011 10:04:01 PM MST :Local ID 7eb2fbae-51b7-4a70-abc9-dee3ad59345f : :Raw Audit Messages :type=AVC msg=audit(1325135041.946:36): avc: denied { read } for pid=1185 comm="sendmail" name="host.conf" dev=dm-0 ino=262175 scontext=system_u:system_r:sendmail_t:s0 tcontext=system_u:object_r:boinc_tmpfs_t:s0 tclass=file : : :type=SYSCALL msg=audit(1325135041.946:36): arch=x86_64 syscall=open success=no exit=EACCES a0=7f27e34e1def a1=0 a2=1b6 a3=238 items=0 ppid=1 pid=1185 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=51 sgid=51 fsgid=51 tty=(none) ses=4294967295 comm=sendmail exe=/usr/sbin/sendmail.sendmail subj=system_u:system_r:sendmail_t:s0 key=(null) : :Hash: sendmail,sendmail_t,boinc_tmpfs_t,file,read : :audit2allow : :#============= sendmail_t ============== :allow sendmail_t boinc_tmpfs_t:file read; : :audit2allow -R : :#============= sendmail_t ============== :allow sendmail_t boinc_tmpfs_t:file read; :
Not sure how /etc/hosts.conf got labeled boinc_tmpfs_t, but you should just need to run restorecon /etc/hosts.conf and it should fix the label. Is boinc creating files in /dev/shm and mv'ing them to /etc?
*** Bug 770853 has been marked as a duplicate of this bug. ***
*** Bug 770851 has been marked as a duplicate of this bug. ***
*** Bug 770852 has been marked as a duplicate of this bug. ***
Performed a restorecon on /etc/host.conf and restarted boinc with systemctl restart boinc-client.service with success. However, there are many tasks pending upload in the queue and connection to account manager fails on each attempt.
Could you use the latest policy # yum update selinux-policy-targeted There was a bug in the boinc policy.