Bug 683246 - SELinux is preventing /usr/libexec/gvfs-gdu-volume-monitor from 'read' accesses on the file fstab.
Summary: SELinux is preventing /usr/libexec/gvfs-gdu-volume-monitor from 'read' access...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:4901e57bd1c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-08 22:00 UTC by Clyde E. Kunkel
Modified: 2011-03-09 15:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-09 11:39:17 UTC
Type: ---


Attachments (Terms of Use)

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.


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