Bug 1122412

Summary: SELinux is preventing /usr/bin/df from 'search' accesses on the directory .
Product: [Fedora] Fedora Reporter: jaroslaw.herod
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a6eaf949a1bf3092baee71272891966531ea7c80acce4d93baf6826b421adbf3
Fixed In Version: selinux-policy-3.12.1-193.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-10 06:21:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jaroslaw.herod 2014-07-23 08:00:54 UTC
Description of problem:
problem happen after delete of detabase in couchdb
SELinux is preventing /usr/bin/df from 'search' accesses on the directory .

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

If aby df powinno mieć domyślnie search dostęp do  directory.
Then proszę to zgłosić jako błąd.
Można utworzyć lokalny moduł polityki, aby umożliwić ten dostęp.
Do
można tymczasowo zezwolić na ten dostęp wykonując polecenia:
# grep df /var/log/audit/audit.log | audit2allow -M mojapolityka
# semodule -i mojapolityka.pp

Additional Information:
Source Context                system_u:system_r:rabbitmq_beam_t:s0
Target Context                system_u:object_r:var_lib_nfs_t:s0
Target Objects                 [ dir ]
Source                        df
Source Path                   /usr/bin/df
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.21-21.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-177.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.15.6-200.fc20.x86_64 #1 SMP Fri
                              Jul 18 02:36:27 UTC 2014 x86_64 x86_64
Alert Count                   11
First Seen                    2014-07-07 02:09:15 CEST
Last Seen                     2014-07-23 09:39:53 CEST
Local ID                      d9c416af-6be8-4bc7-83b7-c645d074ab7c

Raw Audit Messages
type=AVC msg=audit(1406101193.290:339): avc:  denied  { search } for  pid=1353 comm="df" name="nfs" dev="dm-2" ino=131044 scontext=system_u:system_r:rabbitmq_beam_t:s0 tcontext=system_u:object_r:var_lib_nfs_t:s0 tclass=dir


type=SYSCALL msg=audit(1406101193.290:339): arch=x86_64 syscall=stat success=yes exit=0 a0=13bcab0 a1=7fff505170f0 a2=7fff505170f0 a3=7fff50516e40 items=0 ppid=1352 pid=1353 auid=4294967295 uid=990 gid=987 euid=990 suid=990 fsuid=990 egid=987 sgid=987 fsgid=987 tty=(none) ses=4294967295 comm=df exe=/usr/bin/df subj=system_u:system_r:rabbitmq_beam_t:s0 key=(null)

Hash: df,rabbitmq_beam_t,var_lib_nfs_t,dir,search

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.15.6-200.fc20.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2014-10-22 12:37:03 UTC
commit d120a60b6dc5946d9f17cd1f232f80c3536971ad
Author: Lukas Vrabec <lvrabec>
Date:   Wed Oct 22 14:35:53 2014 +0200

    Allow rabbitmq to read nfs state data. BZ(1122412)

Comment 2 Fedora Update System 2014-11-03 16:41:48 UTC
selinux-policy-3.12.1-193.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-193.fc20

Comment 3 Fedora Update System 2014-11-05 03:54:07 UTC
Package selinux-policy-3.12.1-193.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-193.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-14228/selinux-policy-3.12.1-193.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-11-10 06:21:39 UTC
selinux-policy-3.12.1-193.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.