Bug 770854 - SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the file /etc/host.conf.
Summary: SELinux is preventing /usr/sbin/sendmail.sendmail from 'read' accesses on the...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c570ad86ac742dad51f2aa8730a...
: 770851 770852 770853 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-29 16:25 UTC by Tom Weniger
Modified: 2012-01-02 09:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-02 09:30:50 UTC
Type: ---


Attachments (Terms of Use)

Description Tom Weniger 2011-12-29 16:25:06 UTC
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;
:

Comment 1 Daniel Walsh 2011-12-29 17:34:38 UTC
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?

Comment 2 Daniel Walsh 2011-12-29 17:35:19 UTC
*** Bug 770853 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2011-12-29 17:35:45 UTC
*** Bug 770851 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Walsh 2011-12-29 17:35:55 UTC
*** Bug 770852 has been marked as a duplicate of this bug. ***

Comment 5 Tom Weniger 2011-12-29 19:25:12 UTC
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.

Comment 6 Miroslav Grepl 2012-01-02 09:30:50 UTC
Could you use the latest policy

# yum update selinux-policy-targeted

There was a bug in the boinc policy.


Note You need to log in before you can comment on or make changes to this bug.