Bug 488232 - Missing labels for /usr/bin/qemu-system-XXXX files
Summary: Missing labels for /usr/bin/qemu-system-XXXX files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-03 11:59 UTC by Daniel Berrangé
Modified: 2009-03-03 16:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-03 16:08:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Berrangé 2009-03-03 11:59:12 UTC
Description of problem:
The current SELinux policy is only labelling the i386 emulator (/usr/bin/qemu) and the KVM accelerator (/usr/bin/qemu-kvm). None of the other architecture emulators (/usr/bin/qemu-system-XXXXX) are being labelled

# semanage fcontext -l | grep /usr/bin/qemu
/usr/bin/qemu                                      regular file       system_u:object_r:qemu_exec_t:s0 
/usr/bin/qemu-kvm                                  regular file       system_u:object_r:qemu_exec_t:s0 


# ls -lZ /usr/bin/qemu /usr/bin/qemu-system-*
-rwxr-xr-x. root root system_u:object_r:qemu_exec_t:s0 /usr/bin/qemu
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-arm
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-cris
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-m68k
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-mips
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-mips64
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-mips64el
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-mipsel
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-ppc
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-ppc64
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-ppcemb
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-sh4
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-sh4eb
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-sparc
-rwxr-xr-x. root root system_u:object_r:bin_t:s0       /usr/bin/qemu-system-x86_64


Recommend adding a wildcard rule on /usr/bin/qemu-system-*  since more arch emulators inevitably appear with every new QEMU release

Version-Release number of selected component (if applicable):
selinux-policy-3.6.6-5.fc11.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2009-03-03 16:08:34 UTC
Fixed in selinux-policy-3.6.7-1.fc11


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