Bug 437796 - libvirtd needs access to /dev/random
libvirtd needs access to /dev/random
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-17 10:23 EDT by Daniel Berrange
Modified: 2008-03-17 11:12 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-03-17 11:12:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Berrange 2008-03-17 10:23:53 EDT
Description of problem:
THe libvirt daemon makes use of various crypto libraries which want to access
/dev/random. When running with SELinux enforcing mode libvirt is unable to
access this and abort()s.

type=AVC msg=audit(1205761815.476:146): avc:  denied  { read } for  pid=3517
comm="libvirtd" name="random" dev=tmpfs ino=3902
scontext=root:system_r:virtd_t:s0 tcontext=system_u:object_r:random_device_t:s0
tclass=chr_file

audit2allow says we need

require {
        type virtd_t;
}

#============= virtd_t ==============
dev_read_rand(virtd_t)


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.3.1-16.fc9.noarch
libvirt-0.4.1-4.fc9.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Boot in enforcing mode
2. 
3.
  
Actual results:
libvirtd crashes & AVCs are loggged

Expected results:


Additional info:
Comment 1 Daniel Walsh 2008-03-17 11:12:46 EDT
Fixed in selinux-policy-3.3.21.fc9

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