Bug 1063473 - SELinux is preventing /usr/bin/udisks from 'search' accesses on the directory dbus.
Summary: SELinux is preventing /usr/bin/udisks from 'search' accesses on the directory...
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:95cca044c29624f7f37bb24850c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-10 19:52 UTC by Sylvain Petreolle
Modified: 2014-03-12 12:18 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-127.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-12 12:18:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sylvain Petreolle 2014-02-10 19:52:13 UTC
Description of problem:
SELinux is preventing /usr/bin/udisks from 'search' accesses on the directory dbus.

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

If vous pensez que udisks devrait être autorisé à accéder search sur dbus directory par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# grep udisks /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:mdadm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:system_dbusd_var_run_t:s0
Target Objects                dbus [ dir ]
Source                        udisks
Source Path                   /usr/bin/udisks
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           udisks-1.0.4-12.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.6-300.fc20.x86_64 #1 SMP Mon
                              Dec 23 16:44:31 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2014-01-05 22:34:16 CET
Last Seen                     2014-01-05 22:34:16 CET
Local ID                      e7276177-d91e-4895-9fff-b18a6a64d765

Raw Audit Messages
type=AVC msg=audit(1388957656.720:127): avc:  denied  { search } for  pid=4414 comm="udisks" name="dbus" dev="tmpfs" ino=18932 scontext=system_u:system_r:mdadm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:system_dbusd_var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1388957656.720:127): arch=x86_64 syscall=connect success=no exit=EACCES a0=5 a1=7fffcac97520 a2=21 a3=0 items=0 ppid=4413 pid=4414 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=udisks exe=/usr/bin/udisks subj=system_u:system_r:mdadm_t:s0-s0:c0.c1023 key=(null)

Hash: udisks,mdadm_t,system_dbusd_var_run_t,dir,search

Additional info:
reporter:       libreport-2.1.12
hashmarkername: setroubleshoot
kernel:         3.12.9-301.fc20.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-02-11 18:46:43 UTC
commit 5b52e9dbbe42baa7ebd3956a966980c9980622b7
Author: Miroslav Grepl <mgrepl>
Date:   Tue Feb 11 19:46:02 2014 +0100

    Allow udisks to connect to D-Bus

Comment 2 Fedora Update System 2014-02-18 22:09:54 UTC
selinux-policy-3.12.1-126.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-126.fc20

Comment 3 Fedora Update System 2014-02-22 00:42:12 UTC
Package selinux-policy-3.12.1-126.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-126.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-126.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-02-26 13:50:14 UTC
Package selinux-policy-3.12.1-127.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-127.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-127.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-03-12 12:18:48 UTC
selinux-policy-3.12.1-127.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.