Bug 976930

Summary: SELinux is preventing /usr/lib/udisks2/udisksd from 'create' accesses on the file fstab.T51FZW.
Product: [Fedora] Fedora Reporter: Moez Roy <moez.roy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:56b2f7a253b876853d958c27f5d7cf140b76c64933f950a7c91e091bdd1a266c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-22 10:34:32 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 Moez Roy 2013-06-21 23:27:39 UTC
Description of problem:
SELinux is preventing /usr/lib/udisks2/udisksd from 'create' accesses on the file fstab.T51FZW.

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

If you want to allow udisksd to have create access on the fstab.T51FZW file
Then you need to change the label on fstab.T51FZW
Do
# semanage fcontext -a -t FILE_TYPE 'fstab.T51FZW'
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 'fstab.T51FZW'


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

If you believe that udisksd should be allowed create access on the fstab.T51FZW 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                fstab.T51FZW [ file ]
Source                        pool
Source Path                   /usr/lib/udisks2/udisksd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           udisks2-2.1.0-2.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-52.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.5-301.fc19.x86_64 #1 SMP Tue
                              Jun 11 19:39:38 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-06-21 19:26:41 EDT
Last Seen                     2013-06-21 19:26:41 EDT
Local ID                      8a41c7d7-6b5e-4db2-a389-c270b1b4a64f

Raw Audit Messages
type=AVC msg=audit(1371857201.657:457): avc:  denied  { create } for  pid=3407 comm="pool" name="fstab.T51FZW" scontext=system_u:system_r:devicekit_disk_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file


type=AVC msg=audit(1371857201.657:457): avc:  denied  { write } for  pid=3407 comm="pool" path="/etc/fstab.T51FZW" dev="sda2" ino=2360807 scontext=system_u:system_r:devicekit_disk_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file


type=SYSCALL msg=audit(1371857201.657:457): arch=x86_64 syscall=open success=yes exit=EFAULT a0=7f3208015f00 a1=c2 a2=81b4 a3=0 items=0 ppid=1 pid=3407 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

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.5-301.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-06-22 10:34:32 UTC

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