Bug 873030 - SELinux is preventing /usr/bin/dbus-daemon from 'write' accesses on the blk_file /dev/sdb.
Summary: SELinux is preventing /usr/bin/dbus-daemon from 'write' accesses on the blk_f...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:42e05d2b5187f108c4a702a0c77...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-04 22:56 UTC by Moez Roy
Modified: 2012-12-20 15:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-20 15:31:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-04 22:56 UTC, Moez Roy
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-04 22:56 UTC, Moez Roy
no flags Details

Description Moez Roy 2012-11-04 22:56:44 UTC
Description of problem:
was trying to make disk bootable

Additional info:
libreport version: 2.0.18
kernel:         3.6.3-1.fc17.x86_64

description:
:SELinux is preventing /usr/bin/dbus-daemon from 'write' accesses on the blk_file /dev/sdb.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that dbus-daemon should be allowed write access on the sdb blk_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 dbus-daemon /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:fixed_disk_device_t:s0
:Target Objects                /dev/sdb [ blk_file ]
:Source                        dbus-daemon
:Source Path                   /usr/bin/dbus-daemon
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           dbus-1.4.10-6.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.3-1.fc17.x86_64 #1 SMP Mon Oct
:                              22 15:32:35 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-11-04 14:51:05 PST
:Last Seen                     2012-11-04 14:51:05 PST
:Local ID                      4efa516b-fd2a-4cfe-8d5b-1763f99d1264
:
:Raw Audit Messages
:type=AVC msg=audit(1352069465.883:64): avc:  denied  { write } for  pid=821 comm="dbus-daemon" path="/dev/sdb" dev="devtmpfs" ino=6079 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file
:
:
:type=SYSCALL msg=audit(1352069465.883:64): arch=x86_64 syscall=recvmsg success=yes exit=ENOSTR a0=21 a1=7fff9206d600 a2=40000000 a3=0 items=0 ppid=1 pid=821 auid=4294967295 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81 tty=(none) ses=4294967295 comm=dbus-daemon exe=/usr/bin/dbus-daemon subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: dbus-daemon,system_dbusd_t,fixed_disk_device_t,blk_file,write
:
:audit2allow
:
:#============= system_dbusd_t ==============
:allow system_dbusd_t fixed_disk_device_t:blk_file write;
:
:audit2allow -R
:
:#============= system_dbusd_t ==============
:allow system_dbusd_t fixed_disk_device_t:blk_file write;
:

Comment 1 Moez Roy 2012-11-04 22:56:47 UTC
Created attachment 638255 [details]
File: type

Comment 2 Moez Roy 2012-11-04 22:56:48 UTC
Created attachment 638256 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-05 11:12:52 UTC
Added.

commit a9dc49077c5bbcb649a91f7fe849561324ae2c12
Author: Miroslav Grepl <mgrepl>
Date:   Mon Nov 5 12:11:39 2012 +0100

    dbus needs to be able to read/write inherited fixed disk device_t passed through i

Comment 4 Fedora Update System 2012-11-06 08:21:12 UTC
selinux-policy-3.10.0-159.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-159.fc17

Comment 5 Fedora Update System 2012-11-08 02:03:13 UTC
Package selinux-policy-3.10.0-159.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-159.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17782/selinux-policy-3.10.0-159.fc17
then log in and leave karma (feedback).

Comment 6 Alex Murray 2012-11-08 09:38:22 UTC
Tried using restore disk image on a usb stick in 'Disks' and got a dbus error - then SELinux Alert popped up.

Package: (null)
OS Release: Fedora release 17 (Beefy Miracle)

Comment 7 Fedora Update System 2012-12-20 15:31:18 UTC
selinux-policy-3.10.0-159.fc17 has been pushed to the Fedora 17 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.