Bug 683246

Summary: SELinux is preventing /usr/libexec/gvfs-gdu-volume-monitor from 'read' accesses on the file fstab.
Product: [Fedora] Fedora Reporter: Clyde E. Kunkel <clydekunkel7734>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:4901e57bd1cd079c0e289562be19e4057def2fafe9dacf4bd2d46cb978e348ae
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-09 11:39:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Clyde E. Kunkel 2011-03-08 22:00:59 UTC
SELinux is preventing /usr/libexec/gvfs-gdu-volume-monitor from 'read' accesses on the file fstab.

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

If you believe that gvfs-gdu-volume-monitor should be allowed read access on the fstab 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 gvfs-gdu-volume /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:root_t:s0
Target Objects                fstab [ file ]
Source                        gvfs-gdu-volume
Source Path                   /usr/libexec/gvfs-gdu-volume-monitor
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38-0.rc5.git1.1.fc15.x86_64 #1 SMP Thu Feb 17
                              01:49:02 UTC 2011 x86_64 x86_64
Alert Count                   209
First Seen                    Tue 08 Mar 2011 04:03:54 PM EST
Last Seen                     Tue 08 Mar 2011 04:04:19 PM EST
Local ID                      ac722e8a-7569-4e58-be5c-fb5e5a70fda6

Raw Audit Messages
type=AVC msg=audit(1299618259.135:7572): avc:  denied  { read } for  pid=2214 comm="gvfs-gdu-volume" name="fstab" dev=dm-0 ino=335 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:root_t:s0 tclass=file


Hash: gvfs-gdu-volume,xdm_t,root_t,file,read

audit2allow

#============= xdm_t ==============
allow xdm_t root_t:file read;

audit2allow -R

#============= xdm_t ==============
allow xdm_t root_t:file read;

Comment 1 Miroslav Grepl 2011-03-09 11:39:17 UTC
I think you want to relabel your system

# touch /.autorelabel; reboot


Also what does show

# matchpathcon /etc/fstab


Is this a fresh install?

Comment 2 Clyde E. Kunkel 2011-03-09 15:54:36 UTC
(In reply to comment #1)
> I think you want to relabel your system
> 
> # touch /.autorelabel; reboot

will do this and report back

> 
> 
> Also what does show
> 
> # matchpathcon /etc/fstab

# matchpathcon /etc/rstab
/etc/rstab	system_u:object_r:etc_t:s0


> 
> 
> Is this a fresh install?

Yes, was, but now up to date from updates-testing
Note:  this is a multi-boot system with this install (f15 alpha) mounted on /mnt/fedora15 when booting into a rawhide installation or f14 installation.