Bug 767429 - SELinux is preventing /var/lib/boinc/projects/climateprediction.net/hadam3p_saf_6.09_i686-pc-linux-gnu from 'read' accesses on the file /etc/resolv.conf.
Summary: SELinux is preventing /var/lib/boinc/projects/climateprediction.net/hadam3p_s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2a8436130f2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-14 01:00 UTC by Doug Hutcheson
Modified: 2012-01-17 20:26 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.9.16-50.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-17 20:26:24 UTC
Type: ---


Attachments (Terms of Use)

Description Doug Hutcheson 2011-12-14 01:00:41 UTC
SELinux is preventing /var/lib/boinc/projects/climateprediction.net/hadam3p_saf_6.09_i686-pc-linux-gnu from 'read' accesses on the file /etc/resolv.conf.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that hadam3p_saf_6.09_i686-pc-linux-gnu should be allowed read access on the resolv.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 hadam3p_saf_6.0 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:boinc_project_t:s0
Target Context                system_u:object_r:net_conf_t:s0
Target Objects                /etc/resolv.conf [ file ]
Source                        hadam3p_saf_6.0
Source Path                   /var/lib/boinc/projects/climateprediction.net/hada
                              m3p_saf_6.09_i686-pc-linux-gnu
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-48.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.41.1-1.fc15.x86_64 #1
                              SMP Fri Nov 11 21:36:28 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 14 Dec 2011 10:39:50 EST
Last Seen                     Wed 14 Dec 2011 10:39:50 EST
Local ID                      0a7d2975-f178-4679-ad3a-b760c062b0ca

Raw Audit Messages
type=AVC msg=audit(1323823190.235:515): avc:  denied  { read } for  pid=4205 comm="hadam3p_saf_6.0" path="/etc/resolv.conf" dev=dm-1 ino=270142 scontext=system_u:system_r:boinc_project_t:s0 tcontext=system_u:object_r:net_conf_t:s0 tclass=file


type=SYSCALL msg=audit(1323823190.235:515): arch=x86_64 syscall=execve success=yes exit=0 a0=7fff61cda740 a1=7fff61cd5be0 a2=cb4a80 a3=6e672d78756e696c items=0 ppid=30342 pid=4205 auid=4294967295 uid=492 gid=489 euid=492 suid=492 fsuid=492 egid=489 sgid=489 fsgid=489 tty=(none) ses=4294967295 comm=hadam3p_saf_6.0 exe=/var/lib/boinc/projects/climateprediction.net/hadam3p_saf_6.09_i686-pc-linux-gnu subj=system_u:system_r:boinc_project_t:s0 key=(null)

Hash: hadam3p_saf_6.0,boinc_project_t,net_conf_t,file,read

audit2allow

#============= boinc_project_t ==============
#!!!! This avc is allowed in the current policy

allow boinc_project_t net_conf_t:file read;

audit2allow -R

#============= boinc_project_t ==============
#!!!! This avc is allowed in the current policy

allow boinc_project_t net_conf_t:file read;

Comment 1 Doug Hutcheson 2011-12-14 01:05:57 UTC
I let boinc run in background at all times, running only the climate prediction app.

This alert was raised shortly after bringing the system out of 'suspend'.

I ran the commands suggested by the SELinux alert message, to temporarily solve the problem.

Comment 2 Miroslav Grepl 2011-12-14 09:56:53 UTC
I am backporting changes from F16.

Fixed in selinux-policy-3.9.16-50.fc15

Comment 3 Fedora Update System 2011-12-14 13:40:53 UTC
selinux-policy-3.9.16-50.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-50.fc15

Comment 4 Fedora Update System 2011-12-14 23:30:38 UTC
Package selinux-policy-3.9.16-50.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-50.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17089/selinux-policy-3.9.16-50.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-01-17 20:26:24 UTC
selinux-policy-3.9.16-50.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


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