Bug 991842 - SELinux is preventing /usr/lib/udisks2/udisksd from 'create' accesses on the file Maxtor-6L100M0-L21Q178G.conf.YQK20W.
Summary: SELinux is preventing /usr/lib/udisks2/udisksd from 'create' accesses on the ...
Keywords:
Status: CLOSED DUPLICATE of bug 991841
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:56b2f7a253b876853d958c27f5d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-04 23:54 UTC by Moez Roy
Modified: 2013-08-05 17:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-05 17:02:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Moez Roy 2013-08-04 23:54:20 UTC
Description of problem:
SELinux is preventing /usr/lib/udisks2/udisksd from 'create' accesses on the file Maxtor-6L100M0-L21Q178G.conf.YQK20W.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow udisksd to have create access on the Maxtor-6L100M0-L21Q178G.conf.YQK20W file
Then you need to change the label on Maxtor-6L100M0-L21Q178G.conf.YQK20W
Do
# semanage fcontext -a -t FILE_TYPE 'Maxtor-6L100M0-L21Q178G.conf.YQK20W'
where FILE_TYPE is one of the following: device_t, devicekit_tmp_t, devicekit_var_lib_t, devicekit_var_run_t, svirt_image_t, virt_content_t, virt_image_t, xen_image_t. 
Then execute: 
restorecon -v 'Maxtor-6L100M0-L21Q178G.conf.YQK20W'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that udisksd should be allowed create access on the Maxtor-6L100M0-L21Q178G.conf.YQK20W 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 pool /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:devicekit_disk_t:s0
Target Context                system_u:object_r:etc_t:s0
Target Objects                Maxtor-6L100M0-L21Q178G.conf.YQK20W [ file ]
Source                        pool
Source Path                   /usr/lib/udisks2/udisksd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           udisks2-2.0.1-3.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-98.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.11-200.fc18.x86_64 #1 SMP Mon
                              Jul 22 21:04:50 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-08-04 16:52:46 PDT
Last Seen                     2013-08-04 16:52:46 PDT
Local ID                      c4f65502-f905-4e93-9de6-75dd1f061003

Raw Audit Messages
type=AVC msg=audit(1375660366.423:328): avc:  denied  { create } for  pid=2537 comm="pool" name="Maxtor-6L100M0-L21Q178G.conf.YQK20W" scontext=system_u:system_r:devicekit_disk_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file


type=AVC msg=audit(1375660366.423:328): avc:  denied  { write } for  pid=2537 comm="pool" path="/etc/udisks2/Maxtor-6L100M0-L21Q178G.conf.YQK20W" dev="dm-0" ino=3015816 scontext=system_u:system_r:devicekit_disk_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file


type=SYSCALL msg=audit(1375660366.423:328): arch=x86_64 syscall=open success=yes exit=EACCES a0=7f74e402c950 a1=c2 a2=180 a3=0 items=0 ppid=1 pid=2537 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=pool exe=/usr/lib/udisks2/udisksd subj=system_u:system_r:devicekit_disk_t:s0 key=(null)

Hash: pool,devicekit_disk_t,etc_t,file,create

audit2allow

#============= devicekit_disk_t ==============
allow devicekit_disk_t etc_t:file { write create };

audit2allow -R
require {
	type devicekit_disk_t;
}

#============= devicekit_disk_t ==============
files_manage_etc_files(devicekit_disk_t)


Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.9.11-200.fc18.x86_64
type:           libreport

Potential duplicate: bug 976930

Comment 1 Daniel Walsh 2013-08-05 17:02:14 UTC

*** This bug has been marked as a duplicate of bug 991841 ***


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