Bug 547420 - SELinux is preventing /usr/bin/qemu-system-x86_64 "getattr" access on /media/1A46ACA246AC7FDD/Fedora12/Fedora-12-x86_64-DVD/Fedora-12-x86_64-DVD.iso.
Summary: SELinux is preventing /usr/bin/qemu-system-x86_64 "getattr" access on /media/...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:658ee78b264...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-14 16:26 UTC by tarek
Modified: 2023-09-14 01:19 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-11-03 12:11:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description tarek 2009-12-14 16:26:06 UTC
Summary:

SELinux is preventing /usr/bin/qemu-system-x86_64 "getattr" access on
/media/1A46ACA246AC7FDD/Fedora12/Fedora-12-x86_64-DVD/Fedora-12-x86_64-DVD.iso.

Detailed Description:

SELinux denied access requested by qemu-system-x86. It is not expected that this
access is required by qemu-system-x86 and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:svirt_t:s0:c300,c711
Target Context                system_u:object_r:fusefs_t:s0
Target Objects                /media/1A46ACA246AC7FDD/Fedora12/Fedora-12-x86_64-
                              DVD/Fedora-12-x86_64-DVD.iso [ file ]
Source                        qemu-system-x86
Source Path                   /usr/bin/qemu-system-x86_64
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           qemu-system-x86-0.11.0-12.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-55.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.6-162.fc12.x86_64 #1 SMP Fri Dec 4 00:06:26
                              EST 2009 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 14 Dec 2009 06:25:42 PM EET
Last Seen                     Mon 14 Dec 2009 06:25:42 PM EET
Local ID                      6655478c-12f5-43d8-b610-1126d5a03b2d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260807942.728:24076): avc:  denied  { getattr } for  pid=17332 comm="qemu-system-x86" path="/media/1A46ACA246AC7FDD/Fedora12/Fedora-12-x86_64-DVD/Fedora-12-x86_64-DVD.iso" dev=sda2 ino=3972 scontext=system_u:system_r:svirt_t:s0:c300,c711 tcontext=system_u:object_r:fusefs_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1260807942.728:24076): arch=c000003e syscall=4 success=no exit=-13 a0=7fffd732e7a0 a1=7fffd732bdf0 a2=7fffd732bdf0 a3=7fffd732bb80 items=0 ppid=1 pid=17332 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=4294967295 comm="qemu-system-x86" exe="/usr/bin/qemu-system-x86_64" subj=system_u:system_r:svirt_t:s0:c300,c711 key=(null)



Hash String generated from  selinux-policy-3.6.32-55.fc12,catchall,qemu-system-x86,svirt_t,fusefs_t,file,getattr
audit2allow suggests:

#============= svirt_t ==============
allow svirt_t fusefs_t:file getattr;

Comment 1 Daniel Walsh 2009-12-15 13:29:51 UTC
How do you mount a fuse file system at /media?

Eric what needs to be done to make fuse support labeling?

Comment 2 Eric Paris 2009-12-15 14:28:43 UTC
I don't understand why this is a fuse mount...   How was this iso image mounted?

As to labeling on fuse, well, we don't have a good solution.

Comment 3 Kenny Armstrong 2009-12-15 20:01:28 UTC
I am having the same exact issue on a fresh install of Fedora 12 x86_64.  I have an external USB drive (formatted to NTFS) that has my ISO's and original VM's created under KVM in Fedora 11.  I had no problems mounting the drive, or using virt-manager to access my ISO images to build VM's.

However, after my upgrade I get the same issues as the original poster about the access issue.  There is another error that appears to be related to this one where when I try to create a new VM, I browse to my ISO file (on my NTFS drive), and then it gives me an error stating that virt-manager may not have permissions to view my ISO file.  So I click "OK" to try and have it correct itself, but then I get this message:

/media/FreeAgent Drive : setfacl: /media/FreeAgent Drive: Operation not
supported

/media/FreeAgent Drive/ISOs : setfacl: /media/FreeAgent Drive/ISOs:
Operation not supported

/media/FreeAgent Drive/ISOs/CentOS-5.4-i386-bin-DVD :
setfacl: /media/FreeAgent Drive/ISOs/CentOS-5.4-i386-bin-DVD: Operation
not supported

Then that's when I notice the AVC message stated earlier.

I found a forum message where someone was able to get around this by mounting their drive with the ACL option here:  http://forums.fedoraforum.org/showthread.php?t=236318&highlight=qemu-kvm+denied+access

However, I have not been able to get my USB drive to mount with the ACL option (fuse is being a complete bonehead).  I consider this a regression since this was not an issue with Fedora 11.

Comment 4 Bug Zapper 2010-11-04 03:23:06 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Red Hat Bugzilla 2023-09-14 01:19:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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