Bug 1116940 - SELinux is preventing /usr/bin/ruby-mri from 'read' accesses on the file .
Summary: SELinux is preventing /usr/bin/ruby-mri from 'read' accesses on the file .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a5a4999998afe300bb5f0ee96d7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-07 16:32 UTC by Barbara Bishop
Modified: 2014-07-19 05:59 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-177.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-19 05:59:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Barbara Bishop 2014-07-07 16:32:02 UTC
Description of problem:
SELinux is preventing /usr/bin/ruby-mri from 'read' accesses on the file .

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

If you believe that ruby-mri should be allowed read access on the  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 ruby-mri /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:deltacloudd_t:s0
Target Context                system_u:object_r:proc_net_t:s0
Target Objects                 [ file ]
Source                        ruby-mri
Source Path                   /usr/bin/ruby-mri
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ruby-2.0.0.353-16.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-173.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.10-301.fc20.x86_64 #1 SMP Thu
                              Dec 5 14:01:17 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2014-07-04 18:07:24 CDT
Last Seen                     2014-07-04 18:07:24 CDT
Local ID                      be5f12f4-ccca-4e1d-836a-f853b3916354

Raw Audit Messages
type=AVC msg=audit(1404515244.106:230): avc:  denied  { read } for  pid=451 comm="ruby-mri" name="unix" dev="proc" ino=4026532002 scontext=system_u:system_r:deltacloudd_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


type=SYSCALL msg=audit(1404515244.106:230): arch=x86_64 syscall=access success=no exit=EACCES a0=7fff5a950850 a1=4 a2=7fff5a95085e a3=62633a336665663a items=0 ppid=1 pid=451 auid=4294967295 uid=99 gid=99 euid=99 suid=99 fsuid=99 egid=99 sgid=99 fsgid=99 ses=4294967295 tty=(none) comm=ruby-mri exe=/usr/bin/ruby-mri subj=system_u:system_r:deltacloudd_t:s0 key=(null)

Hash: ruby-mri,deltacloudd_t,proc_net_t,file,read

Additional info:
reporter:       libreport-2.2.2
hashmarkername: setroubleshoot
kernel:         3.14.9-200.fc20.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2014-07-10 11:38:10 UTC
commit 800b78cd1a494970a6127e15a956ebfc5a2c86d0
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jul 10 13:37:09 2014 +0200

    Allow deltacloudd_t to read network state BZ #1116940

Comment 2 Fedora Update System 2014-07-15 09:42:32 UTC
selinux-policy-3.12.1-177.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-177.fc20

Comment 3 Fedora Update System 2014-07-17 04:28:57 UTC
Package selinux-policy-3.12.1-177.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-177.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-8390/selinux-policy-3.12.1-177.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-07-19 05:59:53 UTC
selinux-policy-3.12.1-177.fc20 has been pushed to the Fedora 20 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.